103BCommunication
10.2 PROFINET
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
417
TCON, TDISCON, TUSEND, and TURCV operate asynchronously, which means that the job
processing extends over multiple instruction executions.
Table 10- 16 TUSEND and TURCV data types for the parameters
Parameter and type
Data type
Description
REQ
(TUSEND)
IN
Bool
Starts the send job on a rising edge. The data is transferred from
the area specified by DATA and LEN.
EN_R
(TURCV)
IN
Bool
0: CPU cannot receive.
1: Enables the CPU to receive. The TURCV instruction is
ready to receive, and the receive job is processed.
ID
IN
Word
Reference to the associated connection between the user
program and the communication level of the operating system.
ID must be identical to the associated parameter ID in the local
connection description.
Range of values: W#16#0001 to W#16#0FFF.
LEN
IN
UInt
Number of bytes to be sent (TUSEND) or received (TURCV).
Default = 0. The DATA parameter determines the length of
the data to be sent or received.
Otherwise, range of values: 1 to 1472
DONE
(TUSEND)
IN
Bool
Status parameter DONE (TUSEND):
0: Job is not yet started or still running.
1: Job completed without error.
NDR
(TURCV)
OUT
Bool
Status parameter NDR (TURCV):
0: Job not yet started or still running.
1: Job has successfully completed.
BUSY
OUT
Bool
1: Job is not yet completed. A new job cannot be triggered.
0: Job has completed.
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 condition codes in the table below.)