Changes

1,350 bytes added ,  05:44, 3 September 2019
added more mbpoll commands
Line 23: Line 23:  
<code>mbpoll</code> commands to interact with the VFD:
 
<code>mbpoll</code> commands to interact with the VFD:
   −
<pre># to turn the spindle on
+
<pre># reset a fault
 +
./mbpoll /dev/ttyUSB0 1 -b 9600 -s 1 -P none -a 1 -r 8 -t 0
 +
 
 +
# turn the spindle on
 
./mbpoll /dev/ttyUSB0 6 -b 9600 -s 1 -P none -a 1 -r 1 -t 4
 
./mbpoll /dev/ttyUSB0 6 -b 9600 -s 1 -P none -a 1 -r 1 -t 4
 
sleep 0.1
 
sleep 0.1
Line 31: Line 34:  
./mbpoll /dev/ttyUSB0 111 -b 9600 -s 1 -P none -a 1 -r 1 -t 4
 
./mbpoll /dev/ttyUSB0 111 -b 9600 -s 1 -P none -a 1 -r 1 -t 4
   −
# to turn the spindle off
+
# turn the spindle off
 
./mbpoll /dev/ttyUSB0 6 -b 9600 -s 1 -P none -a 1 -r 1 -t 4
 
./mbpoll /dev/ttyUSB0 6 -b 9600 -s 1 -P none -a 1 -r 1 -t 4
   −
# to reset a fault (needs to be tested)
+
# write commanded "speed" percentage (-20000 to +20000) TODO: write signed 16-bit instead of signed 32-bit which clobbers another register
./mbpoll /dev/ttyUSB0 1 -b 9600 -s 1 -P none -a 1 -r 8 -t 0
+
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 2 -t 4:int -- 20000
    
# monitor output frequency (displays Hz * 10)
 
# monitor output frequency (displays Hz * 10)
Line 47: Line 50:     
# monitor output voltage (displays V)
 
# monitor output voltage (displays V)
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 109 -t 4</pre>
+
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 109 -t 4
 +
 
 +
# fetch minimum frequency (displays Hz * 10) that the commanded frequency gets clipped to
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 1104 -t 4
 +
 
 +
# fetch "maximum" frequency (displays Hz * 10) corresponding to a command "speed" of 20000 (to establish the scale)
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 1105 -t 4
 +
 
 +
# fetch commanded "speed" percentage (-20000 to +20000) TODO: see if this value is clipped
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 2 -t 4
 +
 
 +
# fetch minimum speed limit (RPM) (has no effect when using Parameter 9904 = 3 aka "SCALAR:FREQ" mode)
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 2001 -t 4
 +
 
 +
# fetch maximum speed limit (RPM) (has no effect when using Parameter 9904 = 3 aka "SCALAR:FREQ" mode)
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 2002 -t 4
 +
 
 +
# fetch minimum frequency limit (displays Hz * 10) NOTE: can be negative to have asymmetric limits containing 0. If positive, it creates a deadband above and below 0 (not just above!)
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 2007 -t 4
 +
 
 +
# fetch maximum frequency limit (displays Hz * 10)
 +
./mbpoll /dev/ttyUSB0 -b 9600 -s 1 -P none -a 1 -r 2008 -t 4</pre>
    
== Replacement Parts ==
 
== Replacement Parts ==