A SERVICE OF

logo

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