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

G04 - Dwell

For a dwell, program: G04 P~. This will keep the axes unmoving for the period of time in seconds specified by the P number. It is an error if the P number is negative.


  • G04 Example

    Last Updated Feb 28, 2011
    - Download G04 Code Example   

    (Sample Program G04EX5:)
    (Workpiece Size: X3.5, Y2, Z0.5)
    (Tool: Tool #1, 1/8" Slot Mill)
    (Tool Start Position: X0, Y0, Z1)

    N2 G90 G80 G40 G54 G20 G17 G50 G94 G64 (safety block)
    N5 G90 G20 (Absolute programming in inch mode)
    N10 M06 T1 G43 H1 (Tool change to Tool #1)
    N15 M03 S1300 (Spindle on CW at 1300 rpm)
    N20 G00 X3 Y1 Z0.1 (Rapid to X3,Y1,Z0.1)
    N25 G01 Z-0.125 F5.0 (Feed down to Z–0.125 at 5 ipm)
    N30 G04 P2 (Dwell for 2 seconds)
    N35 G00 X2 Z0.1 (Rapid up to Z0.1)
    N40 X2 (Rapid over to X2)
    N45 G01 Z-0.125 F5.0 (Feed down to Z–0.125)
    N50 G04 P1 (Dwell for 1 second)
    N55 G00 Z1.0 (Rapid out to Z1)
    N60 X0. Y0. (Rapid to X0, Y0)
    N65 M05 (Spindle off )
    N70 M30 (Program end)

  • All Machine Code Reference Examples

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