1 FUNCTIONS
1.4 Socket Communications
61
1
Communication structure
With socket communications, port numbers that identify the communication are used to enable multiple communication
sessions with the external device. These are used for both TCP/IP and UDP/IP.
For send: Specify send source Ethernet-equipped module's port number and the send destination external device's port
number.
For receive: Specify the Ethernet-equipped module's port number, and read the data sent to that port.
(1) Sending UDP data from Ethernet-equipped module's port number A to external device 1's port number L.
(2) Sending UDP data from external device 1's port number L to Ethernet-equipped module's port number A
(3) Sending data with TCP/IP connection
(4) Sending UDP data from Ethernet-equipped module's port number C to external device 3's port number N
(5) Sending UDP data from external device 3's port number N to Ethernet-equipped module's port number C
(1)
(2)
(3)
(3)
(4)
(5)
Ethernet
Ethernet-equipped module
(IP address: xx.xx.xx.xx)
External device 2
(IP address: zz.zz.zz.zz)
External device 3
(IP address: ww.ww.ww.ww)
External device 1
(IP address: yy.yy.yy.yy)
Port No.L
Port No.M
Port No.N
Port No.A
Port No.B
Port No.C