Hello Guest it is March 28, 2024, 10:48:45 AM

Author Topic: SIN, SQRT, TAN & COS  (Read 2533 times)

0 Members and 1 Guest are viewing this topic.

SIN, SQRT, TAN & COS
« on: November 16, 2009, 11:17:46 PM »
I have searched the forum for answers but haven't turned up anytime useful. The question is how to code TAN (and other trig functions) in Mach3 Gcode? I have used FIX and FUP which work as described. But TAN throws an error. A snippet of VB code:

code "#90 = " & Width
code "#91 = TAN[Angle] (Slope of Angle)"
code "#92 = [#90 / #91] (Y intercept)"

#90 is the width of the stock
#91 is the slope of the angle to cut
#92 is the x intercept on y axis at the width

Obliviously, the Width & Angle were previously collected. I could code the answer in VB and assign it to #91, but the solution is not transparent.  The Mach3 manual describes Unary Operations and very much implies these Unary Operations are available. How do I code this so Mach3 understands? Thanks
Re: SIN, SQRT, TAN & COS
« Reply #1 on: November 16, 2009, 11:27:03 PM »
Never mind. I see it. A stupid programmer error. Problem solved. Thanks.