Communication
10.2 PROFINET
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
549
DONE, NDR, ERROR, and STATUS output parameters
These instructions provide outputs describing the completion status:
Table 10- 23 Open User Communication instruction output parameters
DONE Bool FALSE Is set TRUE for one execution to indicate that the last request
completed without errors; otherwise, FALSE.
NDR Bool FALSE
Is set TRUE for one execution to indicate that the requested action
has completed without error and new data has been received;
BUSY Bool 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.
ERROR Bool FALSE Is set TRUE for one execution to indicate that the last request
completed with errors, with the applicable error code in STATUS;
STATUS Word 0 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
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):
– 01.00, 01.01, 02.00, 02.01, 03.00, 03.01
– 10.00, 10.01, 11.00, 11.01, ... BF.00, BF.01
● TCP port (passive): 5001, 102, 123, 20, 21, 25, 34962, 34963, 34964, 80
● UDP port (passive): 161, 34962, 34963, 34964