
6 F 3 B 0 3 6 2
e.UDP close processing example
Ladder program flowchart
UDP close processing start
Socket status read/verify
Are bits C and E both 1? | No |
(Opened state?) |
|
Yes |
|
Execute a UDP close request
(CMD = 0034H).
Hold the input of function block in the on state until the SEND instruction completes.
Instruction completion
Error result
The specified UDP socket is already in the closed state.
Verify the status
Normal complete?
Yes
No
An error occurred in the close processing and the specified socket could not be closed.
Handle the error according to the completion and socket status.
Terminate UDP close processing
⎯ 96 ⎯