Pushing the Limits of Home Machining with G-Code, GRBL, CNCJS, and Macro Magic
Programs to be used with CNCjs macro function
Continuous Linear Machining Program
Continuous Linear Machining Program (Awesome LINES Freak)
;Awesome LINES Freak
G90 G94
G17
G21;MM
%DEPTH = -9
;Enter as G91
%POINT_A_X = 60
%POINT_A_Y = 0
%POINT_B_X = 11
%POINT_B_Y = -11
%POINT_C_X = 0
%POINT_C_Y = 0
S5000 M3
F30
G90
G0 Z5
X0 Y0
G0 Z0
;1
G91 G1 Z[DEPTH/3]G91 G1 X[POINT_A_X] Y[POINT_A_Y]
G91 G1 X[POINT_B_X] Y[POINT_B_Y]
G91 G1 X[POINT_C_X] Y[POINT_C_Y]
G91 G0 Z13
M5
G90 X0 Y0
M0
M3
G91 G0 Z-13
;2
G91 G1 Z[DEPTH/3]G91 G1 X[POINT_A_X] Y[POINT_A_Y]
G91 G1 X[POINT_B_X] Y[POINT_B_Y]
G91 G1 X[POINT_C_X] Y[POINT_C_Y]
G91 G0 Z13
M5
G90 X0 Y0
M0
M3
G91 G0 Z-13
;3
G91 G1 Z[DEPTH/3]G91 G1 X[POINT_A_X] Y[POINT_A_Y]
G91 G1 X[POINT_B_X] Y[POINT_B_Y]
G91 G1 X[POINT_C_X] Y[POINT_C_Y]
G91 G0 Z13
M5
G90 X0 Y0
M30
Continuous Linear Machining Program (Awesome HOLES Freak)
;Awesome HOLES Freak
G90 G94
G17
G21;MM
;——————————————————————–
%TOOL_D = 3 ;Tool Diameter
%DIAMETER = 20
%Z_ST = 0 ;Machining start Z-coordinate
%Z_DEPTH = -8 ;Machining of the final Z-coordinate
%NO_CUT = 20 ;number of rounds (of a machine)
S5000 M3
F1000
G90 G0 Z5 ;Moving height
G90 X0 Y0 ;Machining Center Seat Standard
;——————————————————————–
;Move to start point
G91 G0 Y[DIAMETER/2 – TOOL_D/2]G90 G0 Z[Z_ST]
%COUNT = 0
%A_DEPTH = [Z_DEPTH- Z_ST] / NO_CUT
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
%COUNT = COUNT+1;————————————————————–
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G3 J-[DIAMETER/2 – TOOL_D/2] Y-[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]N[UN] G91 G3 J[DIAMETER/2 – TOOL_D/2] Y[DIAMETER – TOOL_D] Z[A_DEPTH/2 ]
G90 G0 Z[Z_ST+5]M5
M30
Slotting program
This CNC program is designed for machining a rectangular piece with rounded corners, also known as a “filleted rectangle.” It incrementally cuts the material in layers to achieve the final depth, using a combination of linear and circular (G1 and G3) movements. Here’s a breakdown of its key variables, functions, and usage:
Variables Setup
%TOOL_D
: Diameter of the cutting tool.%CORNER_R
: Radius of the rectangle's corners. This must be larger than the tool radius to accommodate the tool's size during the rounding process.%X_WIDE
and%Y_WIDE
: The dimensions of the rectangle in the X and Y directions, respectively.%Z_ST
: Starting Z-coordinate for machining.%Z_DEPTH
: Final Z-coordinate, indicating the total depth of the cut.%NO_CUT
: Number of passes the tool makes to reach the final depth, facilitating incremental cutting.
Key Calculations
%QUARTER
,%LENGTH
,%A_DEPTH
,%Z_DEPTH_X
,%Z_DEPTH_Y
,%Z_DEPTH_R
: These are calculated values used to control the depth and length of each pass, ensuring uniform material removal across the rectangle and its rounded corners.
Machining Process
- The program starts with setting up the machine with
G90
,G94
,G17
,G21
for absolute positioning, feed rate per minute, XY plane selection, and measurement in millimeters, respectively. - It then moves the tool to the starting position, accounting for the tool diameter and corner radius.
- For each pass (
%COUNT
increment), the tool moves linearly (G1
) and arcs (G3
) around the corners with calculated Z-depth adjustments (%Z_DEPTH_X
,%Z_DEPTH_Y
,%Z_DEPTH_R
) to create the filleted rectangle. The process repeats for the specified number of cuts (%NO_CUT
). - Conditional checks (
%UN
) are used to continue the loop until the required number of passes is completed, adjusting the cutting depth incrementally with each pass. - Finally, a finishing pass is made at the full depth to ensure the final surface quality.
Usage
- Prepare the Machine: Load the program, set up the tool with the specified diameter, and secure the material.
- Program Variables: Adjust the
%X_WIDE
,%Y_WIDE
,%Z_DEPTH
, and%NO_CUT
variables as needed for your specific project requirements. - Run the Program: Start the machining process. The tool will automatically perform the necessary linear and circular movements to machine the filleted rectangle.
This program is particularly useful for parts requiring precise rounded corners, common in dies, molds, and mechanical components. Its incremental depth approach minimizes tool wear and allows for efficient material removal.
Slotting program (Awesome SLOTS Freak)
;Awesome SLOTS Freak
G90 G94
G17
G21;MM
;——————————————————————–
%TOOL_D = 3 ;Tool Diameter
%CORNER_R = 11.5 ;Radius of 4 corners.Set more than tool radius.
%X_WIDE = 23 ;Set above tool diameter
%Y_WIDE = 23 ;Set above tool diameter
%Z_ST = 0 ;Machining start Z-coordinate
%Z_DEPTH = -2.8 ;Machining of the final Z-coordinate
%NO_CUT = 30 ;number of rounds (of a machine)
S5000 M3
F1000
G90 G0 Z5 ;Moving height
G90 X0 Y0 ;Machining Center Seat Standard
;——————————————————————–
%QUARTER =[0.785*[CORNER_R*2 – TOOL_D]]%LENGTH = [QUARTER*4+[X_WIDE – TOOL_D]*2+[Y_WIDE – TOOL_D]*2] ;Distance per lap
%A_DEPTH = [ Z_ST – Z_DEPTH] / NO_CUT ;One cut
%Z_DEPTH_X = [[[X_WIDE – TOOL_D] / LENGTH]*A_DEPTH]%Z_DEPTH_Y = [[[Y_WIDE – TOOL_D] / LENGTH]*A_DEPTH]%Z_DEPTH_R = [-[QUARTER / LENGTH]*A_DEPTH]
;Move to start point
G91 G0 X[X_WIDE/2 – CORNER_R*2/2] Y[Y_WIDE/2 – CORNER_R*2/2]G91 G0 Y[CORNER_R*2/2 – TOOL_D/2]G90 G0 Z[Z_ST]
%C_DEPTH =Z_ST
%COUNT = 0
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
%COUNT = COUNT+1;————————————————————–
%C_DEPTH = C_DEPTH – A_DEPTH
%UN = [(COUNT <= NO_CUT) ? COUNT : -1]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2] Z[-Z_DEPTH_X]N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2] Z[-Z_DEPTH_Y]N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2] Z[Z_DEPTH_R]
;仕上げ加工
%UN = 9999
G90 G1 Z[Z_DEPTH]N[UN] G91 G1 X[ -X_WIDE +CORNER_R*2]
N[UN] G91 G3 J-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2]
N[UN] G91 G1 Y[ -Y_WIDE +CORNER_R*2]
N[UN] G91 G3 I[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y-[CORNER_R*2/2 – TOOL_D/2]
N[UN] G91 G1 X[ X_WIDE – CORNER_R*2]
N[UN] G91 G3 J[CORNER_R*2/2 – TOOL_D/2] X[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2]
N[UN] G91 G1 Y[ Y_WIDE – CORNER_R*2]
N[UN] G91 G3 I-[CORNER_R*2/2 – TOOL_D/2] X-[CORNER_R*2/2 – TOOL_D/2] Y[CORNER_R*2/2 – TOOL_D/2]
G90 G0 Z[Z_ST+5]M5
M30
Recent Comments