Tcp Send 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.6
TCP send request (using the USEND_T instruction)
6
112
(1) Function
This request sends local node register data using an open TCP socket.
(2) Request command structure and error status
<Request command>
F
CMD
Destination EN311 module slot number
CMD+1
Command (16#0337)
CMD+2
Socket identifier
• Local station register is specified by the input operand P of the USEND_T function
block.
• Transfer register size is specified by the input operand N of the USEND_T function.
Specify in words: 1 to 1000 words
<Error status>
F
STATUS
Socket identifier (1-8) or Error status
Error status examples
Error status number
-5004(16#EC74)
Destination EN311 module slot number is missing or socket identifier is
out of range
2819(16#B03)
Local node standby
2864(16#B30)
Length error
2912(16#B60)
Transmission disabled
2945(16#B81)
Socket not opened yet
3011(16#BC3)
Transmission buffer full
3012(16#BC4)
Remote node window size is too small
(3) Important notes
• An error is returned if a send request is issued for a socket that is not yet opened.
Error status: Socket unopened ••• 2945(16#B81)
• 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 of 0 words or 1001 or more words is specified as the
transmission data size.
Error status: Transmission word count error ••• 5059(16#EC3D)
• The S controller performs an area check for the register area based on the
transmission data storage register type and number, and if an error is found it returns
an error.
Error status: Boundary error ••• 5060(16#EC3C)
• If a close request from the remote node TCP socket has arrived while a connection is
established, and the user program issues a send request, the EN311 returns the
following error.
Error status: Socket unopened ••• 2945(16#B81)
Verify the socket status (see section 6.3, "Socket Interface Information") RCLOSE and
CONN bits, and close the socket.
0
Value:1-8
0
Description
Ethernet module User's Manual

Advertisement

Table of Contents
loading

Table of Contents