Changes

Jump to navigation Jump to search
changed mbpoll commands to use Modbus address 1 instead of 2
Line 82: Line 82:     
<pre># write the output frequency as Hz * 100 (2-places fixed point in decimal) to holding register 1
 
<pre># write the output frequency as Hz * 100 (2-places fixed point in decimal) to holding register 1
./mbpoll /dev/ttyUSB0 -b 19200 6000 -s 1 -P odd -a 2 -0 -r 1 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 6000 -s 1 -P odd -a 1 -0 -r 1 -t 4
    
# to turn on, write 1 to coil 1
 
# to turn on, write 1 to coil 1
./mbpoll /dev/ttyUSB0 1 -b 19200 -s 1 -P odd -a 2 -r 1 -t 0 -B
+
./mbpoll /dev/ttyUSB0 1 -b 19200 -s 1 -P odd -a 1 -r 1 -t 0 -B
    
# to turn off, write 0 to coil 1
 
# to turn off, write 0 to coil 1
./mbpoll /dev/ttyUSB0 0 -b 19200 -s 1 -P odd -a 2 -r 1 -t 0 -B
+
./mbpoll /dev/ttyUSB0 0 -b 19200 -s 1 -P odd -a 1 -r 1 -t 0 -B
    
# to monitor the output frequency (displays Hz * 100)
 
# to monitor the output frequency (displays Hz * 100)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4098 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4098 -t 4
    
# to monitor the output current (displays amps * 10)
 
# to monitor the output current (displays amps * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4099 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4099 -t 4
    
# to monitor the rotation direction (displays 0 for stopped, 1 for forward, 2 for reverse)
 
# to monitor the rotation direction (displays 0 for stopped, 1 for forward, 2 for reverse)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4100 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4100 -t 4
    
# to monitor the output voltage (displays volts * 10)
 
# to monitor the output voltage (displays volts * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4113 -t 4
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4113 -t 4
    
# to monitor the output power (displays kilowatts * 10)
 
# to monitor the output power (displays kilowatts * 10)
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 2 -r 4114 -t 4</pre>
+
./mbpoll /dev/ttyUSB0 -b 19200 -s 1 -P odd -a 1 -r 4114 -t 4</pre>
    
== Online Resources ==
 
== Online Resources ==

Navigation menu