udpIsValid
Description
This function states whether a socket is valid or not.
Arguments
Input
En | Description | Execute the function |
Data type | BOOL | |
Range | [0,1] | |
Unit | N/A | |
Default | — | |
sock | Description | ID of the socket |
Data type | DINT | |
Range | [0,+65535] | |
Unit | N/A | |
Default | — |
Output
OK | Description | Returns true when the function successfully executes. See Function - General rules. |
Data type | BOOL | |
Unit | N/A |
Examples
Structured Text
bIsValid := udpIsValid(Socket_Number); //Valid socket?
Ladder Diagram
Function Block Diagram