Tcp Open Request; Instruction) - Toshiba V Series User Manual

Integrated controller ethernet module, en311
Hide thumbs Also See for V Series:
Table of Contents

Advertisement

Chapter 6 Socket Interface Communication
6.4.5
TCP open request (using the USEND_T instruction)
6
110
(1) Function
This request opens (active/passive) any of the eight sockets.
Transmission protocol:TCP/IP
(2) Request command structure and error status
<Request command>
F
CMD
Request destination EN311 module slot number
CMD+1
Command (16#0334)
CMD+2
Socket identifier
CMD+3
Open type
CMD+4
Transmission destination IP address
CMD+5
CMD+6
Remote object socket TCP port number
CMD+7
Receive wait timeout time
CMD+8
Timeout time
<Error status>
F
STATUS
Socket identifier (1-8) or Error status
Error status examples
Error status number
-5002(16#EC76)
-5004(16#EC74)
2848(16#B20)
2944(16#B80)
(3) Request command details
• Open type 1: Active open (client side)
2: Passive open (server side)
Timeout time: Specified in 0.1- second units (1 to 65535).
If zero is specified, the system is set to an unlimited (infinite) wait state.
Active open is not allowed to set to an unlimited (infinite) wait state.
(4) Important notes
• After this request completes normally, TCP send, receive or close requests can be
sent to the socket.
• An error is returned if an open request is issued for an already open socket.
Error status: Already open ••• 2944(16#B80)
• An error is returned if a value other than 1 to 8 is specified as the socket identifier.
Error status: Invalid socket identifier ••• 2946(16#B82)
• An error will be returned if a value outside the range 1024 to 65535 is specified for the
local node specified socket TCP port number.
Error status: Port number error ••• 2929(16#B71)
Timeout (detected by the S controller)
Destination EN311 module slot number is missing or socket identifier
is out of range
Timeout (detected by the EN311)
Socket already opened
0
Value:1-8
(The input format is the same
as that for the parameter setup
request.)
Value:1024-65535
Value:1024-65535
0
Description
Ethernet module User's Manual

Advertisement

Table of Contents
loading

Table of Contents