On Tue, 2008-07-01 at 19:53 -0700, Terry wrote: > I got it to work with the scale of .00222 per Jon Elsen > My lack of output was because I didnt turn on the m5i20-dac-enable > Now I have +10VDCwith s5000m3 and -10VDC with s5000m4 > Most VFDs take +10 only --How can I get the voltage to only go > positive?
I have: ### SPINDLE ### # connect spindle fwd/rev to I/O controller net SpindleFwd motion.spindle-forward => parport.0.pin-01-out or2.0.in0 (goes to opto-coupler then VFD Forward terminal) net SpindleRev motion.spindle-reverse => parport.0.pin-02-out or2.0.in1 (goes to opto-coupler then VFD Reverse terminal) net SpindleDACen or2.0.out parport.0.pin-17-out (goes to DAC board enable) # connect spindle DAC, set scale value to match spindle # RPM at +10 V on VFD (ex. 3000 rpm = 10 V * 300 rpm/V) setp ppmc.0.DAC8.00.scale [SPINDLE]DAC_SCALE net spindle-speed motion.spindle-speed-out => ppmc.0.DAC8.00.value (goes to DAC analog input) # connect spindle brake to I/O controller net SpindleBrakeOn motion.spindle-brake => ppmc.0.dout.02.out (not used, VFD has its own brake feature) I'm not sure why my setup works properly if motion.spindle-speed-out goes negative. I'll have to check with Halmeter to see if it does. I assumed speed is a scaler and has no direction, and the direction is handled separately. If you need to, you can connect motion.spindle-speed-out through the abs component: http://www.linuxcnc.org/docview/html//man/man9/abs.9.html to make it always positive. I would check your .hal files to see what motion.spindle-forward and motion.spindle-reverse are connected to to see if these may be producing your negative spindle speeds. If not, I need to look at my setup to see if it is broken. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC/EMC CNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending Craftsman AA 109 restoration Shizuoka ST-N/EMC CNC) ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users