Lenze ETC Motion Control User Manual

Page 139

Advertising
background image

CNC programming

G functions

G functions individual descriptions

3

3.2

3.2.2

l

139

EDSTCXN EN 2.0

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.

Seven modal comparisons can be activated at the same time. With Y the
index for the table line must be specified. A missing Y is interpreted as a
non−modal comparison, i.e. the function is only interpreted once and does
not remain effective in the background.

A programmed modal comparison remains active until

ƒ another comparison was programmed at the same position of the

comparison table (Y),

ƒ the entry is exported with G131,

ƒ this or another comparison (G130, G150, G151) becomes true on the

same or a higher program plane and the result of the comparison is
evaluated as a block jump,

ƒ subprogram end; on the return to a higher program plane after the

subprogram end, all comparisons are deactivated, which were
activated in this subprogram,

ƒ the comparison was completed (in the case of non−modal comparison),

ƒ program end or program termination.

)

Note!

If several conditions are met at a specific time in the comparison
table, which would result in a block jump, only the modal
comparison with the lowest table index is executed.
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).

G130 X=P1 Z200 K2 Y1 I30

The comparison condition with the index 1 is entered. The jump
to block 30 is executed if the contents of P1 become smaller
than 200.

N20 G130 X=P1300 K5 Z1 I20 In block 20, wait until P1300 is not equal to 1.

Example

Advertising