SOCKET_DELETE
The SOCKET_DELETE instruction deletes a created socket instance. For Transmission Control Protocol (TCP) connections, SOCKET_DELETE also closes (Passive Close) the connection before deleting the instance. 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_DELETE

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
Execute | Input | BOOL | Instruction block enable.
|
Instance | Input | UDINT | Copy the returned Socket Handler from a SOCKET_CREATE or SOCKET_ACCEPT instruction to delete the respective socket.
|
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 | Indicates that an error occurred.
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_DELETE examples
SOCKET_DELETE function block diagram example

SOCKET_DELETE ladder diagram example

SOCKET_DELETE structured text example

Results

Provide Feedback