Mirroring with axis specification (G351)

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

Syntax:

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 (modal).

<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:

Deselect the mirroring function

Programing Example

prg_example

Mirror with axis specification (G351)

G351 X-1 Y1 Z+1    (Select mirroring in the X axis and deselect 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

Mirror with axis specification (G351)

The examples below show how to use the G351 function. Assuming that the axes X, Y and Z are the 1st, 2nd and 3rd main axes.

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 axis (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 axis)