udpRcvFromVarThis function receives the contents a variable sent from another controller and saves it to a local variable. 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 save the data received from the sender. The variable should be the same type as what is being sent. See udpSendToVar. |
| Data type | STRING | |
| Range | ||
| Unit | n/a | |
| Default | — |
| 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 |
udpRcvFromVar( Socket_Number, Add, MyUDPVar )
|
Copyright © 2015 Kollmorgen™ |
|