Program instructions
7.3 Communication
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
217
7.3.5
Open user communication
The Open User Communication (OUC) instructions give your program a way to
communicate over an Ethernet network to another Ethernet capable device. The other
Ethernet device can be another S7-200 SMART CPU or another third party device that
supports either UDP, TCP, or ISO-on-TCP protocol. Your program controls all aspects of the
communication from selecting the protocol, initiating the connection, sending data, receiving
data, and terminating the connection.
Note
The CPU models CPU CR20s, CPU CR30s, CPU CR40s, and CPU CR60s have no
Ethernet port and do not support any functions related to the use of Ethernet
communications.
7.3.5.1
OUC instructions
There are four Open User Communications (OUC) instructions to control the communication
process:
●
TCON opens the UDP, TCP, or ISO-on-TCP (RFC 1006) connection between the
S7-200 SMART CPU and the remote device.
●
TSEND and TRCV send and receive data.
●
TDCON closes the connection.
Table 7- 7
OUC instructions
LAD/FBD
STL
Description
TCON table
TCON initiates a UDP, TCP, or ISO-on-TCP communications con-
nection from the CPU to a communication partner.
TSEND table
TSEND sends data to another device.
TRECV table
TRECV retrieves data over an existing communication connection.
TDCON table
TDCON terminates a UDP, TCP, or ISO-on-TCP communications
connection.
Содержание SIMATIC S7-200
Страница 30: ...Product overview 1 7 Programming software S7 200 SMART 30 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 267: ...Program instructions 7 6 Counters S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 267 HSC modes 3 and 4 ...
Страница 394: ...Program instructions 7 18 Subroutine S7 200 SMART 394 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 425: ...Communication 8 5 PROFIBUS S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 425 ...
Страница 786: ...Technical specifications A 11 S7 200 SMART cables S7 200 SMART 786 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 798: ...Error codes C 4 PLC fatal error codes S7 200 SMART 798 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 848: ...Ordering information F 6 Human Machine Interface devices S7 200 SMART 848 System Manual V2 3 07 2017 A5E03822230 AF ...