Cnc programming – Lenze ETC Motion Control User Manual

Page 108

Advertising
background image

CNC programming

G functions
G functions individual descriptions

3

3.2
3.2.2

l

108

EDSTCXN EN 2.0

3.2.2.9

G17, G18, G19 Plane selection

The preparatory functions G17 ... G19 are used to select the corresponding
plane for various functions, e.g. circular interpolation in two axes.

G17
G18
G19

Selected plane:

G17

X−Y plane

G18

X−Z plane

G19

Y−Z plane

The selected plane is valid modally in the program. "G17" is automatically
valid after the end of the program.

A plane must be selected when a program is first started. A standard default
setting is not provided.

G18

The plane Z−X is selected.

3.2.2.10

G20 Block jump, optionally with condition check

Program branching in a program with programming of the jump target and
an optional jump condition.

G20 X E

X

Jump target

E

Index of the Q−Bit (direct programming) or of the parameter field (indirect
programming) for the condition check.

With G20, a jump is programmed within a program. If the DIN address E is
also specified, the execution of the jump is made dependent on a condition.

If E is programmed directly, the function is time synchronized and the value
of E is interpreted as an index of a Q−Bit. The jump is only executed if the Q−Bit
is "1".

In the case of indirect programming, the jump is only executed if the
contents of the specified parameter is not equal to "0". A time
synchronization only takes place if it is a time synchronized parameter.

N20 G20 X50

After block 20, block 50 is processed.

G20 X1 E14

Continue with block 1 if the Q−Bit 14 contains a value not equal to 0.
Otherwise continue with the block after G20.

Syntax

Explanation

Example

Syntax

Meaning of the addresses

Explanation

Example

Advertising