On Tuesday 02 December 2014 09:52:24 Todd Zuercher did opine
And Gene did reply:
> If you are referring to the ones used in G-code?
> There is a section on it in the G-code Overview under Expressions.
> http://linuxcnc.org/docs/html/gcode/overview.html#sec:Expressions
 
No syntax examples for MOD.  Mentioned only once in one of the tables 
there.  IIRC it was well explained several years back up the log, but has 
since disappeared.

But I have both figured it out, and had written a workaround before I 
figured it out.

The syntax is:

named_var = [var1 MOD var2]

Its amazing how educational a single line showing the usage can be, but 
there is virtually none of that in our docs. That rates a :(

IIRC the usual usage of a MOD function is MOD[var1, var2] or sth similar. 
And some languages even use a % for the MOD function.
 
Also, a feature request:

The gcode interpreter should be able to handle true/false but I am forced 
to use numerical float comparisons for logical IF/ELSE/ENDIF flow control.  
It works, but it sucks about like an Electrolux vacuum in 1940. :)

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to