Re: [Emc-users] Reset postion on software stepgen

2022-10-17 Thread Leonardo Marsaglia
> > I don't think that this will happen. Why borrow trouble from the > future? Address the problem if it happens. > I'll take that :) > Do you have spindle-speed feedback? A PID would close the loop and > remove the concern. > Unfortunately no. I would like to add a sensor but I need time for

Re: [Emc-users] Reset postion on software stepgen

2022-10-17 Thread andy pugh
On Mon, 17 Oct 2022 at 15:14, Leonardo Marsaglia wrote: > But if I don't reset both counters I suspect that I can end up > with several tens of hertz of deviation in a short time. I don't think that this will happen. Why borrow trouble from the future? Address the problem if it happens. Do you

Re: [Emc-users] Reset postion on software stepgen

2022-10-17 Thread Leonardo Marsaglia
> > If you set the stepgen.max_velocity accordingly this simply won't > happen. It will ramp up and down between commanded values inside the > limit that you set. > Yep. Done that after LCNC told me the speed was too high. > If it goes high again on the way down to zero, it will just change >

Re: [Emc-users] Reset postion on software stepgen

2022-10-17 Thread andy pugh
On Mon, 17 Oct 2022 at 14:37, Leonardo Marsaglia wrote: > I'm mostly worried that a change in the gcode process or may be a tool > change happens so quickly that the stepgen will have no time to make it to > zero position when the next speed command starts. In that case I will have > less speed

Re: [Emc-users] Reset postion on software stepgen

2022-10-17 Thread Leonardo Marsaglia
Hi Andy and thanks for the quick reply I don't understand why you feel the need to use the reset pin? > > It seems that a stephen in up/down position mode connected directly to > the spindle.0.velocity-rpm pin would do exactly what is required. > > Are you worried that missed-steps will leave a

Re: [Emc-users] Reset postion on software stepgen

2022-10-17 Thread andy pugh
On Mon, 17 Oct 2022 at 14:09, Leonardo Marsaglia wrote: > Is it possible to modify the software stepgen component in an easy way to > add a reset pin? Or should I make my own component to generate the pulses? I don't understand why you feel the need to use the reset pin? It seems that a

[Emc-users] Reset postion on software stepgen

2022-10-17 Thread Leonardo Marsaglia
Hi guys, I hope you are all doing well. Quick insight. I've made a router and the spindle drive I'm using has an UP and DOWN mode for increasing and decreasing the working frequency. This mode is not the ideal way to work with but I managed to set the frequency with pretty good results. The mode