Cnc programming – Lenze ETC Motion Control User Manual

Page 149

Advertising
background image

CNC programming

G functions

G functions individual descriptions

3

3.2

3.2.2

l

149

EDSTCXN EN 2.0

3.2.2.60

G152 Non−modal waiting function, Q−Bit comparison

Wait for a comparison to be become true on an externes event.

G152 E Z

E

Index of the external event

Z

State of the comparison

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

In contrast to G151, no block jump takes place in the case of a positive
comparison result. G152 only blocks the program from being executed
further in current channel until the comparison result becomes true.

The function is not time synchronized and therefore it is also suitable for fast
responses in the range of maximum one interpolation cycle when fast inputs
are used. No modal comparisons which were programmed before with G130
or G150 are exported.

G152 E3 Z0

Waits for the state 0 of Q−Bit 3

G152 E3 Z1

Waits for the state 1 of Q−Bit 3

...

Blocks, which should be executed after a positive edge of Q−Bit 3

Syntax

Meaning of the addresses

Explanation

Example

Advertising