This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:mb_add_dev [2017/05/09 10:10] jeff |
uphp:functions:mb_add_dev [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 19: | Line 19: | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
+ | <span style=" | ||
+ | <span style=" | ||
<span style=" | <span style=" | ||
</ | </ | ||
Line 35: | Line 37: | ||
< | < | ||
- | ====Return | + | < |
+ | |||
+ | ====Return | ||
< | < | ||
+ | |||
+ | ====Bus==== | ||
+ | The bus number indicates which subsystem handles the modbus processing in Wattmon. | ||
+ | ^ Bus ^ Description | ||
+ | | 0 | RS-485 Port (Default) | ||
+ | | 1 | Virtual Device | ||
+ | | 2-11 | Modbus TCP Channel 0-9 | | ||
====See Also==== | ====See Also==== | ||
- | [[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 | ||
Line 59: | Line 70: | ||
[[mb_num_devices()]] - Return number of devices on the modbus | [[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_queue_command()]] - Queue a sequence of characters to the RS-485 |
[[mb_scan_complete()]] - Check to see if a modbus scan has completed | [[mb_scan_complete()]] - Check to see if a modbus scan has completed | ||
Line 65: | Line 76: | ||
[[mb_scan_percent()]] - Return scan percentage 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_send_command()]] - Send a sequence of characters to the RS-485 |
[[mb_set_dev_var()]] - Set a variable on a modbus device | [[mb_set_dev_var()]] - Set a variable on a modbus device |