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,FrameClosedIn networking dialect, a message is called a frame);

Ladder Diagram

Function Block Diagram