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

Programming 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 with axis specification (G351) 1:
Mirroring the selected side with active tool radius compensation
Mirroring with axis specification (G351) 2:
Mirroring a reference point offset G92

Programming Example

Mirror with axis specification (G351)

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)