Home › M-codes › Mach3 Mach4 › M47
M47 Repeat from first line, Mach3
Mach3 Mach4 M-code · Mill
Mach3. The program continues from its first line and runs again. Stop it with Pause or Stop.
Format
M47
Addresses
| Address | What it does |
|---|---|
M47 | No address words |
How it works
Non modal.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
G43 H1 Z1.0 (LENGTH OFFSET)
M98 P1000 (CUT PART)
…
T1 M6 (TOOL CHANGE)
G43 H1 Z1.0 (LENGTH OFFSET)
M98 P1000 (CUT PART)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Error if used in a subroutine.
- It loops with no count. Use it only with a part loader or a stop in the loop.
Related codes
M47 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Doosan (Fanuc) | P.T.S.Body unclamp & bar retract |
| DMG Mori MAPPS (Fanuc) | Sensor selection signal OFF |
| Fadal | Positive approach cancel |
Every M-code for Mach3 Mach4 in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open M47 in the app All Mach3 Mach4 M-codes