Login to enhance your online experience. Login or Create an Account

G17, G18 and G19 - Plane Selection

Details:
Program G17 to select the XY-plane, G18 to select the XZ-plane or G19 to select the YZ-plane.

  • G17 Example

    Last Updated Feb 28, 2011
    - Download G17 Code Example   


    (Sample Program G17EX6:)
    (Workpiece Size: X3, Y2, Z1)
    (Tool: Tool #4, 1/2" Slot Drill)
    (Tool Start Position: X0, Y0, Z1)

    N2 G90 G80 G40 G54 G20 G17 G50 G94 G64 (safety block)
    N5 G90 G20 G17 (Set XY plane)
    N10 M06 T4 G43 H4
    N15 M03 S1200
    N20 G00 X2 Y1
    N25 Z0.125
    N30 G01 Z-0.05 F5
    N35 G02 X1 R1 F10
    N40 G00 Z1
    N45 X0 Y0
    N50 M05
    N55 M30

  • G18 Example

    Last Updated Feb 28, 2011
    - Download G18 Code Example   


    (Sample Program G18EX7:)
    (Workpiece Size: X2, Y1, Z1)
    (Tool: Tool #2, 1/4" Slot Drill)
    (Tool Start Position: X0, Y0, Z1)

    N2 G90 G80 G40 G54 G20 G17 G50 G94 G64 (safety block)
    N5 G90 G20 G17 (G17 sets XY plane)
    N10 M06 T2 G43 H2
    N15 M03 S1200
    N20 G00 X0 Y0
    N25 Z1
    N30 Z0.1
    N35 G01 Z0 F5
    N40 G18 G02 X2 Z0 I1 K0 (G18 sets XZ plane)
    N45 G01 Y0.25
    N50 G03 X0.5 Z0 I-0.75 K0
    N55 G01 Y0.5 F10
    N60 G02 X1.5 Z0 I0.5 K0
    N65 G00 Z1
    N70 X0 Y0
    N75 M05
    N80 M30

  • G19 Example

    Last Updated Feb 28, 2011
    - Download G19 Code Example   


    (Sample Program G19EX8:)
    (Workpiece Size: X2, Y2, Z1)
    (Tool: Tool #2, 1/4" Slot Mill)
    (Tool Start Position: X0, Y0, Z1)

    N2 G90 G80 G40 G54 G20 G17 G50 G94 G64 (safety block)
    N5 G90 G20 G17 (Set XY Plane)
    N10 M06 T2 G43 H2
    N15 M03 S1200
    N20 G00 X0 Y0
    N25 Z0.1
    N30 G01 Z0 F5
    N35 G19 G03 Y1 Z0 J0.5 K0 (Set YZ plane)
    N40 G01 X1.5 Y2 F10
    N45 G02 Y0 Z0 J-1 K0 F5
    N50 G00 Z1
    N55 X0 Y0
    N60 M05
    N65 M30

  • All Machine Code Reference Examples

    Last Updated Sep 16, 2016
    - Download Machine Code Reference Examples