Toshiba T2N Network Card User Manual


 
89
6 F 3 B 0 3 6 2
f. UDP transmission processing example
Ladder program flowchart Error result
UDP transmission processing start
Socket status read/verify
Are bits C and E both 1?
(Opened state?)
Yes
Execute a UDP send request
(CMD = 0032H).
Hold the input of function block in the
on state until the SEND instruction
completes.
Instruction
completion
Verify the status
Normal complete?
Yes
Terminate UDP transmission
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
An error occurred in transmission
processing.
Transmission from the specified socket is
not possible.
Handle the error according to the
completion and socket status.