udpIsValid

PLCopen motion icon

 Function - Tests if a socket is valid.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

En

BOOL

0 to 1

N/A

No default

Execute the function.

sock

DINT

0 to 65535

N/A

No default

ID of the socket.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

bIsValid := udpIsValid(Socket_Number); //Valid socket?