Cnc programming – Lenze ETC Motion Control User Manual

Page 125

Advertising
background image

CNC programming

G functions

G functions individual descriptions

3

3.2

3.2.2

l

125

EDSTCXN EN 2.0

3.2.2.35

G93 Absolute zero shift

G93 can be used to shift the zero point of the current coordinate system to
an absolute programmed value.

G93 AXES

AXES

Axes, whose zero point should be shifted

The absolute zero shift is programmed with the preparatory function G93
and the address letters of the axes, for which the zero point should be
shifted.

The new zero point offset of the coordinate system to be shifted is
programmed directly under the address letters of the axes. The preparatory
function G93 can be used to shift the zero points of all desired axes in a block.

If a T is programmed in the same block, the shift takes place in the current
tool coordinate system (T0 ... T31), otherwise the current workpiece
coordinate system (S0 ... S31) is shifted.

The special position of S0 must be noted. When S0 is shifted, all the other S
coordinate

systems

are

also

shifted.

If

machine

constant

MK_S0T0_VERSATZ_ERLAUBT is not set, an error message is generated
during the attempt to shift S0 and the program is terminated.

N20 G93 Z50 T1

The zero point offset of the Z axis (tool length) is set in T1 to 50 mm here.

3.2.2.36

G99 Return

Subprogram end with return to the calling program.

G99

The preparatory function G99 must be contained in every subprogram as the
last command.

The control continues the program in the main program with the block,
which was programmed after the calling block.

No other address must be programmed in a block with the preparatory
function G99.

Functions with a modal effect are only valid in the subprogram in which they
were set. They are not valid anymore after the subprogram has been ended.

N5 G99

Exit subprogram and continue processing in the calling program.

Syntax

Meaning of the addresses

Explanation

Example

Syntax

Explanation

Example

Advertising