EasyManua.ls Logo

Siemens SIMATIC S7 - Page 222

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...
Program instructions
7.3 Communication
S7-200 SMART
222 System Manual, V2.3, 07/2017, A5E03822230-AF
Table 7- 10 Definition of TCON instruction TABLE parameter structure for ISO-on-TCP
Byte
offset
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
D
A
E
Error code (5 bits)
1 A/P
1
REQ
2
Connection ID
(2 bytes)
3
4
Connection Type
2
5
Remote
IP
Address
3
6
7
8
9
Remote TSAP
4
String of 2 to 16 characters (3 to 17 bytes)
to
25
26
Local TSAP
5
String of 2 to 16 characters (3 to 17 bytes)
to
42
1
A/P: Active/Passive selection (1 = Active, 0 = Passive)
2
Connection Type: The Connection Type informs the TCON instruction of the desired type of con-
nection: ISO-on-TCP = 12
3
Remote IP address: This is the IP address of the remote device in the case of an active connec-
tion. The IP address must be different than that of the local CPU and cannot be a multicast or
broadcast address. Since the S7-200 SMART supports routing, the IP address may be on a differ-
ent subnet than the local CPU.
If you set the IP address for a passive (server) connection, then the CPU only accepts a connec-
tion from the specified IP address. If you set the IP address to 0.0.0.0 for a passive connection, the
CPU accepts a connection from any IP address.
4
Remote TSAP: This is the Transport Service Access Point (TSAP) of the remote device. You use
the remote TSAP for ISO-on-TCP connections only. The remote TSAP is a string of 2 to 16 ASCII
characters.
5
Local TSAP: This is the Transport Service Access Point (TSAP) for the connection in local CPU.
You only use the local TSAP for ISO-on-TCP connections. The local TSAP is a string of 2 to 16
ASCII characters. If you use two characters, the TSAP must start with a hex "E0" character ($E0),
followed by another hex character (for example, "$E0$01"). You cannot use the string "SIMATIC-".

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals