Cnc programming – Lenze ETC Motion Control User Manual

Page 146

Advertising
background image

CNC programming

G functions
G functions individual descriptions

3

3.2
3.2.2

l

146

EDSTCXN EN 2.0

3.2.2.58

G150 Modal comparative operation, Q−Bit comparison

Import or export of a modal comparison to an external event (Q−Bit).

G150 X Y Z E V J L

X

Target block number

Y

Target program number

Z

State of the comparison

E

Index of the external event

V

Index of an optional customer−specific comparative operation

J

Brakes
0: without ramp
1: with ramp (default)

L

Parameter field index for saving the axis actual positions

G150 carries out a comparison of the Q−Bit E (0 ... 63) on the state Z (0 or 1).
This also applies for "fast inputs", which are also represented as Q−Bit.

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 with G150:

Program jump:

The stopped actions are canceled and the program is continued with the
block X. In this case, the code letter Y must not be programmed. The target
block number X must be contained in the same program in which the
comparison is also programmed.

If the target block number X is not equal to the current block number N, a
"true" result leads to the export 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 Y is placed in processing. In this case,
the code letter Y must be programmed; a target block number X 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.

It is the user’s responsibility to ensure that all axes, which he uses in the
subprogram, are returned to the positions which he found during the
subprogram call.

Syntax

Meaning of the addresses

Explanation

Advertising