Cnc programming – Lenze ETC Motion Control User Manual

Page 135

Advertising
background image

CNC programming

G functions

G functions individual descriptions

3

3.2

3.2.2

l

135

EDSTCXN EN 2.0

3.2.2.48

G121 Programming the modal offset

Change of the modal offset with the transfer of the change amount into the
NC actual position at the same time.

G121 AXES

AXES

Validity identification and new modal offset

When the traverse keys are used for traveling (modal or target point travel
via PLC axes), the axes are positioned via the modal offset. This traverse
movement can, in principle, be superimposed to the movement in the NC
program, see G122. The desired position in reference to the current
coordinate system of the control results from the total of NC actual position
and the modal offset. The effect of the modal offset is like a coordinate shift.

G121 can be used to program the modal offset, in the most simple case, in
order to zero it and to deactivate the shift triggered via the traverse keys.
During this process, the modal offset is transferred into the NC actual
position and the modal offset is reset.

However, the modal offset can also be used specifically to effect a coordinate
shift asynchronously to the current program, e.g. in an interrupt program
(see G130 and G150). Please note that an asynchronous shift via the tool and
workpiece coordinate systems is not possible!

G121 X0 Y0

The modal offset of the X and Y axis (P160,P161) is transferred into the NC
actual position (P0,P1) and the modal offset is reset.

G121 X50 Y10

The modal offset of the X axis is set to 50 and the Y axis to 10, the NC
actual position is reduced accordingly.

Syntax

Meaning of the addresses

Explanation

Example

Advertising