Hi All
Trying to write a hex milling macro the problem being I am not sure how to declare variables written program with similar format as I have done in the past but it does not seem to work as seen in screen shot can anyone tell me where I am going wrong please. Code is below & the reason to write macro is I cannot find a wizard to produce a hex, have licence for Mach 3 wizards but cannot see anything suitable & I have a series of parts to make which will save a lot of time with macro.
(Hex Macro #1=a/f Size. #4=Z depth)
#1=38.0
#4=3
#1=[#1/2]
#2=[#1*TAN[30]]
#3=[#1/COS[30]]
G0 G21 G49 G40 G17 G80 G50 G90
M6 T2
G64
M03 S3500
G00 G43 H2 Z3.0
G42
G00 X#1 Y-[#2+10]
G01 Z-#4 F200.0
G01 Y#2 F60.0
G01 X0 Y#3
G01 X-#1 Y#2
G01 Y-#2
G01 X0 Y-#3
G01 X#1 Y-#2
G91
G1 X1.0 Y2.0
G90
G00 Z10.0
G40
M5
M30
%
Thanks Ray