G-code reference

G50.1 G-Code: Programmable Mirror Image Cancel

Programmable Mirror Image Cancel — Cancels programmable mirror image started with G51.1.

By cnccode · Updated
PropertyValue
CodeG50.1
FunctionProgrammable Mirror Image Cancel
Modal group22
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG50.1 X0 Y0

What does G50.1 do?

Cancels programmable mirror image started with G51.1.

G50.1 is modal: once programmed it remains in effect for the following blocks until another code from modal group 22 replaces it or the control is reset.

Syntax and parameters

Format
G50.1 X0 Y0

G50.1 example program

Example
G51.1 X0 (mirror about X0)
M98 P1000
G50.1 X0

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Mirror image reverses arc and compensation directions (climb becomes conventional).

Controller compatibility

G50.1 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.

Frequently asked questions

Is G50.1 modal?
Yes. G50.1 belongs to modal group 22 and stays active until another code of that group is programmed.
What does G50.1 mean in CNC?
G50.1 means Programmable Mirror Image Cancel. Cancels programmable mirror image started with G51.1.
What is the difference between G50.1 and G51.1?
G50.1 is Programmable Mirror Image Cancel, while G51.1 is Programmable Mirror Image. See the G51.1 page for its syntax and examples.
Can I use G50.1 on a lathe?
Usually not with the same meaning: G50.1 is documented here for milling machines. Check your control manual for the equivalent.