Рет қаралды 2,442
#cnc #turning #lathe #milling ##dmgmori #macro
(MACRO)
M76G98G40G19G54
T808
G97S4000M3F300
G0X80.Z10. (YOU CAN CHANGE THAT, ITS SAVE MOVE)
#501=30. (HEXAGON SIZE)
#502=12. (TOOL SIZE)
#503=2. (HOW DEEP IN ONE PASS IN ,,Z" AXIS)
#504=3. (HOW MANY PASSES IN ,,Z" AXIS)
#505=[[#501/1.7321]/2]
#506=#501+#502
#507=#502/2
#508=#507/2
#509=[[#507*#507]-[#508* #508]]
#510=SQRT [#509]
#511=#501+#507
#512=#505+#510
#513=#505+#512
#514=0
G0G28H0
G0C0
G12.1 or G112
G1Z2.
G1X[#506+#502]C[#505+#502] F1000
G1Z0
N2
G1X[#506+#502]C[#505+#502]F1000 (HIGH FEED OUTSIDE MATERIAL)
G1W-#503
G1X#506C#505 F300 ( FIRST MOVE INTO MATERIAL)
G1X#506C-#505
G2X#511C-#512R#507
G1X#507C-#513
G2X-#507C-#513R#507
G1X-#511C-#512
G2X-#506C-#505R#507
G1X-#506C#505
G2X-#511C#512R#507
G1X-#507C#513
G2X#507C#513R#507
G1X#511C#512
G2X#506C#505R#507
G1X[#506+#502] F1000 (HIGH FEED , MOVE OUTSIDE MATERIAL)
#514=#514+1
IF[#514EQ#504]GOTO12
GOTO2
N12
G13.1 or G113
G0Z25.
M9
G0G28U0V0
M30