Siemens SIMATIC S7 System Manual page 418

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

103BCommunication
10.2 PROFINET
Parameter and type
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- 17 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.
Table 10- 18 TUSEND and TURCV condition codes for ERROR and STATUS
ERROR
STATUS
0
0000
0
7000
418
Data type
Variant
Variant
ERROR
irrelevant
FALSE
TRUE
FALSE
Description
Send job completed without error (TUSEND).
New data were accepted. The current length of the received data is shown in
RCVD_LEN (TURCV).
No job processing active (TUSEND)
Block not ready to receive (TURCV)
Description
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.
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents