![Toshiba EB621 Скачать руководство пользователя страница 84](http://html.mh-extra.com/html/toshiba/eb621/eb621_operation-manual_424802084.webp)
72
model 2000 Ethernet 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