11-3
Section
Command/Response Reference
200
11-3-10
UDP RECEIVE REQUEST
Requests that data be sent from a UDP socket.
Command Block
02
27
Command
code
UDP
socket
number
Results storage area
Number of
reception
bytes
Timeout
value
Response Block
02
27
Command
code
Response
code
Results Storage Format
Results
storage
response
code
Source IP
address
Source
UDP port
number
Number of
reception
bytes
Received data
Received bytes
Parameters
The UDP socket number to receive data specified as 2 bytes between 1 and 8.
The area in which the results of the command execution are stored. The first byte
specifies the memory area and data type (variable type). The 2nd to 4th bytes
specify the beginning address of the results storage area. Refer to page 192 for
details about the variable types and addresses that can be specified.
The maximum number of bytes of data to be received is given in the command.
The number of bytes of data received will be stored in the results storage area.
Up to 1,984 bytes can be specified.
Timeout Value (Command)
The maximum control time between receiving the receive request and storing
the result. If this set time limit is exceeded, the code for a timeout error will be set
as the results storage response code. The value is set in units of 0.1 s. The time-
out time will be unlimited if the value is set to 0.
The IP address of the node sending data.
The port number of the node sending data.
The data sent from the remote node.
Precautions
If a packet is received which contains more bytes than the number specified in
Number of reception bytes specified in the command, the specified number of
bytes will be stored and the remainder of the bytes will be discarded.
UDP Socket Number
(Command)
Results Storage Area
(Command)
Number of Reception Bytes
(Command, Results
Storage Area)
Source IP Address (Results
Storage Area)
Source UDP Port Number
(Results Storage Area)
Received Data (Results
Storage Area)