Here are a few lines from a macro I'm trying to write, but I'm not sure of the correct formatting/syntax for doing equations in g-code. Can someone help me out? I'm trying to simulate it on "Torcomp CNCez Pro" for a Hass controller.
N100 #4 = [COS[#1]]* [#18 + [#7 / 2]] + [#24] (FIND X POS)
N110 #6 = [SIN[#1]] * [#18 + [#7 / 2]] + [#26 - [#7/2]] (FIND Z POS)
...
N150 G02 I-[#4 - #24] F#9
...
N170 IF [#6 NE #26] GOTO100
N180 G00 Z[#26 + #18 + #11]
Thanks for the help.
-Chris