![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262381.webp)
15-51
15 Ethernet
CP2E CPU Unit Software User’s Manual(W614)
15-5 Soc
ket Ser
vic
es
15
15-5-7 Soc
k
et/T
CP Prog
ramming Example
z
Basic Operations
•
W0.00 is turned ON to request opening a TCP socket from the Ethernet Unit.
•
W0.01 is turned ON to request closing the TCP socket from the Ethernet Unit.
•
W0.02 is turned ON to request sending data from the Ethernet Unit. Data (100 bytes) is sent
beginning at D00000.
•
W0.0
3
is turned ON to request receiving data from the Ethernet Unit. The data that is received
(100 bytes) is stored beginning at D01000.
•
One of the bits between W1.00 and W1.0
3
will turn ON if an error occurs. Refer to 15-7-5 Socket
Service Request Switches for information on errors.
z
Program Memory Map
The send and receive data and bits (flags) used by the program are shown in the following diagram.
DM Area
S
end d
a
t
a
, 100
b
yte
s
(100 = 0064 Hex)
Receive d
a
t
a
, 100
b
yte
s
(100 = 0064 Hex)
D00000
D00049
D01000
D01049
15
00
15
00
WR Area
W
0
W
1
W
2
15
03
02
01
00
TCP
Open Bit
TCP
Close Bit
TCP
Send Bit
TCP
Recei
v
e
Bit
TCP
Recei
v
e
Error Flag
TCP Send
Error Flag
TCP
Close
Error Flag
TCP
Open
Error Flag
TCP
Recei
v
ing
Flag
TCP
Sending
Flag
TCP
Closing
Flag
TCP
Opening
Flag
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......