Changes

no edit summary
Line 141: Line 141:  
  $ modbus read -w -p 12345 192.168.1.1 %MW001 2
 
  $ modbus read -w -p 12345 192.168.1.1 %MW001 2
   −
'''-w'''
+
'''-w''' specifies the data type. In this case, unsigned 16 bit integers.
 +
 
 +
'''-p''' specifies the port number.
 +
 
 +
'''192.168.1.1''' - the router's LAN IP address.
 +
 
 +
'''%MW001''' specifies the register number.
 +
 
 +
'''2''' - specifies how many registers should be read.
 +
 
 +
'''Response:'''
 +
 
 +
[[File:Configuration examples modbus uptime example.png]]

Navigation menu