User Tools

Site Tools


uphp:functions:mb_get_dev_by_id

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_get_dev_by_id [2017/10/12 05:32]
admin
uphp:functions:mb_get_dev_by_id [2021/09/13 05:57] (current)
Line 21: Line 21:
  
 <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">$bus<span style="color:black"></b></html>:  Optional bus identifier (0 is RS-485 and 2-12 are Modbus TCP channels 1-10 respectively).  This was introduced in 1.1078 and 2.1084. <html><b><span style="color:blue">$bus<span style="color:black"></b></html>:  Optional bus identifier (0 is RS-485 and 2-12 are Modbus TCP channels 1-10 respectively).  This was introduced in 1.1078 and 2.1084.
  
Line 31: Line 32:
 [[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_index()]] - Return modbus device details by index [[mb_get_dev_by_index()]] - Return modbus device details by index
Line 47: Line 48:
 [[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 bus and get but ignore the reply
  
 [[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 53: Line 54:
 [[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 bus and get a reply
  
 [[mb_set_dev_var()]] - Set a variable on a modbus device [[mb_set_dev_var()]] - Set a variable on a modbus device
uphp/functions/mb_get_dev_by_id.1507786356.txt.gz · Last modified: 2021/09/13 05:56 (external edit)