Communication
10.2 PROFINET
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
537
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.)
Number of bytes received (TURCV)
DATA IN_OUT Variant Address of the sender area (TUSEND) or receive area
(TURCV):
• The process image input table
• The process image output table
• A memory bit
• A data block
ADDR IN_OUT Variant Pointer to the address of the receiver (for TUSEND) or sender
(for TURCV) (for example, P#DB100.DBX0.0 byte 8). The
pointer may point to any memory area.
A structure of 8 bytes is required as follows:
• First 4 bytes contain the remote IP address.
• Next 2 bytes specify the remote port number.
• Last 2 bytes are reserved.
The job status is indicated at the output parameters BUSY and STATUS. STATUS
corresponds to the RET_VAL output parameter of asynchronously functioning instructions.
The following table shows the relationships between BUSY, DONE (TUSEND), NDR
(TURCV), and ERROR. Using this table, you can determine the current status of the
instruction (TUSEND or TURCV) or when the sending (transmission) / receiving process is
complete.
Table 10- 15 Status of BUSY, DONE (TUSEND) / NDR (TURCV), and ERROR parameters
The job is being processed.
The job was completed successfully.
FALSE FALSE TRUE The job was ended with an error. The cause of the error can be
found in the STATUS parameter.
FALSE FALSE FALSE The instruction was not assigned a (new) job.
Due to the asynchronous function of the instructions: For TUSEND, you must keep the data in the sender area
consistent until the DONE parameter or the ERROR parameter assumes the value TRUE. For TURCV, the data in the
receiver area are only consistent when the NDR parameter assumes the value TRUE.