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
control_connections [2020/08/17 13:41] – disclaimer rewrite atolstovcontrol_connections [2022/09/29 13:00] (current) atolstov
Line 35: 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 70: 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 79: 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.1597671672.txt.gz · Last modified: 2020/08/17 13:41 by atolstov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki