Cnc programming – Lenze ETC Motion Control User Manual

Page 110

Advertising
background image

CNC programming

G functions
G functions individual descriptions

3

3.2
3.2.2

l

110

EDSTCXN EN 2.0

The subprogram can also be executed in parallel to the current program. For
this, in K the number of the NC channel must be specified, in which the
program should be started. The specified channel number must be greater
than the number of the current channel (normally 0) and smaller than the
maximum channel number in the machine constant MK_KANALANZAHL.

An NC channel can only activate the axes, which have been assigned to it. If
axes should be traversed in channel 1, these must be transferred to the new
channel at the start of the NC channel with G22. Channel 0 can retrieve the
transferred axes with G153, as soon as channel 1 has been ended with M30.

The program in channel 0 can only be ended when the program in channel
1 has also been ended. The synchronization takes place automatically with
M30.

N120 G22 L1100
I4

Fourfold call of the subprogram %1100

N270 G22 J4000

Start of a subprogram in the same program file, which begins with block
number N4000.

G22 L8000 J500

Call of the subprogram %8000 from block 500.

G22 L395 I3
E=P3012

Conditional call of the subprogram %395 up to 3−times in succession. The
loop is ended prematurely if the parameter field has the value 0 at the
position 3012.

G22 L9001 K1 U0
V0

Start of program %9001 in the second channel with transfer of the U and V
axis to the new NC channel.

3.2.2.12

G24 Define positive traversing range limit

Definition of a traversing range limit in positive traversing direction.

G24 AXES

AXES

Positive traversing range limit of the specified axes

If axis addresses are specified with the preparatory function, the
programmed values are entered into the parameter field from P304, related
to the machine zero point defined by the basic offset. If, on the other hand,
no other DIN address is specified except for the preparatory function, the
parameter field is occupied again with values preset in the machine
constants.

To activate the traversing range limits shifted with G24, a G26 must then be
programmed with the corresponding axis letters.

N100 G24

For all axes of the plant, the positive traversing range limits are predefined
to the value defined by the machine constants.

G24 X2345.554

The positive traversing range limit of axis X is defined to the absolute
position 2345.554.

Starting a second NC channel

Example

Syntax

Meaning of the addresses

Explanation

Example

Advertising