Communication
10.2 PROFINET
S7-1200 Programmable controller
522 System Manual, 03/2014, A5E02486680-AG
DATA IN_OUT Variant
• Contains address and length of data to be sent (TSEND_C)
•
Contains start address and maximum length of received data
(TRCV_C).
COM_RST IN_OUT Bool Allows restart of the instruction:
• 0: Irrelevant
• 1: Complete restart of the function block, existing connection
will be terminated.
DONE OUT Bool
• 0: Job is not yet started or still running.
• 1: Job completed without error.
BUSY OUT Bool
• 0: Job is completed.
• 1: Job is not yet completed. A new job cannot be triggered.
ERROR OUT Bool Status parameters with the following values:
• 0: No error
• 1: Error occurred during processing. STATUS provides
detailed information on the type of error.
STATUS OUT Word Status information including error information. (Refer to the
"Error and Status Parameters" table below.)
RCVD_LEN
OUT Int Amount of data actually received, in bytes
Note
The TSEND_C instruction requires a low
-to-high transition at the REQ input parameter to
start a send job. The BUSY parameter is then set to 1 during processing. Completion of the
send job is indicated by either the
DONE or ERROR parameters being set to 1 for one scan.
During this time, any low
-to-high transition at the REQ input parameter is ignored.
Note
The default setting of the LEN parameter (LEN = 0) uses the DATA parameter to determine
the length of the da
ta being transmitted. Ensure that the DATA transmitted by the TSEND_C
instruction is the same size as the DATA parameter of the TRCV_C instruction.