User Tools

Site Tools


uphp:functions:mb_set_dev_var

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:mb_set_dev_var [2019/06/27 07:57]
admin
uphp:functions:mb_set_dev_var [2021/09/13 05:57] (current)
Line 28: Line 28:
 <html><b><span style="color:blue">$id<span style="color:black"></b></html>:  Device identification number (slave ID) <html><b><span style="color:blue">$id<span style="color:black"></b></html>:  Device identification number (slave ID)
  
-<html><b><span style="color:blue">$variable<span style="color:black"></b></html>:  Parameter to set+<html><b><span style="color:blue">$variable<span style="color:black"></b></html>:  Parameter to set
 This can be the register name, one of the predefined parameters such as "name", "slave_id", "delay", or a role value by passing "roleX" where is X is a number between 0 and the number of roles -1 for that driver.  This will allow you to set a role value which may span two registers (such as a float or unsigned) in one go.  It will take care of sending the appropriate Modbus command to update the value in the device itself. This can be the register name, one of the predefined parameters such as "name", "slave_id", "delay", or a role value by passing "roleX" where is X is a number between 0 and the number of roles -1 for that driver.  This will allow you to set a role value which may span two registers (such as a float or unsigned) in one go.  It will take care of sending the appropriate Modbus command to update the value in the device itself.
  
Line 41: Line 42:
 [[mb_add_dev()]] - Add a device to the list of polled devices [[mb_add_dev()]] - Add a device to the list of polled devices
  
-[[mb_delete_device()]] - Delete a device from the list of active devices+[[mb_delete_dev()]] - Delete a device from the list of active devices
  
 [[mb_get_dev_by_id()]] - Return modbus device details by ID [[mb_get_dev_by_id()]] - Return modbus device details by ID
uphp/functions/mb_set_dev_var.1561622255.txt.gz · Last modified: 2021/09/13 05:56 (external edit)