![Omron CS1W-ETN01 Operation Manuals Download Page 98](http://html1.mh-extra.com/html/omron/cs1w-etn01/cs1w-etn01_operation-manuals_742528098.webp)
6-1
Section
Overview
86
6-1
Overview
6-1-1 Socket Service Functions
The socket services allow devices on the Ethernet to send and receive various
data using the UDP or TCP protocol. The socket services can be used by
CS1-series PCs through the user program by manipulating dedicated bits
(called Socket Service Request Switches) or by executing the CMND(490) in-
struction.
The two methods of using the socket services are as follows:
•
Dedicated Bits (Socket Service Request Switches)
Requests can be made to a socket service by setting parameters and then
merely manipulating specific Socket Service Request Switches.
•
CMND(490)
Requests can be made to a socket service by sending service request com-
mands to the Ethernet Unit.
Note One of the main differences between using Socket Service Request Switches
and using CMND(490) is in the number of sockets that can be connected simul-
taneously, as shown in the following table.
Protocol
Socket Service Request
Switches
CMND(490)
UDP
Total of 8 sockets max.
8 sockets max.
TCP
8 sockets max.
Using Socket Service Request Switches
CS1-series PC
CPU Unit
Ethernet Unit
Socket Service
Request Switches
Socket Service
Parameters
Refreshed
(See Note 1.)
Refreshed
(See Note 2.)
TCP data
transfers
UDP data
transfers
Host computer
or other device
System
call
User program
Sockets
Sockets
Note
1. Socket Service Request Switches in the CPU Bus Unit Area in the CIO Area
are used to send a service request from the CPU Unit to the Ethernet Unit.
2. The Socket Service Parameters in the CPU Bus Unit Area in the DM Area
are used to specify the service being requested from the Ethernet Unit. The
CPU Bus Unit Area in the DM Area is also used to receive results of process-
ing from the Ethernet Unit to the CPU Unit.
Using CMND(490)
CS1-series PC
CPU Unit
Ethernet Unit
TCP data
transfers
UDP data
transfers
Host computer or other device
System
call
User program
FINS
command
FINS response
Processing
results
Sockets
Sockets