I fiddled some more with scale and max and it's actually working now. Scale 1000 and max 1000 to match the current gear the lathe is in. I stepped it through the speeds from s100 to s1000 by 100s and my optical tachometer confirmed it was about right. Presumably if the encoder can be setup correctly it will be exactly right.
The changes I made to the hal coding for enable and direction have also eliminated the slamming into forward when stopping from a reverse run issue. It would seem there is a bug in PnCConf for the missing rpm in the name, and perhaps a less than optimum coding for enable and direction control. Now if I can figure out what's left to get the encoder working properly for threading... ------Original Mail------ From: "andy pugh" <[email protected]> To: "Enhanced Machine Controller (EMC)" <[email protected]> Sent: Fri, 19 Sep 2014 00:13:58 +0100 Subject: Re: [Emc-users] New to LinuxCNC and PnCConf and need some help... On 18 September 2014 23:49, <[email protected]> wrote: > float OUT 10 motion.spindle-speed-out-abs ==> > spindle-vel-cmd-rpm-abs > float 0 spindle-vel-cmd-abs ==> > hm2_5i25.0.7i76.0.0.spinout That looks a bit like a bug in PNCConf. > And now the spindle runs in linuxCNC. There is still an issue since it seems > doing an S setting in MDI isn't changing the speed. > I'm getting full speed in MDI m03/m04 regardless of my s command. In the > manual tab, if I click the spindle run button I'm either > getting full speed, or clicking the - button will drop it to a crawl, > probably 1V control voltage. This probably means that the scale in the INI file isn't quite right. The HAL file is referencing data in the [SPINDLE_9] section of the INI setp hm2_5i25.0.7i76.0.0.spinout-minlim [SPINDLE_9]OUTPUT_MIN_LIMIT setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_9]OUTPUT_MAX_LIMIT setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_9]OUTPUT_SCALE [SPINDLE_9]OUTPUT_SCALE probably needs to match the maximum spindle speed. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
