One Shot G-Codes
A One shot G-code is effective only in the cnc program block where it is programmed.
Once program starts executing the next block, it’s no longer effective.

Learn G Code Programming
One Shot G-Codes Example
G4 Dwell is a One-shot G-Code, So following cnc programming example shows the use of G4 One Shot G code.
N10 G0 X30 Y40 N20 G4 X2 N30 X20 Y50
N20 G04 is one-shot G-code, effective only in this block.
N30 G04 no longer effective in this block. G0 is.