EasyManuals Logo

Siemens SIMATIC S7 System Manual

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
Page #522 background imageLoading...
Page #522 background image
Libraries
9.4 Open user communication library
S7-200 SMART
522 System Manual, V2.3, 07/2017, A5E03822230-AF
Example
This is an example usage of the UDP_RECV instruction:
9.4.2.8
DISCONNECT instruction
The DISCONNECT instruction terminates an existing communication connection. The
DISCONNECT instruction is used for all protocols.
LAD/FBD
STL
Description
DISCONNECT ConnID,
LocPort, Done, Busy, Er-
ror, Status
The DISCONNECT terminates an existing communication connec-
tion for all protocols.
The DISCONNECT instruction initiates the connection termination when the program calls
the DISCONNECT instruction with the Req input set TRUE. The Req input is level-triggered.
It is recommended that you put a positive edge trigger on the Req input.
If the requested connection (ConnID) is currently busy connecting, disconnecting, or cannot
be found because the connection has been reused, the DISCONNECT instruction returns an
error.
The DISCONNECT instruction displays the Done or Error output status for at least one call
of the instruction after the disconnect operation is complete. The instruction may return the
status of the DISCONNECT instruction for the specified connection for subsequent calls until
the CPU reuses the connection for another connect operation.

Table of Contents

Other manuals for Siemens SIMATIC S7

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC S7 and is the answer not in the manual?

Siemens SIMATIC S7 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC S7
CategoryController
LanguageEnglish

Related product manuals