User Tools

Site Tools


control_connections

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
control_connections [2019/01/09 10:34] akuzmukcontrol_connections [2022/09/29 13:00] (current) atolstov
Line 8: Line 8:
   *Lua variable name   *Lua variable name
 <code> <code>
-  Please note that numerical constants like ID numbers complicate the reading of the code and it is preferable to +  Please note that numerical constants like ID numbers can make  
 +  the reading of the code complicated and it is preferable to 
   use named lines.   use named lines.
 </code> </code>
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 //mb_connection// parameter is the Modbus connectoin ID or its Lua name. +The //mb_connection// parameter is the Modbus connection ID or its Lua name. 
  
 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 - ID of Lua name of the connection being checked+  *connection - ID of Lua name of the connection being checked
  
 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 - ID or Lua variable name+  *connection - ID or Lua variable name
  
 The function returns the time in milliseconds. The function returns the time in milliseconds.
control_connections.1547030076.txt.gz · Last modified: 2019/01/09 10:34 by akuzmuk

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki