[Emc-users] Where can I find the docs on the math functions in LCNC? Wiki doesn't show them

2014-12-02 Thread Gene Heskett
See subject

Thanks.

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=157005751iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where can I find the docs on the math functions in LCNC? Wiki doesn't show them

2014-12-02 Thread Todd Zuercher
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


- Original Message -
From: Gene Heskett ghesk...@wdtv.com
To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
Sent: Tuesday, December 2, 2014 9:45:00 AM
Subject: [Emc-users] Where can I find the docs on the math functions in LCNC? 
Wiki doesn't show them

See subject

Thanks.

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=157005751iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
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=157005751iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where can I find the docs on the math functions in LCNC? Wiki doesn't show them

2014-12-02 Thread alex chiosso
Hi Gene.
Look at Here
http://linuxcnc.org/docs/html/gcode/overview.html#sec:Expressions .

Regards

Alex

On Tue, Dec 2, 2014 at 3:45 PM, Gene Heskett ghesk...@wdtv.com wrote:

 See subject

 Thanks.

 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=157005751iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
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=157005751iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where can I find the docs on the math functions in LCNC? Wiki doesn't show them

2014-12-02 Thread Gene Heskett
On Tuesday 02 December 2014 09:52:18 alex chiosso did opine
And Gene did reply:
 Hi Gene.
 Look at Here
 http://linuxcnc.org/docs/html/gcode/overview.html#sec:Expressions .
 
 Regards
 
 Alex

Thanks Alex, but the MOD function is only listed once, with no examples of 
use syntax. What I need to do with it is a switch that does the 
IF/ELSE/ENDIF, which path IF/ELSE to execute IOW.

Most languages have a MOD[var1,var2] function but to LCNC it seems to be a 
non-starter. But testing says 3 MD 2 = 1, but I already have a workaround.

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=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Where can I find the docs on the math functions in LCNC? Wiki doesn't show them

2014-12-02 Thread Gene Heskett
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=164703151iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users