Siemens SIMATIC S7 System Manual page 506

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Libraries
9.4 Open user communication library
Note that the S7-200 SMART does not automatically attempt to reconnect to a device after
the connection has been closed. If the remote device breaks the device connection, your
program must execute another ISO_CONNECT instruction to reconnect the device. This is
true for both active and passive connections.
Table 9- 15
Parameter
EN
Req
Active
ConnID
IPaddr1
...
IPaddr4
RemTsap
LocTsap
Done
Busy
Error
Status
506
Parameters of the ISO_CONNECT instruction
Declaration Data type
IN
BOOL
IN
BOOL
IN
BOOL
IN
WORD
IN
BYTE
IN
DWORD
IN
DWORD
OUT
BOOL
OUT
BOOL
OUT
BOOL
OUT
BYTE
Description
Enable input
The CPU starts the connect operation if Req =
TRUE. If Req = FALSE, then the outputs show
the current status of the connection.
TRUE = active connection
FALSE = passive connection
The CPU uses the Connection ID (ConnID) num-
ber to identify this connection for the other in-
structions. The possible ConnID range is 0 to
65534.
These are the four IP address octets. IPaddr1 is
the most significant byte and IPaddr4 is the least
significant byte of the IP address.
The RemPort is the remote TSAP string. The
program uses a pointer to pass the string. (Refer
to the example following this table for more in-
formation.)
The LocPort is the local TSAP string. The pro-
gram uses a pointer to pass the string. (Refer to
the example following this table for more infor-
mation.)
The instruction sets the Done output when the
connect operation is complete with no errors.
The instruction sets the Busy output while the
connection operation is in progress.
The instruction sets the Error output when the
connection operation is complete with an error.
Refer to "Open user communication library in-
struction error codes" (Page 524) for further in-
formation.
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.
System Manual, V2.3, 07/2017, A5E03822230-AF
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents