hit counter script

Siemens SIMATIC S7 System Manual page 414

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

103BCommunication
10.2 PROFINET
Table 10- 13 Entering the data into the receive area
Protocol
Entering the data in the
variant
receive area
TCP
Ad hoc mode
TCP
Data reception with
specified length
ISO on TCP
Ad hoc mode
ISO on TCP
protocol-controlled
Note
Ad hoc mode
The "ad hoc mode" exists with the TCP and ISO on TCP protocol variants. You set "ad hoc
mode" by assigning "65535" to the LEN parameter. The receive area is identical to the area
formed by DATA. The length of the received data will be output to the parameter
RCVD_LEN. Immediately after receiving a block of data, TRCV enters the data in the receive
area and sets NDR to 1.
If you store the data in an "optimized" DB (symbolic only), you can receive data only in
arrays of Byte, Char, USInt, and SInt data types.
Note
Importing of S7-300/400 STEP 7 projects containing "ad hoc mode" into the S7-1200
In S7-300/400 STEP 7 projects, "ad hoc mode" is selected by assigning "0" to the LEN
parameter. In the S7-1200, you set "ad hoc mode" by assigning "65535" to the LEN
parameter.
If you import an S7-300/400 STEP 7 project containing "ad hoc mode" into the S7-1200, you
must change the LEN parameter to "65535".
Table 10- 14 ERROR and STATUS condition codes for TSEND and TRCV
ERROR
STATUS
0
0000
0
7000
0
7001
414
Parameter
"connection_type"
B#16#11
B#16#11
B#16#12
B#16#12
Description
Send job completed without error (TSEND)
New data accepted: The current length of the received data is shown in RCVD_LEN
(TRCV).
No job processing active (TSEND)
Block not ready to receive (TRCV)
Start of job processing, data being sent: During this processing the operating
system accesses the data in the DATA send area (TSEND).
Block is ready to receive, receive job was activated (TRCV).
Value of the LEN parameter
65535
0 (recommended) or 1 to
8192, except 65535
65535
0 (recommended) or 1 to
8192, except 65535
System Manual, 11/2011, A5E02486680-05
Value of the RCVD_LEN
parameter (bytes)
1 to 1472
1 to 8192
1 to 1472
1 to 8192
S7-1200 Programmable controller

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF