7.1 Information by Socket
Unified Controller nv-pack series TC-net 100(JTNI)Extended card Instruction Manual
57
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)
Содержание nv-pack Series
Страница 1: ...Unified Controller nv pack series TC net 100 JTNI Extended card Instruction Manual 6F8C1621 ...
Страница 57: ...Chapter 3 Setting 6F8C1621 44 ...
Страница 60: ...47 Chapter 5 Troubleshooting This chapter describes troubleshooting for the JTNI ...
Страница 65: ...Chapter 6 Maintenance and Inspection 6FE8C1621 52 ...
Страница 79: ...Chapter 7 Application Interface 6F8C1621 66 ...
Страница 85: ...Appendix A Specifications 6F8C1621 72 ...
Страница 86: ...73 Appendix B Outside Dimensions ...
Страница 88: ...75 Appendix C Related Products ...
Страница 90: ...77 Appendix D Decimal hexadecimal Conversion Table ...
Страница 93: ...Appendix D Decimal hexadecimal Conversion Table 6F8C1621 80 ...
Страница 95: ...1621 0 1701 ...