DONE, NDR, ERROR, and STATUS output parameters
These instructions provide outputs describing the completion status:
Table 10- 23 Open User Communication instruction output parameters
Parameter
Data type
DONE
Bool
NDR
Bool
BUSY
Bool
ERROR
Bool
STATUS
Word
Note
Note that DONE, NDR, and ERROR are set for one execution only.
Restricted TSAPs and port numbers for passive ISO and TCP communication
If you use the "TCON" instruction to set up and establish a passive communications
connection, the following port addresses are restricted and should not be used:
● ISO TSAP (passive):
● TCP port (passive): 5001, 102, 123, 20, 21, 25, 34962, 34963, 34964, 80
● UDP port (passive): 161, 34962, 34963, 34964
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Default
FALSE
FALSE
FALSE
FALSE
0
– 01.00, 01.01, 02.00, 02.01, 03.00, 03.01
– 10.00, 10.01, 11.00, 11.01, ... BF.00, BF.01
Description
Is set TRUE for one execution to indicate that the last request
completed without errors; otherwise, FALSE.
Is set TRUE for one execution to indicate that the requested action
has completed without error and new data has been received;
otherwise, FALSE.
Is set TRUE when active to indicate that:
The job is not yet complete.
•
A new job cannot be triggered.
•
Is set FALSE when job is complete.
Is set TRUE for one execution to indicate that the last request
completed with errors, with the applicable error code in STATUS;
otherwise, FALSE.
Result status:
If the DONE or NDR bit is set, then STATUS is set to 0 or to an
•
informational code.
If the ERROR bit is set, then STATUS is set to an error code.
•
If none of the above bits are set, then the instruction returns
•
status results that describe the current state of the function.
STATUS retains its value for the duration of the execution of the
function.
Communication
10.2 PROFINET
549