hit counter script
Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Parameter and type
NDR
OUT
(TURCV)
BUSY
OUT
ERROR
OUT
STATUS
OUT
RCVD_LEN
OUT
DATA
IN_OUT
ADDR
IN_OUT
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
BUSY
DONE / NDR
TRUE
irrelevant
FALSE
TRUE
FALSE
FALSE
FALSE
FALSE
Due to the asynchronous function of the instructions: For TUSEND, you must keep the data in the sender area
1
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.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Data type
Bool
Bool
Bool
Word
UDInt
Variant
Variant
ERROR
irrelevant
FALSE
TRUE
FALSE
Description
Status parameter NDR (TURCV):
0: Job not yet started or still running.
1: Job has successfully completed.
1: Job is not yet completed. A new job cannot be triggered.
0: Job has completed.
Status parameters with the following values:
0: No 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.)
Number of bytes received (TURCV)
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
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.
Description
The job is being processed.
The job was completed successfully.
The job was ended with an error. The cause of the error can be
found in the STATUS parameter.
The instruction was not assigned a (new) job.
Communication
10.2 PROFINET
537

Advertisement

Table of Contents
loading

Table of Contents

Save PDF