EasyManua.ls Logo

Siemens SIMATIC S7 - Page 523

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Libraries
9.4 Open user communication library
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
523
After the DISCONNECT instruction completes a disconnect, if the program calls the
DISCONNECT instruction with Req set FALSE, the instruction returns error code 24, which
means no operation pending.
Table 9- 21 Parameters of the DISCONNECT instruction
Parameter
Declaration
Data type
Description
EN
IN
BOOL
Enable input
Req IN BOOL The CPU starts the disconnect operation if Req =
TRUE.
ConnID IN WORD The CPU uses the Connection ID (ConnID) num-
ber to identify the connection to be terminated
(defined during the connect process).
Done OUT BOOL The instruction sets the Done output when the
disconnect operation is complete with no errors.
Busy OUT BOOL The instruction sets the Busy output while the
disconnect operation is in progress.
Error OUT BOOL The instruction sets the Error output when the
disconnect operation is complete with an error.
Refer to "Open user communication library in-
struction error codes" (Page 524) for further in-
formation.
Status OUT BYTE The Status output shows the error code if the
instruction sets the Error output. Status is zero
(no error) if the instruction sets the Busy or Done
outputs.
Exampled
This is an example usage of the DISCONNECT instruction:

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals