udpSendToArray
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,FrameIn networking dialect, a message is called a frame);
Ladder Diagram
Function Block Diagram