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

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
Execute | Input | BOOL | Instruction block enable.
|
Done | Output | BOOL | Indicates when operation is complete.
Output is updated synchronously from the program scan. |
Busy | Output | BOOL |
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 ladder diagram example

SOCKET_DELETEALL structured text examples

Results

Provide Feedback