udpRcvFromArray

PLCopen motion icon

 Function - Receives a byte array through UDP.

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

Socket number, return value from udpCreate.

nb

DINT

0, 65535

N/A

No default

Number of bytes to be transferred.

add[ ]

USINT

0 to 32

N/A

No default

Array which contains information about the server.

data[ ]

USINT

0, 65535

N/A

No default

Array of bytes to be transferred.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

 

N/A

Returns TRUE when the function successfully executes.

See Function - General Rules.

Q

DINT

 

N/A

Number of bytes received.

Remarks

None

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

BytesReceived := udpRcvFromArray(Socket_Number,nb,add,Frame);