G4 - Dwell

Description

Dwell pauses the command queue and waits for a period of time.

Notes

If both S and P are included, S takes precedence.

M0/M1 provides an interruptible “dwell” (Marlin 1.1.0 and up).

G4 with no arguments is effectively the same as M400.

Parameters

G4 [P<time in ms>] [S<time in sec>]
[P<time in ms>]

Amount of time to dwell

[S<time in sec>]

Amount of time to dwell

Examples

G4 P500 ; Dwell for 1/2 second