L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 609

Advertising
background image

L-force | PLC Designer

General Editors

DMS 4.1 EN 03/2011 TD29

607

Additionally there is the possibility to set the position in the CNC program via G92. This
is allowed at the beginning of the CNC program (there the start position is set) as well
as in the middle, where it will result in a jump of the target position to the position
defined by G92. If there are several successive G92-commands, the last will be
regarded; the preceding ones will be skipped. If you however want to make sure that
also the preceding G92 positions are given out (for the length of one cycle), you must
insert the command G1 with identical coordinates between. This means is used if the
path between those positions is not of interest, but the target position should get
there as fast as possible. The modules SMC_ControlAxisByPos in this case detect a
jump of the target positions, stop the interpolator and interpolate each axis separately
on the fastest way to the target position.
Example:

%MyExample
N10 G92 X100 Y100 (Set target position to 100/100)
N20 G1 X100 Y100 (Make sure a one-time output of the position)
N20 G92 X50 Y100 (Set target position to 50/100)

A sentence starting wit the character "/" will be skipped during processing, if the
option step suppression in the CNC menu is activated .
Characters which are embraced by parenthesis "( )", will be interpreted as comments
and do not have any effect on the programmed path. Nested comments are not
supported.
The sentence number (N<number>) is need as a marker and for defining jump targets,
but has no further meaning.
All numbers except for that of the command (G<number> or M<number>) and the
switch number (H<number>) can be floating values.

Advertising