User Tools

Site Tools


uphp:functions:mb_send_command

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
uphp:functions:mb_send_command [2017/05/05 14:28]
jeff created
uphp:functions:mb_send_command [2018/02/20 06:24]
admin
Line 3: Line 3:
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Send a sequence of characters to the rs485 bus and get a reply+Send a sequence of characters to the RS-485 [or TCP Channel] bus and get a reply
  
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">array <span style="font-size:125%;color:green">array
-<span style="color:black"> +<span style="color:black">mb_send_command ( 
-</html> +<span style="color:black">[ 
-[[mb_send_command]] ( +<span style="color:green">int 
-<html>+<span style="color:blue">$bus 
 +<span style="color:black">,]
 <span style="color:green">mixed <span style="color:green">mixed
 <span style="color:blue">$values <span style="color:blue">$values
Line 20: Line 20:
 <span style="color:blue">$values <span style="color:blue">$values
 <span style="color:black">... ] ) <span style="color:black">... ] )
-</html> +</html></well>
-</well>+
  
 ====Parameters==== ====Parameters====
  
-<html><b><span style="color:blue">$values<span style="color:black"></b>:  Characters to send, <b><span style="color:green">array<span style="color:black"></b> or <b><span style="color:green">integer</b></html>+<html><b><span style="color:blue">$bus<span style="color:black"></b>:  Optional Bus (Modbus RTU or TCP Bus number) leave blank for RTU, <br/> 
 +<b><span style="color:blue">$values<span style="color:black"></b>:  Characters to send, <b><span style="color:green">array<span style="color:black"></b> or <b><span style="color:green">integer</b></html>
  
-====Return Value====+The $bus parameter can be one of the following values: 
 + 
 +0 - Modbus RTU 
 + 
 +2-10 - Modbus TCP Channel 1-9 
 + 
 +====Return Values====
  
 <html><b><span style="color:green">Array<span style="color:black"></b> of <b><span style="color:green">numbers</b></html> <html><b><span style="color:green">Array<span style="color:black"></b> of <b><span style="color:green">numbers</b></html>
uphp/functions/mb_send_command.txt · Last modified: 2021/09/13 05:57 (external edit)