udpSendTo

PLCopen motion icon

 Function - Sends a UDP telegram.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

0 to 1

N/A

No default

Execute the function.

sock

DINT

0, 65535

N/A

No default

ID of the client socket.

nb

DINT

0, 65535

N/A

No default

Number of bytes of data to send.

add[ ]

USINT

0 to 32

N/A

No default

Buffer containing the UDP address (filled on output).

data

STRING

0 to 255

N/A

No default

The characters to send.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

 

N/A

Returns TRUE when the function successfully executes.

See Function - General Rules.

Remarks

None

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

bUdpSendTo := udpSendTo(Socket_Number,5,add,'1000');