User Tools

Site Tools


uphp:library_functions:modbus

Differences

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

Link to this comparison view

uphp:library_functions:modbus [2021/04/09 08:55]
admin created
uphp:library_functions:modbus [2021/09/13 05:57]
Line 1: Line 1:
-======Modbus Library Reference====== 
- 
-Available in <badge>Wattmon OS 3.12+</badge> 
- 
-The Modbus include library contains functions and defines as shown below. 
- 
-Usage:  
- 
-<html><pre>include("/lib/uphp/modbus.inc");</pre></html> 
- 
-Click on the function name for further details: 
- 
-^FUNCTION NAME^PARAMETER(S)^RETURN^LIBRARY^DESCRIPTION^ 
-|[[mb_get_error_string]]|<html><span style="color:green">int<span style="color:blue"> error</html>|<html><span style="color:green">string<span style="color:blue"></html>|[[modbus]]|Get human readable error description| 
-|[[mb_set_float_be_0x10]]|<html><span style="color:green">int<span style="color:blue"> id, <span style="color:green">int<span style="color:blue"> bus, <span style="color:green">int<span style="color:blue"> reg, <span style="color:green">int<span style="color:black"> val, <span style="color:green">int<span style="color:blue"> retries</html>|<html><span style="color:green">int<span style="color:blue"></html>|[[modbus]]|Set a modbus float in big endian using function 10h| 
-|[[mb_set_float_le_0x10]]|<html><span style="color:green">int<span style="color:blue"> id, <span style="color:green">int<span style="color:blue"> bus, <span style="color:green">int<span style="color:blue"> reg, <span style="color:green">int<span style="color:black"> val, <span style="color:green">int<span style="color:blue"> retries</html>|<html><span style="color:green">int<span style="color:blue"></html>|[[modbus]]|Set a modbus float in little endian using function 10h| 
-|[[mb_set_int16_0x03]]|<html><span style="color:green">int<span style="color:blue"> id, <span style="color:green">int<span style="color:blue"> bus, <span style="color:green">int<span style="color:blue"> reg, <span style="color:green">int<span style="color:black"> val, <span style="color:green">int<span style="color:blue"> retries</html>|<html><span style="color:green">int<span style="color:blue"></html>|[[modbus]]|Set a modbus device register using function 03h| 
-|[[mb_set_int16_0x10]]|<html><span style="color:green">int<span style="color:blue"> id, <span style="color:green">int<span style="color:blue"> bus, <span style="color:green">int<span style="color:blue"> reg, <span style="color:green">int<span style="color:black"> val, <span style="color:green">int<span style="color:blue"> retries</html>|<html><span style="color:green">int<span style="color:blue"></html>|[[modbus]]|Set a modbus device register using function 10h| 
-|[[mb_set_uint32_be_0x10]]|<html><span style="color:green">int<span style="color:blue"> id, <span style="color:green">int<span style="color:blue"> bus, <span style="color:green">int<span style="color:blue"> reg, <span style="color:green">int<span style="color:black"> val, <span style="color:green">int<span style="color:blue"> retries</html>|<html><span style="color:green">int<span style="color:blue"></html>|[[modbus]]|Set a modbus UINT32 in big endian using function 10h| 
-|[[mb_set_uint32_le_0x10]]|<html><span style="color:green">int<span style="color:blue"> id, <span style="color:green">int<span style="color:blue"> bus, <span style="color:green">int<span style="color:blue"> reg, <span style="color:green">int<span style="color:black"> val, <span style="color:green">int<span style="color:blue"> retries</html>|<html><span style="color:green">int<span style="color:blue"></html>|[[modbus]]|Set a modbus UINT32 in little endian using function 10h| 
  
uphp/library_functions/modbus.txt · Last modified: 2021/09/13 05:57 (external edit)