robert wrote: > here is a copy of my hm2 if its of any help > > http://pastebin.com/m45f33c07 > > >> I am now struggling with my +/-10 V to my VFD >> I turn on my spindle which should give me 1 rpm but the spindle >> goes full bore. >> >> These lines are what I am trying to use: >> # ################ >> >> # [3] Spindle >> >> # ################ >> >> >> >> >> >> # position command signals >> >> setp hm2_[HOSTMOT2](BOARD).0.pwmgen.03.output-type 1 #pwm on pin1, >> dir on pin2 >> >> >> >> > you might need > setp hm2_[HOSTMOT2](BOARD).0.gpio.020.invert_output true > i see u inverted the scale below so. > >> ####################################### >> >> newsig spindle-run-request bit >> >> linksp spindle-run-request <= motion.spindle-on >> ######################################## >> >> >> >> >> newsig spinspeed float >> >> linksp spinspeed <= motion.spindle-speed-out >> >> linksp spinspeed => hm2_[HOSTMOT2](BOARD).0.pwmgen.03.value >> #[AXIS_3]OUTPUT_OFFSET >> > id change this to net command like so > > net spinspeed motion.spindle-speed-out => > hm2_[HOSTMOT2](BOARD).0.pwmgen.03.value > > may want to change your linksp into net commands make things more tidy > and more current while going to HM2 >> linksp spindle-run-request => hm2_[HOSTMOT2](BOARD).0.pwmgen.03.enable >> > net spindle-run spindle-run-request => > hm2_[HOSTMOT2](BOARD).0.pwmgen.03.enable >> setp hm2_[HOSTMOT2](BOARD).0.pwmgen.03.scale [AXIS_3]OUTPUT_SCALE >> > be carefull here calling spindle axis_3 as to not fool the interp > picking it up as a 4th axis maybe put it as a [spindle] instead >> these are in my .ini file >> >> >> OUTPUT_OFFSET = 0.005 >> >> OUTPUT_SCALE = -.00195 (10V/5000) >> >> MAX_VELOCITY = 10 >> >> #5000 rpm max speed >> I think all the scales in hm2 are wrong >> I cant see why the .00195 wont work >> > 10/5000 = 0.002 > > if still no luck give this a test run > > dont forget motion.spindle-speed-out is true spindle speed > value/number so S6000 = 6000 on motion.spindle-speed-out > > so send it through a scale > loadrt scale count=1 > addf scale.0 servo-thread > #gain=10/6000rpm > setp scale.0.gain 0.001667 > net spindle-speed-scale-in motion.spindle-speed-out => scale.0.in > net spindle-speed-scale-out scale.0.out => > hm2_[HOSTMOT2](BOARD).0.pwmgen.03.value > > >
------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
