Parameter and type
DONE
OUT
NDR
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
RCVD_LEN
OUT
Note
The TSEND 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.
TRCV Operations
The TRCV instruction writes the received data to a receive area that is specified by the
following two variables:
● Pointer to the start of the area
● Length of the area
As soon as all the job data has been received, TRCV transfers it to the receive area and sets
NDR to 1.
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
Data type
Bool
Bool
Bool
Bool
Word
Int
Note
The default setting of the LEN parameter (LEN = 0) uses the DATA parameter to
determine the length of the data being transmitted. Ensure that the DATA transmitted by
the TSEND instruction is the same size as the DATA parameter of the TRCV instruction.
Description
TSEND:
0: Job not yet started or still running.
1: Job executed without error.
TRCV:
NDR = 0: Job not yet started or still running.
NDR = 1: Job successfully completed.
BUSY = 1: The job is not yet complete. A new job cannot be
triggered.
BUSY = 0: Job is complete.
ERROR = 1: Error occurred during processing. STATUS provides
detailed information on the type of error
Status information including error information. (Refer to the Error
and Status condition codes in the table below.)
TRCV: Amount of data actually received in bytes
103BCommunication
10.2 PROFINET
413