103BCommunication
10.2 PROFINET
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
413
Parameter and type
Data type
Description
DONE
OUT
Bool
TSEND:
0: Job not yet started or still running.
1: Job executed without error.
NDR
OUT
Bool
TRCV:
NDR = 0: Job not yet started or still running.
NDR = 1: Job successfully completed.
BUSY
OUT
Bool
BUSY = 1: The job is not yet complete. A new job cannot be
triggered.
BUSY = 0: Job is complete.
ERROR
OUT
Bool
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.)
RCVD_LEN
OUT
Int
TRCV: Amount of data actually received in bytes
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
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.
As soon as all the job data has been received, TRCV transfers it to the receive area and sets
NDR to 1.