Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 11:29:48 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  SIN, SQRT, TAN & COS
Pages: 1   Go Down
Print
Author Topic: SIN, SQRT, TAN & COS  (Read 519 times)
0 Members and 1 Guest are viewing this topic.
dsnellen
Active Member

Offline Offline

Posts: 16


View Profile
« 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
Logged
dsnellen
Active Member

Offline Offline

Posts: 16


View Profile
« Reply #1 on: November 16, 2009, 11:27:03 PM »

Never mind. I see it. A stupid programmer error. Problem solved. Thanks.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!