Unified Controller Vm series TC-net 100(TNB) Module Manual
61
7.1.3 Timing of generation of information by socket
The timing of setting and clearing information by socket when opened as
TCP/IP and closed after data transmission is shown below.
ソケット単位情報
TCP オープン要求
(コマンド:35H、kind=1)
アクティブ(クライアント)
(注:サーバ側は先にオープン要求を行い、
クライアントからの接続要求に備えます)
パッシブ(サーバ)
TCP オープン要求
(コマンド:35H、kind=2)
socket (*1)
<TCP>=1
bind
listen
socket
<TCP>=1
bind
connect
<AOP>=1,<CON>=1
accept
(新しいソケットを生成)
<TCP>=1,<POP>=1,<CON>=1
(注:*1 にて生成したソケットは
命令語にてcloseされます)
TCP 送信要求
(コマンド:37H)
(データ着信)
<RCV>=1
TCP 受信要求
(コマンド:38H)
recv
<RCV>=0
(注:RCV は着信データが有る場
合に ON、無い場合に OFF)
TCP クローズ要求
(コマンド:39H)
shutdown
close
全ビット=0
(リモートクローズ検出)
<RCL>=1,<CON>=0
TCP クローズ要求
(コマンド:39H)
shutdown
close
全ビット=0
select
(Note) When running the controller and then halting it, close is requested by the controller basic
software for the socket used by the controller.
Figure 7-3 Information by socket and clear timing (1)
(New socket is generated)
Information by socket
Active (client)
Passive (server)
Note: The server side makes an
open request first to prepare for the
connection request from the client.
TCP open request
(Command: 35H, kind=2)
TCP open request
(Command: 35H, kind=1)
Note: The socket generated at
*1 is closed by the instruction
word.
TCP close request
(Command: 39H)
TCP reception request
(Command: 38H)
TCP transmission
request
(Command: 37H)
TCP close request
(Command: 39H)
Remote close detected
All bits=0
Note: RCV is ON when there
is received data and OFF
otherwise.
(Data reception)