Hide thumbs Also See for S7-1200:
Table of Contents
Communication
10.2 PROFINET
Parameter and type
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 or the value supplied at the LEN input if not 0
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.
532
Data type
Description
Bool
TRCV:
NDR = 0: Job not yet started or still running.
NDR = 1: Job successfully completed.
Bool
BUSY = 1: The job is not yet complete. A new job cannot be
triggered.
BUSY = 0: Job is complete.
Bool
ERROR = 1: Error occurred during processing. STATUS provides
detailed information on the type of error
Word
Status information including error information. (Refer to the Error
and Status condition codes in the table below.)
Int
TRCV: Amount of data actually received in bytes
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents