udpRcvFromArrayPLCopen motion icon

Description

This function receives an array of bytes.

Arguments

Input

En Description Execute the function
  Data type BOOL
  Range [0,1]
  Unit N/A
  Default
sock Description Socket number, return value from udpCreate
  Data type DINT
  Range [0,+65535]
  Unit N/A
  Default
nb Description Number of bytes to be transferred
  Data type DINT
  Range [0,+65535]
  Unit N/A
  Default
add[] Description Array which contains information about the server
  Data type USINT
  Range [0,32]
  Unit N/A
  Default
data[] Description Array of bytes to be transferred
  Data type USINT
  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
Q Description Number of bytes received
  Data type DINT
  Unit N/A

Examples

Structured Text

BytesReceived := udpRcvFromArray(Socket_Number,nb,add,FrameClosed In networking dialect, a message is called a frame);

Ladder Diagram

Function Block Diagram