The stuff that uses the limit2 was cut and pasted from a web page. I never expected it to work first time.
In each case it's something like this: # hijack the spindle speed out and send it to spindle ramp in net spindle-cmd <= motion.spindle-speed-out => spindle-ramp.in The error message is that motion.spinde-speed-out is already assigned. And sure enough later in the file, the part that works there's the usage of motion.spinde-speed-out net spindle-vel-cmd-rpm <= motion.spindle-speed-out So if we work it backwards the statement tells the MESA to create a PWM value for speed. The PWM_SCALE is 50. # PWM gen signals/setup # PWM signal pin config setp hm2_7i92.0.pwmgen.00.output-type 1 setp hm2_7i92.0.pwmgen.00.scale [SPINDLE_9]PWM_SCALE setp hm2_7i92.0.pwmgen.pwm_frequency 1000 # PWM dir pin config setp hm2_7i92.0.gpio.005.is_output true net spindle-enable => hm2_7i92.0.pwmgen.00.enable net spindle-vel-cmd-rps => hm2_7i92.0.pwmgen.00.value net spindle-ccw => hm2_7i92.0.gpio.005.out > -----Original Message----- > From: andy pugh [mailto:bodge...@gmail.com] > Sent: July-15-20 5:26 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] New Spindle working. > > On Thu, 16 Jul 2020 at 01:13, John Dammeyer <jo...@autoartisans.com> wrote: > > > I've commented out the 4 lines that cause it not to start. > > The actual error message when LinuxCNC fails to start would help. > But, perhaps you have a separate spindle.hal file that conflicts with > the nets you made? > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > � George Fitch, Atlanta Constitution Newspaper, 1912 > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users