Cnc programming – Lenze ETC Motion Control User Manual

Page 148

Advertising
background image

CNC programming

G functions
G functions individual descriptions

3

3.2
3.2.2

l

148

EDSTCXN EN 2.0

3.2.2.59

G151 Non−modal comparative operation, Q−Bit comparison

Execution of a non−modal comparison to an external event (Q−Bit).

G151 X E Z V

X

Jump target block number

Z

State of the comparison

E

Index of the external event

V

Index of an optional customer−specific comparative operation

L

Parameter field index for saving the axis actual positions

G151 carries out once (non−modal) a comparison of the Q−Bit E (0 ... 63) with
the state Z (0 or 1).

In the case of a "true" result, the program is continued with block X. 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 comparative operations, which
were made on the same or subordinate program planes.

The address J can be used to define whether the axes should be braked with
or without ramp when the event occurs and when a traverse movement is
interrupted as a result. The standard setting (J not programmed) is "Bremsen
mit Rampe" (Brake with ramp).

If the address L is programmed, when the condition which was defined with
E and Z applies, the actual positions of all configured axes are saved from the
index in the parameter field specified for L.

This function can be used to determine the position of the event
independently of the configured brake ramp.

N10 G151 X10 E31 Z1

The program does not continue with the program processing until
the Q−Bit 31 has reached the state 0 (remains in position, as long as
condition (Q[31] == 1) applies).

Syntax

Meaning of the addresses

Explanation

Example

Advertising