Re: [Emc-developers] Need M3 commands to not cause full machine stop
I finally got back to this and successfully got it working. Thanks for the breadcrumbs! On Tue, Jul 20, 2021 at 11:45 AM andy pugh wrote: > On Tue, 20 Jul 2021 at 17:11, Joseph Spanier wrote: > > > Is there an easy way of pointing the spindle override signals > > from the UI at our analog out? > > You could use halui.spindle.N.override.value as an input to a "scale" > function that modifies the analogue output. > > Or separate the override control (an encoder, presumably?) and feed > that directly in to the scale component. (with suitable scaling of the > encoder component) > > -- > 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-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
On Tue, 20 Jul 2021 at 17:11, Joseph Spanier wrote: > Is there an easy way of pointing the spindle override signals > from the UI at our analog out? You could use halui.spindle.N.override.value as an input to a "scale" function that modifies the analogue output. Or separate the override control (an encoder, presumably?) and feed that directly in to the scale component. (with suitable scaling of the encoder component) -- 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-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
Yea, the application is intended for people to write the code by hand so the corner round is handy, but the main issue is we don't want to come to a full stop at any point because stops will cause a material pile up (its effectively a 3D printer). So what would be the best way to go about this? If M3 is always going to cause a full stop on that or the next line we can look into going back to using an analog output. But I need a way to create an override in the UI of linuxCNC. Is there an easy way of pointing the spindle override signals from the UI at our analog out? On Tue, Jul 20, 2021 at 10:31 AM andy pugh wrote: > On Tue, 20 Jul 2021 at 15:45, Joseph Spanier wrote: > > > Here is a short code snippet so I can highlight the issue. M3 breaks > Corner > > rounding and forces a full stop on the "G01 Y15" line where I want that > > corner to be rounded at the G64 parameter. > > I think that this is actually correct behaviour in nearly all > circumstances. > > If there is a spindle speed change in your G-code, you want that to > take effect when the cutter is at the programmed position. > So, the system will flush the queue before applying the new spindle > speed to ensure that the position is correct. > > Is it possible to actually program in the rounded corners? > > > -- > 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-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
On Tue, 20 Jul 2021 at 15:45, Joseph Spanier wrote: > Here is a short code snippet so I can highlight the issue. M3 breaks Corner > rounding and forces a full stop on the "G01 Y15" line where I want that > corner to be rounded at the G64 parameter. I think that this is actually correct behaviour in nearly all circumstances. If there is a spindle speed change in your G-code, you want that to take effect when the cutter is at the programmed position. So, the system will flush the queue before applying the new spindle speed to ensure that the position is correct. Is it possible to actually program in the rounded corners? -- 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-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
Andy, Yes, We are using the spindle override, this though does not cause the program to stop movement. In an earlier revision I was setting spindle-at-speed permanently to true, but have since removed pin all together in the hal files I included above. Here is a short code snippet so I can highlight the issue. M3 breaks Corner rounding and forces a full stop on the "G01 Y15" line where I want that corner to be rounded at the G64 parameter. G54 G20 G90 F200 G64 P2 ;2" corner rounding - yes I really need that g01 x0.000 y0.00 m3s50 g01 x10.00 m3 s75 ;M3 actually breaks corner rounding and forces a full stop on the next g1 line g01 y15 g01 x20 g01 x30.00 S100 g01 x0 m5 M2 ;program end [image: cornerround.png] On Mon, Jul 19, 2021 at 11:53 AM andy pugh wrote: > On Mon, 19 Jul 2021 at 17:25, Joseph Spanier wrote: > > > > but I need a way to scale > > it similarly to how spindle speed is modified as well. > > So, you are using spindle override? > > Is it possible that the motion is stopping when you change the spindle > speed because the spindle-at-speed input is being driven? > > Have you tried setting that permanently to true? > > -- > 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-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
Andy, Yes, We are using the spindle override, this though does not cause the program to stop movement. In an earlier revision I was setting spindle-at-speed permanently to true, but have since removed pin all together in the hal files I included above. Here is a short code snippet so I can highlight the issue. M3 breaks Corner rounding and forces a full stop on the "G01 Y15" line where I want that corner to be rounded at the G64 parameter. G54 G20 G90 F200 G64 P2 ;2" corner rounding - yes I really need that g01 x0.000 y0.00 m3s50 g01 x10.00 m3 s75 ;M3 actually breaks corner rounding and forces a full stop on the next g1 line g01 y15 g01 x20 g01 x30.00 S100 g01 x0 m5 M2 ;program end [image: Screenshot at 2021-07-19 14-55-29 (2).png] On Mon, Jul 19, 2021 at 11:53 AM andy pugh wrote: > On Mon, 19 Jul 2021 at 17:25, Joseph Spanier wrote: > > > > but I need a way to scale > > it similarly to how spindle speed is modified as well. > > So, you are using spindle override? > > Is it possible that the motion is stopping when you change the spindle > speed because the spindle-at-speed input is being driven? > > Have you tried setting that permanently to true? > > -- > 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-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
On Mon, 19 Jul 2021 at 17:25, Joseph Spanier wrote: > > but I need a way to scale > it similarly to how spindle speed is modified as well. So, you are using spindle override? Is it possible that the motion is stopping when you change the spindle speed because the spindle-at-speed input is being driven? Have you tried setting that permanently to true? -- 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-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
> > Having it synchronized to the axis movements would be ideal but I am not > sure I will have the ability to prototype that before this needs to be > deployed. Do you have examples of where what is done currently? > I only tested it so I can't point you to any working configuration. But, M67 (instead of M68) will blend with the axis movement so you can synchronize both the analog output change and the movement. M68 sets the value immediately as a digital output does. http://linuxcnc.org/docs/2.8/html/gcode/m-code.html#mcode:m67 El lun, 19 jul 2021 a las 13:25, Joseph Spanier () escribió: > HI Leonardo, > Yes I have and I actually got very far in implementing it. I am using the > Mesa 7i76e to control and Peter helped me convert the spindle output to a > standard analog out that I could control with M68 but I need a way to scale > it similarly to how spindle speed is modified as well. Unfortunately the > pump rate control is a bit of an art rather than a science so it's not > straightforward to program and always needs some tweaking, so rather than > writing my own UI elements and implementing new hardware controls I fell > back to using the spindle output. > > Having it synchronized to the axis movements would be ideal but I am not > sure I will have the ability to prototype that before this needs to be > deployed. Do you have examples of where what is done currently? > > Thanks, > Joe > > On Mon, Jul 19, 2021 at 10:58 AM Leonardo Marsaglia > > wrote: > > > Hi Joseph, > > > > Have you considered controlling your pump speed with an analog output? > > Those can even be synchronized with the axis movements and should not > > change state unless you tell it to. > > > > El lun, 19 jul 2021 a las 12:48, Joseph Spanier () > > escribió: > > > > > Hey everyone, > > > I am working on a machine that uses M3 Sxx commands to control a pump. > > Pump > > > speed is critical to our machine function but only at the beginning of > a > > > program and that time delay is currently handled with a G4 pause. > > > > > > The issue I am running into is introducing an M3 command causes the > > machine > > > to come to a full stop on that line of code and that is an issue with > out > > > operation. > > > > > > I currently have spindle-at-speed removed from HAL but I am not sure > what > > > else I can do. > > > > > > I am including all my hal files that would effect this. > > > ___ > > > Emc-developers mailing list > > > Emc-developers@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/emc-developers > > > > > > > ___ > > Emc-developers mailing list > > Emc-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-developers > > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
HI Leonardo, Yes I have and I actually got very far in implementing it. I am using the Mesa 7i76e to control and Peter helped me convert the spindle output to a standard analog out that I could control with M68 but I need a way to scale it similarly to how spindle speed is modified as well. Unfortunately the pump rate control is a bit of an art rather than a science so it's not straightforward to program and always needs some tweaking, so rather than writing my own UI elements and implementing new hardware controls I fell back to using the spindle output. Having it synchronized to the axis movements would be ideal but I am not sure I will have the ability to prototype that before this needs to be deployed. Do you have examples of where what is done currently? Thanks, Joe On Mon, Jul 19, 2021 at 10:58 AM Leonardo Marsaglia wrote: > Hi Joseph, > > Have you considered controlling your pump speed with an analog output? > Those can even be synchronized with the axis movements and should not > change state unless you tell it to. > > El lun, 19 jul 2021 a las 12:48, Joseph Spanier () > escribió: > > > Hey everyone, > > I am working on a machine that uses M3 Sxx commands to control a pump. > Pump > > speed is critical to our machine function but only at the beginning of a > > program and that time delay is currently handled with a G4 pause. > > > > The issue I am running into is introducing an M3 command causes the > machine > > to come to a full stop on that line of code and that is an issue with out > > operation. > > > > I currently have spindle-at-speed removed from HAL but I am not sure what > > else I can do. > > > > I am including all my hal files that would effect this. > > ___ > > Emc-developers mailing list > > Emc-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-developers > > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] Need M3 commands to not cause full machine stop
Hi Joseph, Have you considered controlling your pump speed with an analog output? Those can even be synchronized with the axis movements and should not change state unless you tell it to. El lun, 19 jul 2021 a las 12:48, Joseph Spanier () escribió: > Hey everyone, > I am working on a machine that uses M3 Sxx commands to control a pump. Pump > speed is critical to our machine function but only at the beginning of a > program and that time delay is currently handled with a G4 pause. > > The issue I am running into is introducing an M3 command causes the machine > to come to a full stop on that line of code and that is an issue with out > operation. > > I currently have spindle-at-speed removed from HAL but I am not sure what > else I can do. > > I am including all my hal files that would effect this. > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers