6 F 3 B 0 3 6 2
3.UDP receive request/broadcast receive request (using the RECV instruction)
a.Function
If an opened UDP socket receives data, read the received data into registers on the local port.
If no data has been received, wait until data arrives (the wait time can be set) and then, after reception, read the received data into the local port registers.
Reception data size: 1 to 1000 words.
b.Transfer parameters
A | 3100H |
A+1 | CMD = 0033H |
A+2 | SportNO |
A+3 | DIPAddress |
A+4 |
|
|
|
A+5 | D_UDP_PORTNO |
A+6 | WordSize |
A+7 | DRID |
A+8 | DregNO |
A+9 | TimeCNT |
Module designation Command number Socket identifier (1 to 8) Transmission destination IP address
(The input format is the same as that for the parameter setup request.)
Transmission source object socket UDP port number Reception data length: 1 to 1000 words Reception data storage register type code Reception data storage register number Reception wait timeout time
Reception data length: | Set this parameter to a value greater than or equal to |
| the largest size for transmission data that could be sent |
| to the object socket in a single operation. |
Reception data storage register type code: | Type code for the register that stores the received data. |
| (See Figure 5.1) |
Reception data storage register number: | Starting number of the registers that store the received |
| data. |
Reception wait timeout time: | Specified in 0.1 second units. (1 to 65535) |
| If zero is specified, the system is set to an unlimited |
| (infinite) wait state. |
c.Status (See figure 4.3 for details on bits C, D, E and F.)
B B+1
F E D C B A 9 8 7 6 5 4 3 2 1 0
|
|
|
| SportNO | TermSTS |
Detailed information (Only valid when TermSTS = 0BH.)
SportNO: Socket identifier (1 to 8)
TermSTS: See tables 4.3 and 4.4.
Detail information: See table 4.5.
⎯ 90 ⎯