74
model 3000 Ethernet Module / DS Connection Module Operation Manual
Chapter 7 Application Interface
7
7.1.4
Socket information generation timing
A timing chart for setting and clearing information on each socket is shown below,
provided that it is opened by TCP/IP and closed after sending/receiving data.
Note:
When a running controller is halted (RUN -> HALT), the controller basic software
requests the socket used by the controller to be closed.
Socket information
TCP open request
(Command:35H, kind=1)
Active (Client)
(Note: The server first sends an open request
to be ready for a connection request
from the client)
Passive (Server)
TCP open request
(Command:35H, kind=2)
socket (*1)
<TCP>=1
bind
listen
socket
<TCP>=1
bind
connect
<AOP>=1,<CON>=1
accept (New socket generated)
<TCP>=1,<POP>=1,<CON>=1
(Note: The socket generated by *1
is closed by instruction)
TCP send request
(Command:37H)
(Data received)
<RCV>=1
TCP receive request
(Command:38H)
recv
<RCV>=0
(Note: RCV ON if data is received,
OFF if no data is received
TCP close request
(Command:39H)
shutdown
close
All bits=0
(Remote close detected)
<RCL>=1, <CON>=0
TCP close request
(Command:39H)
shutdown
close
All bits=0
select
Summary of Contents for 3000 series
Page 13: ...CONTENTS 6F8C0878 xi E Sample Programs 91 F Return Code List 103 G Option switch List 107 ...
Page 14: ......
Page 26: ......
Page 72: ......
Page 76: ......
Page 82: ......
Page 100: ......
Page 102: ......
Page 104: ......
Page 116: ......
Page 120: ......
Page 122: ......
Page 126: ......