Udp Open Request - Toshiba V Series User Manual

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

Advertisement

6.4.1
UDP open request (using the USEND_T instruction)
(1) Function
This request opens any of the eight sockets.
Transmission protocol:UDP/IP
(2) Request command structure and error status
<Request command>
CMD
CMD+1
CMD+2
CMD+3
<Error status>
STATUS
Error status examples
Error status number
-5004(16#EC74)
2912(16#B60)
2944(16#B80)
(3) Considerations
• After this request completes normally, UDP 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 opened ••• 2944(16#B80)
• An error is returned if a socket identifier other than 1 to 8 is specified.
Error status: Invalid socket identifier ••• 5004(16#EC74)
• An error is returned if a value other than a local node specified socket UDP port
number is specified.
Error status: Port number error ••• 2929(16#B71)
• Not only must the specified socket UDP port number on the local station not overlap
with UDP port numbers used for message transmission and previously used UDP port
numbers, but it also must not overlap with any TCP port number. An error will occur if
the port number overlaps.
Error status: Already open ••• 2944(16#B80)
• If the S controller internal completion wait time limit (2 seconds) is exceeded for this
request, the error listed below is returned.
Error status: Send completion timeout ••• 5002(16#EC76)
In this case, first verify that the module is not in the down state by checking the station
status, and then verify the open/closed state of the socket in the socket status.
6F8C0904
F
Destination EN311 module slot number
Command (16#0331)
Socket identifier
Specified socket UDP port number of the local node
F
Socket identifier (1-8) or Error status
Destination EN311 module slot number is missing or socket identifier
is out of range
Transmission disabled
Already open
6.4 Using the EN311 Socket Interface
0
Value:1-8
Value:1024-65535
0
Description
6
103

Advertisement

Table of Contents
loading

Table of Contents