Instruction); Udp Send Request/Broadcast Send Request (Using The Usend_T 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.2
UDP send request/broadcast send request (using the USEND_T

instruction)

6
104
(1) Function
This request sends local node register data using an open UDP socket.
(2) Request command structure and error status
<Request command>
F0
CMD
Request destination EN311 module
slot number
CMD+1
Command (16#0332)
CMD+2
Socket identifier
CMD+3
Transmission destination IP address
CMD+4
CMD+5
Specified socket UDP port number of
the local node
• 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
• If the transmission destination IP address is set to "255.255.255.255", it will be
broadcast.
<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
3008(16#BC0)
Resource insufficient error
(3) Considerations
• An error is returned if a send request is issued for a socket that is not yet opened.
Error status: Unopened ••• 2945(16#B81)
• An error is returned if a socket identifier other than 1 to 8 is specified.
Error status: Invalid socket identifier ••• 2946(16#B82)
• If the IP address of the local node is specified as the transmission destination IP
address, it will be possible to send data, but it will not be possible to receive that data
with a receive request.
Value:1-8
(The input format is the same as that for
the parameter setup request.)
Value:1024-65535
0
Description
Ethernet module User's Manual

Advertisement

Table of Contents
loading

Table of Contents