Communication
11.2 PROFINET
S7-1200 Programmable controller
876 System Manual, V4.2, 09/2016, A5E02486680-AK
"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
R
CVD_LEN. Immediately after receiving a block of data, TRCV enters the data in the receive
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
-1200, you set "ad hoc mode" by assigning "65535" to the LEN
rameter.
-300/400 STEP 7 project containing "ad hoc mode" into the S7-1200, you
must change the LEN parameter to "65535".
TSEND and TRCV Error and Status condition codes
0 0000
• Send job completed without error (TSEND)
• New data accepted: The current length of the received data is shown in RCVD_LEN
(TRCV).
0 7000
• No job processing active (TSEND)
• Block not ready to receive (TRCV)
0 7001
• Start of job processing, data being sent: During this processing the operating sys-
tem accesses the data in the DATA send area (TSEND).
• Block is ready to receive, receive job was activated (TRCV).
0 7002
• Follow-on instruction execution (REQ irrelevant), job being processed: The operat-
ing system accesses the data in the DATA send area during this processing
(TSEND).
• Follow-on instruction execution, receive job being processed: Data is written to the
receive area during this processing. For this reason, an error could result in incon-
sistent data in the receive area (TRCV).
1 8085
• LEN parameter is greater than the largest permitted value (TSEND) and (TRCV).
• LEN or DATA parameter changed since the first instruction execution (TRCV).
The ID parameter is not in the permitted address range.
The LEN parameter is larger than the memory area specified in DATA.