Toshiba T2N Network Card User Manual


 
90
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
Module designation
A+1 CMD = 0033H
Command number
A+2 SportNO Socket identifier (1 to 8)
A+3 DIPAddress
Transmission destination IP address
A+4 (The input format is the same as that for the parameter
setup request.)
A+5 D_UDP_PORTNO
Transmission source object socket UDP port number
A+6 WordSize
Reception data length: 1 to 1000 words
A+7 DRID
Reception data storage register type code
A+8 DregNO
Reception data storage register number
A+9 TimeCNT
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.)
F E D C B A 9 8 7 6 5 4 3 2 1 0
B SportNO TermSTS
B+1 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.