On Tuesday, March 22, 2011 11:29:04 PM Chris Radek did opine:

> On Tue, Mar 22, 2011 at 09:11:04PM -0500, Igor Chudov wrote:
> > > Greetings all;
> > > 
> > > A couple of question regarding the math used in gcode handling.
> > > 
> > > 1.  What is the best way to turn a positive value into its exact
> > > negative? I find constructs like g0x-[#<_var>] are rejected out of
> > > hand, but its seems like there ought to be a better way than
> > > #<_var-minus> = [[#<_var>] - [[#<_var>] + [#<_var>]]]
> > > On a separate, confusing the issue line.
> > 
> > G0 X[-#<var>]
> 
> Older versions didn't have unary minus; in those you can use
> [0-#123]
> 
This is 2.4.6 now.  ISTR I used something like that example a year or so 
back.

Thanks Chris.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
<http://tinyurl.com/ddg5bz>
<http://www.cantrip.org/gatto.html>
When you're bored with yourself, marry, and be bored with someone else.
                -- David Pryce-Jones

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to