control_connections
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
control_connections [2019/01/09 10:34] – created akuzmuk | control_connections [2022/09/29 13:00] (current) – atolstov | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Connection control | + | ===== Control connections |
==== GetConnectionAddress (connection) ==== | ==== GetConnectionAddress (connection) ==== | ||
Line 8: | Line 8: | ||
*Lua variable name | *Lua variable name | ||
< | < | ||
- | Please note that numerical constants like ID numbers | + | Please note that numerical constants like ID numbers |
+ | | ||
use named lines. | use named lines. | ||
</ | </ | ||
Line 34: | Line 35: | ||
The GetConnectionUnitId function returns the current Unit Id of the specified Modbus TCP connection. The function is available since version 3.1. | The GetConnectionUnitId function returns the current Unit Id of the specified Modbus TCP connection. The function is available since version 3.1. | ||
- | The // | + | The // |
If no connection was found, nil will be returned. | If no connection was found, nil will be returned. | ||
Line 69: | Line 70: | ||
The GetConnectionErrors function reports whether there were errors while reading the registers in the last scan in the specified connection. The function is available since version 3.0. | The GetConnectionErrors function reports whether there were errors while reading the registers in the last scan in the specified connection. The function is available since version 3.0. | ||
- | *connectoin | + | *connection |
If there were no errors, then the function returns zero. If there were errors, then the ID of the last register is returned, which was not read. | If there were no errors, then the function returns zero. If there were errors, then the ID of the last register is returned, which was not read. | ||
Line 78: | Line 79: | ||
The GetConnectionScanTime function returns the time taken to poll the registers in the last scan in the specified connection. The function is available since version 3.0. | The GetConnectionScanTime function returns the time taken to poll the registers in the last scan in the specified connection. The function is available since version 3.0. | ||
- | *connectoin | + | *connection |
The function returns the time in milliseconds. | The function returns the time in milliseconds. |
control_connections.1547030061.txt.gz · Last modified: 2019/01/09 10:34 by akuzmuk