beautypg.com

4 q functions, Q functions, Cnc programming – Lenze ETC Motion Control User Manual

Page 177

background image

CNC programming

Block extensions

Q functions

3

3.4

3.4.4

l

177

EDSTCXN EN 2.0

3.4.4

Q functions

States of CAN I/O modules can be programmed under the address "Q". Q
functions are also referred to as "fast inputs", because they are entered
directly in the course interpolator, without a detour via the PLC, into the NC
program.

Since only CAN outputs are available for the digital outputs, these are always
connected to the PLC cycle.

The PLC cannot change the initial state of the outputs concerned anymore,
until the enable has been reset by the PLC. However, it can read the current
initial state at any time independent of this.

"Fast outputs" are not automatically reset by the control after the end of the
program or in the event of a termination. If necessary, this is performed by
the PLC by withdrawing the enable and resetting the outputs.

For more information on enabling the fast inputs/outputs", refer to the
documentation MC and NC software manual.

Q−statements may also be programmed more than once within a block.

Q0=0 Q14=0 Q15=1

Initialize states of the outputs

G60 X0

Exact positioning "off"

G0 X159 Y31 Q0=1

Approach position 159 in X and 31 in Y, set output 0 to 1 and

G1 X163 Y77

execute the next block without stopping

G1 Y121 Q14=1 Q15=0

Continue traveling and at the end of the block, set output 14 to
1 and

G1 Y154

set output 15 to 0

Example