On 3 October 2014 08:08, alex chiosso <achio...@gmail.com> wrote:
> I wonder to know how difficult is to implement the GOTO logical operators
> within the LCNC G Code interpreter.

The first question is how you would define the target position. As
LinuxCNC G-code doesn't pay attention to line numbers I think you
would need two new keywords, both the GOTO expression and the target.
O100 LABEL maybe?

In the interpreter at the moment the loop ends are matched by number.
O100 while -> O100 endwhile etc. In the context of GOTO it guess that
you would need an O101 GOTO to jump to your O101 LABEL.

But, this leaves no scope for the (I shudder to mention this even
amongst GOTO advocates) computed GOTO. O[#1 + 200] GOTO isn't valid
syntax, I don't think.

As a less-than-transparent workaround you can currently use O100 WHILE
[0] to jump to an O100 ENDWHILE, but I don't know if you can jump
backwards, and I don't know if you can have more than one WHILE per
ENDWHILE.

For many of the applications that have been mentioned here, the O100
REPEAT[] statement will work.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to