Not entirely true.

Inside of a main program file, I can do something like this:

G0 G90 G54 X0 Y0
G43
Z1.
#1=0
o1 while[#1LE10.]
(debug, #1)
#1=[#1+1]
o1 endwhile
m30

This all works fine and as expected as long as i preface the logic with an
o-code. This isn't a subprogram, just a main program I created as a
standard .ngc file and it just works.

now, if I could just get someone to give me:
o1 if[#1NE10]goto... :)

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Tue, Jul 27, 2021, 2:07 PM andy pugh <[email protected]> wrote:

> On Tue, 27 Jul 2021 at 18:32, Feral Engineer <[email protected]>
> wrote:
>
> I don't think this would require a different interpreter,
>
>
> It would, because LinuxCNC sees "While" as "move the W axis to hile" and
> "hile" is not a valid number...
>
> --
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to