![Mitsubishi Electric melsec q03ud(E)cpu User Manual Download Page 90](http://html.mh-extra.com/html/mitsubishi-electric/melsec-q03ud-e-cpu/melsec-q03ud-e-cpu_user-manual_239150090.webp)
88
7.1
Communication Using TCP
TCP (Transmission Control Protocol) establishes a connection to a device with a port number, and performs reliable
data communications.
To perform socket communication using TCP, confirm the following in advance.
• IP address and port number of the target device
• IP address and port number of the CPU module
• Which side will open a connection, the target device or CPU module?
(Active open or Passive open)
(1) TCP connection
There are two types of open operation for TCP connection: Active open and Passive open.
Firstly, the device waiting for a TCP connection performs a Passive open at the specified port.
The other device performs an Active open by specifying the port number of the device which is waiting in Passive
open state.
Through the above process, a TCP connection is established and communication is available.
(a) Active open
Active open is a TCP connection method, which actively opens a connection to the device that is passively
waiting for a TCP connection.
(b) Passive open
The following two types of Passive open methods are available for TCP connection.
Remark
The expressions of Active and Passive opens may vary according to the device.
• Active open: TCP connection initiating device, client, connecting side, etc.
• Passive open: TCP connection waiting device, server, listening side, etc.
Type of TCP
connection
Description
Unpassive
Allows a connection regardless of the IP address and port number of the connected device.
(The IP address and port number of the device connected can be acquired using the SP.SOCCINF
instruction.)
Fullpassive
Allows a connection to the device only when the specified IP address and port number are met.
A connection made by another device that does not have the specified IP address and port number is
automatically disconnected before communication.
Summary of Contents for melsec q03ud(E)cpu
Page 2: ......
Page 11: ...9 Memo ...
Page 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Page 213: ...211 Memo ...
Page 219: ......