15 Ethernet
15-50
CP2E CPU Unit Software User’s Manual(W614)
TCP Socket Close Request
Note
These response codes will be returned only on large, multilevel networks.
For details, refer to
SECTION 6
Socket Services in the
Ethernet Unit
s
Con
s
truction of Application
s
Operation Manual (Cat. No. W421)
.
The following programming example illustrates transferring 100 bytes of databetween an Ethernet Unit
and a host computer using TCP/IP communications.
z
System Configuration
The programming example uses the following system configuration. For the TCP connection, the
Ethernet Unit uses a passive open and the host computer uses an active open.
z
Data Flow
The data will flow between the CPU Unit, Ethernet Unit, and host computer as shown in the following
diagram.
Note
Here, “execution bits” refer to W0.00 to W0.0
3
, which are used in the ladder diagram to con-
trol execution of communications.
Responsecode
Meaning
0000
Normal end
0
3
02
CPU Unit error; cannot execute.
2210
The specified socket is not been connected.
2607
Specified Socket Service Parameter Area is already being used foranother socket.
15-5-7 Socket/TCP Programming Example
TCP/IP Communications Programming Example
Host comp
u
ter
Ethernet Unit
IP address: 192.168.250.5
Port n
u
m
b
er: 4096
IP address: 192.168.250.1
Port n
u
m
b
er: 4096
PLC
Host comp
u
ter
Line
(Ethernet)
Ethernet
Unit
CPU Unit
Re
qu
est S
w
itches and ex-
ec
u
tion
b
its t
u
rned O
N
(see note).
Sent to line.
Processing in
host comp
u
ter
Exec
u
tion
b
its t
u
rned OFF
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......