Chapter 8 Logic Instructions
8-227
8.14.2.13 ETH_Socket_Status
FB
ETH_Socket_Status is used for reading current state of the specified
Socket.
ETH_Socket_Status
Enable
ETH_Socket _instance_Status
SocketNum
Valid
Conected
Received
Closed
Send
Opening
Receiving
Closing
Sending
Error
ErrorID
Input Parameters
Parameter name Function Data type
Validation timing
Enable
executed as Enable
BOOL
TRUE or FALSE
(FALSE)
SocketNum
The number of the Socket
to be monitored.
UINT
(0)
When Enable
changes to TRUE
Note: Current state of the Scocket of the specified number and the occurrence of any error can be monitored
through ETH_Socket_Status instruction.
Output Update Timing
Valid
TRUE when Socket data sending and receiving
are both completed.
BOOL TRUE/FALSE
Connected
TRUE when the connection to the target device is
successful.
BOOL TRUE/FALSE
TRUE when data receiving is successful.
TRUE when the link has been closed.
TRUE when data have been sent.
Opening
TRUE when the link to the target device is being
conducted.
BOOL TRUE/FALSE
TRUE when data are being received.
TRUE when current link is being closed.
Sending
TRUE when a timeout occurs in data sending or
receiving.
BOOL TRUE/FALSE
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