Toshiba T2N Network Card User Manual


 
86
6 F 3 B 0 3 6 2
e. UDP open processing example
Ladder program flowchart Error result
UDP open processing start
Socket status read/verify
Are bits C and D both 0?
(Closed state?)
Yes
Execute a UDP open request
(CMD = 0031H).
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 open processing
No
The specified socket is already open.
No
An error occurred in the open processing
and the specified socket could not be
opened.
Handle the error according to the
completion and socket status.