SOCKET_DELETEALL

The SOCKET_DELETEALL instruction deletes all created socket instances.
Operation details:
  • If the Ethernet cable is disconnected from the controller or the controller IP address changes, you can execute SOCKET_DELETEALL to delete all the previously created socket instances.
  • Outputs are updated synchronously from the program scan.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
SOCKET_DELETEALL
SOCKET_DELETEALL
SOCKET_DELETEALL parameters
Parameter
Parameter Type
Data Type
Description
Execute
Input
BOOL
Instruction block enable.
  • TRUE: Rising Edge detected; start the instruction block with the precondition that the last operation has been completed.
  • FALSE: No Rising Edge detected.
Done
Output
BOOL
Indicates when operation is complete.
  • TRUE: Operation completed successfully.
  • FALSE: Operation is in progress or encountered an error condition.
Output is updated synchronously from the program scan.
Busy
Output
BOOL
  • TRUE: The operation is not finished.
  • FALSE: The operation is finished.
Output is updated synchronously from the program scan.
Error
Output
BOOL
This field is set to TRUE when the function block execution encounters an error condition. For more information refer to Socket error codes.
Output is updated synchronously from the program scan.
Status
Output
SOCK_STATUS
Status is defined using the SOCK_STATUS data type which contains ErrorID , SubErrorID, and StatusBits information.
Output is updated synchronously from the program scan.

SOCKET_DELETEALL examples

SOCKET_DELETEALL function block diagram example
SOCKET_DELETEALL function block diagram examples
SOCKET_DELETEALL ladder diagram example
SOCKET_DELETEALL ladder diagram example
SOCKET_DELETEALL structured text examples
SOCKET_DELETEALL structured text examples
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal