Mirroring with axis information (G351)

The G-functions G20 to G23 that are freely available in conformity with DIN 66025 have been used for mirroring [2]. The following extended syntax offers the possibility, to programm explicitly the axes for mirroring.

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

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

<axis_name> A coordinate consists of an address letter followed by a mathematical expression based on which the coordinate value is calculated.

Coordinate value -1: Selects mirroring

Coordinate value 1 or +1: Cancels mirroring

Programming example

G351 X-1 Y1 Z+1 (Selects mirroring of the X axis and cancels mirroring)
(of the Y and Z axes)
Mirroring with axis information (G351) 1:
Fig. 4.26: Mirroring of the selected side during active tool radius compensation
Mirroring with axis information (G351) 2:
Fig. 4.27: Mirroring of reference point offset

The following example shows how to use the G351 function. Let us assume that the axes X, Y and Z are the first, second and third main axes here.

Programming example

N10 G351 X-1 (Selects mirroring of the X axis (G21))
N20 G351 Y-1 (Selects mirroring of the Y axis (G22))
N30 G351 X-1 Y-1 (Selects mirroring of the X and Y axes (G23))
N40 G351 X1 Y+1 (Cancels mirroring of the X and Y axes (G20))
N50 X1 G351 Y-1 Z1 (Selects mirroring of the Y axis and cancels)
(mirroring of the X and Z axes)