Toshiba T2N Network Card User Manual


 
94
6 F 3 B 0 3 6 2
h. UDP reception processing example (Receive request issued first type)
Ladder program flowchart Error result
UDP reception processing start
Socket status read/verify
Are bits C and E both 1?
(Opened state?)
Yes
Execute a UDP receive request
(CMD = 0033H).
Hold the input of function block in the
on state until the RECV instruction
completes.
Instruction
completion
Verify the status
Did
the operation
complete before being
timed out?
Yes
Normal complete?
Yes
Terminate UDP reception processing
The processing in this section can be
performed at this stage or at the point the
instruction terminates abnormally.
No
The specified UDP socket is in the closed
state. (Open processing is required.)
No
Text was not received within the time limit.
No
An error occurred in reception processing.
The specified socket could not receive the
data.
Handle the error according to the
completion and socket status.