191
Socket Services
Section 6-6
6-6
Socket Services
The socket services allow devices on the Ethernet to send and receive vari-
ous data using either the UDP or TCP protocol.
6-6-1
Overview of Socket Service
Manipulating Dedicated
Control Bits
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 han-
dled 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 ser-
vices.
Command code: 0501 hex(Controller Inforamtion Read)
Bytes of command data: 0002 hexadecimal (2 decimal)
Bytes of response data: 003E hexadecimal (62 decimal)
Transmit to the local network and the device itself
Node number 3, unit address FA (Built-in Ethernet Port)
Response requested, port number 7, 3 retries
Response monitoring time: 0064 hexadecimal (10 seconds)
CMND
15 87 0
15 87 0
S: D00100 0 5 0 1
D: D00300 0 0 0 2
C+1: D00301 0 0 3 E
C+2: D00302 0 0 0 0
C+3: D00303 0 3 F A
C+4: D00304 0 7 0 3
C+5: D00305 0 0 6 4
A202.07
0.00
S D00100
D D00200
C D00300
MAC Address:
01234567890A
00
NC
02
04
06
08
10
00
02
04
06
08
10
01
COM
03
05
07
09
11
01
03
05
07
09
11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00
01
02
03
04
06
00
01
03
04
06
COM
02
COM
05
07
COM
COM(V+)
05
07
ANALOG INPUT
V1+ V2+ COM
2
Ethernet
Service request switch
Parameters
UNIX computer, etc.
(node with socket
services interface)
CP1L-EL/EM
CPU Unit
TCP/UDP
protocol
TCP/UDP
protocol
IP
TCP
UDP
Socket
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......