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)
Summary of Contents for TNB21
Page 1: ...Unified Controller Vm Series TC net 100 TNB Module Instruction Manual 6F8C1637 ...
Page 14: ...6F8C1637 xii ...
Page 28: ...Chapter 2 Installation and Wiring 6F8C1637 14 ...
Page 62: ...Chapter 3 Setting 6F8C1637 48 ...
Page 65: ...51 Chapter 5 Troubleshooting This chapter describes troubleshooting for the TNB Module ...
Page 82: ...Chapter 7 Application Interface 6F8C1637 68 ...
Page 85: ...Unified Controller Vm series TC net 100 TNB Module Manual 71 ...
Page 90: ...75 Appendix B Outside Dimensions ...
Page 92: ...77 Appendix C Related Products ...
Page 94: ...79 Appendix D Decimal hexadecimal Conversion Table ...
Page 97: ...Appendix D Decimal hexadecimal Conversion Table 6F8C1637 82 ...
Page 99: ...1637 0 1912 ...