Home › G-codes › Fanuc › G51.1
G51.1 Programmable mirror image
Fanuc G-code · Mill
Mirrors the program about a line on the named axes. Lets one subprogram cut a left and right hand part.
Format
G51.1 X Y
Addresses
| Address | What it does |
|---|---|
X Y | Position of the mirror line on that axis |
How it works
Modal, group 22. Cancel with G50.1.
Example program
M98 P1200 (CUT RIGHT SIDE)
G51.1 X0. (MIRROR ABOUT X ZERO)
M98 P1200 (CUT LEFT SIDE)
G50.1 X0. (MIRROR OFF)
G51.1 X0. (MIRROR ABOUT X ZERO)
M98 P1200 (CUT LEFT SIDE)
G50.1 X0. (MIRROR OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- Mirroring one axis flips G02 and G03 and G41 and G42. Climb milling becomes conventional.
- Start mirror with cutter comp off, and cancel it the same way.
Related codes
G51.1 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Mitsubishi M70 M80 | Mirror image on |
| Brother Speedio | Programmable mirror image |
| Hurco WinMax (NC) | Mirror image |
| Fadal | Mirror image |
Every G-code for Fanuc 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 G51.1 in the app All Fanuc G-codes