udpSendToVarThis function sends the contents of a local variable to another controller. This allows for the exchange of data across controllers.
Limitations:
| 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 | — | |
| add[] | Description | Array which contains information about the server |
| Data type | USINT | |
| Range | [0,32] | |
| Unit | n/a | |
| Default | — | |
| varName | Description | The name of a variable to send to the receiver. The variable should be the same type as what is expected by the receiver. See udpRcvFromVar. |
| Data type | ||
| Range | ||
| Unit | n/a | |
| Default | — |
| OK | Description | Returns true when the function successfully executes. See Function - General rules. |
| Data type | BOOL | |
| Unit | n/a |
udpSendToVar( Socket_Number, Add, MyUDPVar )
|
Copyright © 2015 Kollmorgen™ |
|