User Tools

Site Tools


get_access_to_registers

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
get_access_to_registers [2022/01/14 14:19] – ↷ Links adapted because of a move operation 127.0.0.1get_access_to_registers [2024/03/15 16:01] (current) atolstov
Line 50: Line 50:
  
  
-==== WriteReg(variable_name[, connection_name], new_value) ====+==== WriteReg(variable_name, new_value) ====
 The WriteReg function sets the current value of the register with the name of the variable **variable_name** (optionally you can specify the connection **connection_name**) to provided **new_value** for the current scan and writes this value to the external device in the beginning of the next cycle. When polling this register in subsequent scans, a new value will be read (if it was not changed by the device itself).  The WriteReg function sets the current value of the register with the name of the variable **variable_name** (optionally you can specify the connection **connection_name**) to provided **new_value** for the current scan and writes this value to the external device in the beginning of the next cycle. When polling this register in subsequent scans, a new value will be read (if it was not changed by the device itself). 
  
-Function returns if any error occurred and 0 on success.+Function'returns value **false** if any error occurred or **true** on success.
  
-The parameters **variable_name** and **connection_name** work just like in the GetReg function. Since version 3.2 there is no more **connection_name** parameter.+The parameters **variable_name** and **connection_name** work just like in the GetReg function.  
 +Before version 3.2 there was **connection_name** parameter. 
 +WriteReg(variable_name[, connection_name], new_value) 
  
 ===== Getting register's values stored in a log ===== ===== Getting register's values stored in a log =====
get_access_to_registers.txt · Last modified: 2024/03/15 16:01 by atolstov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki