Mirroring with axis specification (G351)

G21 to G23 select mirroring only for the first two main axes. The syntax with G351 described below permits free programming for axis mirroring.

G351 <axis_name> [ [+] | - ] 1 { <axis_name> [ [+] | - ] 1 }                                                   (non-modal)

G351

Axis-specific selection of mirroring. The G function G351 is only valid as non-modal. However, mirroring is modal for an axis programmed with this function.

<axis_name>

The axis coordinate defines whether to select or deselect mirroring in the axis.

 

Coordinate value -1:

Selects mirroring

Coordinate value 1 or +1:

Deselecting the mirroring function

Programing Example

prg_example

Mirroring with axis specification (G351)

G351 X-1 Y1 Z+1    (Selects mirroring of the X axis and deselects mirroring)

                   (in the Y and Z axes)

Mirroring the selected side with active tool radius compensation
Mirroring the selected side with active tool radius compensation
Mirroring a reference point offset G92
Mirroring a reference point offset G92

Programing Example

prg_example

Mirroring with axis specification (G351)

The examples below show how to use the G351 function. Assume that the axes X, Y and Z are the first, second and third main axes.primary axis.

N10 G351 X-1         (Select mirroring in the X axis (G21))

N20 G351 Y-1         (Select mirroring in the Y axis (G22))

N30 G351 X-1 Y-1     (Select mirroring in the X and Y axes (G23))

N40 G351 X1 Y+1      (Deselect mirroring in the X and Y axes (G20))

N50 X1 G351 Y-1 Z1   (Select mirroring in the Y axis and deselect)                      (mirroring in the X and Z axes)