Cnc programming – Lenze ETC Motion Control User Manual
Page 138
CNC programming
G functions
G functions individual descriptions
3.2
3.2.2
l
138
EDSTCXN EN 2.0
3.2.2.51
G130 Modal comparative operation, parameter field comparison
Modal or non−modal comparative operation with an effect on other modal
comparative operations
G130 X Z K I E Y V J
X
First operand
Z
Second operand
K
Comparative operation
I
Target block number
E
Target program number
Y
Number of modal comparison (0 ... 6) or, if not programmed, non−modal
comparison.
V
Index of an optional customer−specific comparative operation
J
Brakes
0: without ramp
1: with ramp (default)
G130 carries out a comparison K between the two operands X and Z. Both
constants and indexes of parameter fields are allowed as operands.
The comparative operations 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
In the case of a "true" result, all the on−going actions in the current NC
channel are stopped. Two variants of continuing the program are then
possible:
Program jump: The stopped actions are canceled and the program is
continued with block I. In this case, the code letter E must not be
programmed. The target block number I must be contained in the same
program in which the comparison is also programmed. If the target block
number I is not equal to the current block number N, a "true" result leads to
the deletion of all modal and non−modal comparative operations, which
were made on the same or subordinate program planes.
Subprogram call: The stopped actions are saved, program E is placed in
processing. In this case, the code letter E must be programmed; a target block
number I must not be specified. If the subprogram is processed, the control
continues processing at the interrupted position. A "true" result does not
lead to the export of modal or non−modal comparative operations.
Syntax
Meaning of the addresses
Explanation