
6 F 3 B 0 3 6 2
e.UDP open processing example
Ladder program flowchart
UDP open processing start
Socket status read/verify
Are bits C and D both 0? | No |
(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
Error result
The specified socket is already open.
Verify the status
Normal complete?
Yes
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.
Terminate UDP open processing
⎯ 86 ⎯