Cnc programming – Lenze ETC Motion Control User Manual

Page 112

Advertising
background image

CNC programming

G functions
G functions individual descriptions

3

3.2
3.2.2

l

112

EDSTCXN EN 2.0

3.2.2.15

G27 Jump function with repetition counter

Programming of a loop, which should be passed n−times.

G27 X Z

X

Jump target (block number)

Z

Repetition counter

The programmed block number is carried out in accordance with the number
in the repetition counter Z. The target block number must always be smaller
than the block number, in which G27 is programmed, i.e. only returns are
allowed. Failure to observe this leads to a termination with an error message.

The target block number must exist, otherwise an error message occurs
during the program processing.

The maximum value which can be programmed under Z is 65535; if the
value 0 is specified, the loop is passed through 65536−times.

N10
G27 X10 Z3

The program executes the blocks between N10 and G27 three times before
continuing with the block after G27.

3.2.2.16

G30, G31 Route or path control

The preparatory function G30 is used to switch the control to route
operation and the preparatory function G31 is used to switch the control to
path operation.

G30
G31

In path operation, all programmed axes travel a path, where the speed of the
axes results from the programmed path speed. All axes reach their
programmed end point at the same time.

In route operation, the programmed axes travel their distance at the same
time, but independently from one other. All axes travel to the end point with
the valid speed. The end point is not reached at the same time depending on
the programmed distance.

The processing of the next block starts after the last axis has reached its
target point.

The preparatory function G31 (Path operation) is preset after the control has
been switched on or reset if another default setting has not been selected in
the machine constants with MK_VOREINSTELLUNG.

N5 G30

With block 5 the control is switched to the route operation.

Syntax

Meaning of the addresses

Explanation

Example

Syntax

Explanation

Example

Advertising