15 Ethernet
15-36
CP2E CPU Unit Software User’s Manual(W614)
15-5 Socket Services
The socket services allow devices on the Ethernet to send and receive various data using either the
UDP or TCP protocol.
The way to use socket services is to set the required parameters in the parameter area allocated in the
DM Area, and then to request particular UDP or TCP socket services by turning ON dedicated control
bits in the AR Area. When the PLC has completed the requested process, the same bit is turned OFF to
provide notification. Data that is sent or received is automatically handled according to the I/O memory
locations specified in the parameter area.
A total of three ports (UDP and TCP combined) can be used for socket services.
15-5-1 Overview of Socket Service
15-5-2 Procedure for Using Socket Service Functions
Ethernet
Service request switch
Parameters
UNIX computer, etc.
(node with socket
services interface)
CP2E-Nîš…îš…-type
CPU Unit
TCP/UDP
protocol
TCP/UDP
protocol
IP
TCPUDP
Socket
1. Make the basic settings.
Refer to 15-3-3 Basic Settings.
2. Use the CX-Programmer or Programming Console to make the socket
service settings in the socket service parameter areas 1 to 3 (m+8 to m+37)
allocated in the DM Area.
Note The first word m in the allocated DM Area = D16000
3. Select Transfer to PLC from the Options Menu, and then click the Yes
button. The Setup data in the allocated DM Area will be transferred to the
CPU Unit.