It's useful for early termination

While [#100LE5]Do1
If[#101gt1000.]goto100
(Code stuff)
#101=(some calculation)
#100=#100+1
End1
N100

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

Order one of the coolest label makers on the market at
http://labelworks.epson.com, use coupon code "theferalengineer" and receive
20% off of your order 🙂

On Thu, Nov 24, 2022, 10:58 AM Steffen Möller <steffen_moel...@gmx.de>
wrote:

> Heya,
>
> I was also raised with "goto = evil" and it took me some decades to
> overcome this mantra/early brainwash. Hereto, Linus' "while+goto looks more
> beautiful in assembly" was important for me (
> https://koblents.com/Ches/Links/Month-Mar-2013/20-Using-Goto-in-Linux-Kernel-Code/
> ).
>
> I did not exactly follow the seeds of this exchange, and likely will not
> get all the details if I tried, but
>
> 10 please allow GOTOs in.
> 20 goto 10
>
> Cheers,
> Steffen
>
> > Gesendet: Donnerstag, 24. November 2022 um 16:17 Uhr
> > Von: "Feral Engineer" <theferalengin...@gmail.com>
> > An: "EMC developers" <emc-developers@lists.sourceforge.net>
> > Betreff: Re: [Emc-developers] Next LinuxCNC video chat
> >
> > It's a familiarity thing with people engrained in the fanuc macro b
> > philosophy. When all you have is a hammer, everything is a nail.
> >
> > Fanuc only had basic logic functionality for decades; if, goto and while.
> > They added THEN with the 30iA, i believe, and most recently, on the fanuc
> > 30i B that only came out a few years ago, they enabled ELSE, but you need
> > to change a parameter to even turn it on. The Mitsubishi 730 control also
> > has if, then, goto, else, and while, but Sinumerik has 3 dimensional
> > arrays, user definable, nonvolatile variable tables, FOR loops, char,
> > string, double (known as real), int, axis and frame data types, plus 5
> > different goto, as I mentioned. That's not even including custom user
> cycle
> > calls with easyscreen gui support. Fwiw, I've peeked at theb LinuxCNC
> > source code. There are goto jumps in it.
> >
> > The question always stands, does LinuxCNC want to gain mainstream
> > popularity or does it just want to remain a tinker toy to a select few?
> Is
> > this just a developer's pet project or is this a machine tool control,
> > meant to be used by people who understand machine tools? I started a
> pretty
> > popular Facebook messenger chat that tells me there is definitely a
> growing
> > interest, but even one of the other guys in my chat works for Renishaw
> and
> > agrees that the lack of goto really hinders workflow for those who are
> used
> > to having it.
> >
> > I really would like to be a useful resource to the project. I've got 2
> > decades of experience working for one of the largest CNC machine tool
> > builders in the world and know a handful of top tier controls inside and
> > out.
> >
> >
> > 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
> >
> > Order one of the coolest label makers on the market at
> > http://labelworks.epson.com, use coupon code "theferalengineer" and
> receive
> > 20% off of your order 🙂
> >
> > On Thu, Nov 24, 2022, 9:52 AM andy pugh <bodge...@gmail.com> wrote:
> >
> > > On Thu, 24 Nov 2022 at 14:29, Feral Engineer <
> theferalengin...@gmail.com>
> > > wrote:
> > >
> > > > To comment on the section involving Siemens Sinumerik, at least one
> of
> > > the
> > > > 5 different goto options would be nice to have
> > >
> > > I think that will be a fight, there are too many programmers on the
> > > team who have been taught that GOTO is evil.
> > >
> > > There isn't anything that can be done with GOTO that can't be done
> > > with IF/ELSE/ENDIF or GOSUB/RETURN though.
> > >
> > > --
> > > 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
> >
>
>
> _______________________________________________
> 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

Reply via email to