get_access_to_registers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
get_access_to_registers [2019/07/05 15:47] – [Getting register's values stored in a log] emozolyak | get_access_to_registers [2024/03/15 16:01] (current) – atolstov | ||
---|---|---|---|
Line 21: | Line 21: | ||
For the convenience of selecting registers for GetReg, there is a special button in toolbar (4). | For the convenience of selecting registers for GetReg, there is a special button in toolbar (4). | ||
- | {{ : | + | {{ network: |
When you click on any of them, a pop-up window appears with a list of registers. | When you click on any of them, a pop-up window appears with a list of registers. | ||
- | {{ : | + | {{ network: |
After clicking on the register of interest, the editor will insert the code with the identifier of the selected register (variable_name if exists or ID) and a comment with the register name, its address and the connection name. | After clicking on the register of interest, the editor will insert the code with the identifier of the selected register (variable_name if exists or ID) and a comment with the register name, its address and the connection name. | ||
- | {{ : | + | {{ network: |
Line 50: | Line 50: | ||
- | ==== WriteReg(variable_name[, connection_name], new_value) ==== | + | ==== WriteReg(variable_name, |
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 | + | Function' |
- | The parameters **variable_name** and **connection_name** work just like in the GetReg function. | + | The parameters **variable_name** and **connection_name** work just like in the GetReg function. |
+ | Before | ||
+ | WriteReg(variable_name[, | ||
===== Getting register' | ===== Getting register' |
get_access_to_registers.1562341642.txt.gz · Last modified: 2019/07/05 15:47 by emozolyak