udpSendToArrayPLCopen motion icon

Description

This function sends 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

Examples

Structured Text

Success:= udpSendToArray(Socket_Number,nb,add,FrameClosedIn networking dialect, a message is called a frame);

Ladder Diagram

Function Block Diagram