Cnc programming – Lenze ETC Motion Control User Manual

Page 137

Advertising
background image

CNC programming

G functions

G functions individual descriptions

3

3.2

3.2.2

l

137

EDSTCXN EN 2.0

3.2.2.50

G125 Non−modal comparative operation, parameter field comparison

Non−modal comparative operation without an effect on other, modal
comparative operations.

G125 X Z K I E

X

Operand 1

Z

Operand 2

K

Operator

I

Block number of the jump target

E

The P field index for storing the comparison result must be specified if I is
not programmed

G125 carries out a comparison K between the two operands X and Z. The
comparative operations which are possible under K are:

0 : X = Z

X equals Z

1 : X > Z

X greater than Z

2 : X < Z

X smaller than Z

3 : X

Z

X greater than or equal to Z

4 : X

Z

X smaller than or equal to Z

5 : X

Z

X not equal to Z

6: (X

2

Z

) = 0

Bit Z deleted in X

7: (X

2

Z

)

0

Bit Z set in X

If the programmed condition applies (the comparison result is "true"), the
program is continued at the indicated position (I). Otherwise the block
following G125 is used. In contrast to G130, a "true" result does not lead to
the deletion of modal comparative operations.

If E is programmed, the comparison result (0 or 1) is also stored in the
specified parameter.

Both constants and indexes of parameter fields are allowed as operands.

G125 X=P701 Z100 K1 I20

If the value in P701 is greater than 100, the program processing
is continued at block 20, otherwise with the block following
G125.

Syntax

Meaning of the addresses

Explanation

Example

Advertising