112
Ethernet module User’s Manual
Chapter 6 Socket Interface Communication
6
6.4.6
TCP send request (using the USEND_T instruction)
(1) Function
This request sends local node register data using an open TCP socket.
(2) Request command structure and error status
<Request command>
• 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>
Error status examples
(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.
F
0
CMD
Destination EN311 module slot number
CMD+1
Command (16#0337)
CMD+2
Socket identifier
Value:1-8
F
0
STATUS
Socket identifier (1-8) or Error status
Error status number
Description
-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
Summary of Contents for V Series
Page 1: ...6F8C0904 Integrated Controller V Series Ethernet module EN311 User s Manual Sep 30 2004 ...
Page 12: ......
Page 16: ......
Page 34: ......
Page 40: ......
Page 106: ......
Page 180: ......
Page 199: ...6F8C0904 179 7 5 RAS Information Readout 7 Figure 7 1 Packet Format IP Datagram ...
Page 200: ...180 Ethernet module User s Manual Chapter 7 RAS Information 7 ...
Page 224: ......
Page 240: ......
Page 244: ......
Page 248: ......
Page 250: ......
Page 256: ......
Page 258: ......