Chapter 8 Logic Instructions
8-225
8.14.2.12 ETH_Socket_Close
FB
ETH_Socket_Close is used for disabling Socket.
ETH_Socket_Close
Execute Done
ETH_Socket_Close_instance
SocketNum Busy
Error
ErrorID
Input Parameters
Parameter name Function Data type
Validation timing
Execute
executed as Execute
changes from FALSE to
BOOL
TRUE or FALSE
(FALSE)
SocketNum
Specify the number of the
Socket.
USINT
1~8
(0)
changes from
Note: The TCP link and UDP function can be disabled through ETH_Socket_Close.
Output Update Timing
TRUE when the instruction execution is completed.
TRUE when the instruction is being executed.
Error
TRUE when an error occurs in the instruction
execution.
BOOL TRUE/FALSE
ErrorID
Contains error codes when an error occurs in the
instruction execution. Please refer to section 12.2
for the corresponding error code.
WORD
Output Update Timing
Timing for changing to TRUE
Timing for changing to FALSE
Done
When the instruction execution is
finished.
When Execute changes from TRUE to
FALSE.
Busy
When Execute changes from FALSE
When Done changes from TRUE to
Error
When an error occurs in the
instruction execution or the input
parameters for the instruction are
illegal.
When Execute changes from TRUE to
FALSE.