User Tools

Site Tools


uphp:functions:mb_set_val_by_role

Differences

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

Link to this comparison view

uphp:functions:mb_set_val_by_role [2017/05/08 14:34]
jeff
uphp:functions:mb_set_val_by_role [2021/09/13 05:57]
Line 1: Line 1:
-======mb_set_val_by_role====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Set a <html><b><span style="color:blue">role value<span style="color:black"></b></html> on a modbus device 
- 
-====Description==== 
- 
-<well size="sm"> 
-<html> 
-<span style="font-size:125%;color:green">int 
-<span style="color:black">mb_set_val_by_role ( 
-<span style="color:green">int 
-<span style="color:blue">$role<span style="color:black">, 
-<span style="color:green">number 
-<span style="color:blue">$value 
-<span style="color:black">) 
-</html> 
-</well> 
- 
-====Parameters==== 
- 
-<html><b><span style="color:blue">$role<span style="color:black"></b></html>:  Role ID number 
- 
-<html><b><span style="color:blue">$value<span style="color:black"></b>:  Value to set for the <b><span style="color:blue">role<span style="color:black"></b></html> 
- 
-====Return Value==== 
- 
-<html><b><span style="color:green">Integer<span style="color:black"></b></html>: 1=OK 
- 
-====See Also==== 
- 
-[[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_get_dev_by_id()]] - Return modbus device details by ID 
- 
-[[mb_get_dev_by_index()]] - Return modbus device details by index 
- 
-[[mb_get_dev_by_name()]] - Return modbus device details by name 
- 
-[[mb_get_dev_info()]] - Return modbus device details by type 
- 
-[[mb_get_role_array()]] - Return an <html><b><span style="color:green">array<span style="color:black"></b></html> of all roles and their values 
- 
-[[mb_get_status_by_role()]] - Return status of the device attached to the role 
- 
-[[mb_get_val_by_role()]] - Return value of the role 
- 
-[[mb_num_devices()]] - Return number of devices on the modbus 
- 
-[[mb_queue_command()]] - Queue a sequence of characters to the rs485 bus and get but ignore the reply 
- 
-[[mb_scan_complete()]] - Check to see if a modbus scan has completed 
- 
-[[mb_scan_percent()]] - Return scan percentage completed 
- 
-[[mb_send_command()]] - Send a sequence of characters to the rs485 bus and get a reply 
- 
-[[mb_set_dev_var()]] - Set a variable on a modbus device 
- 
-[[mb_start_scan()]] - Initiate an automatic scan of the modbus 
  
uphp/functions/mb_set_val_by_role.txt · Last modified: 2021/09/13 05:57 (external edit)