2 m-functions, M−functions, Getting started – Lenze ETC Motion Control User Manual
Page 46

Getting started
CNC programming according to DIN 66025
M−functions
2.9
2.9.2
l
46
EDSTCXN EN 2.0
Parameter
Meaning
AXES
Target point coordinates of the linear axes X, Y, Z, A, B, C, U, V, W, x, y, z, a, b, c,
u, v, w
Note: In a G−function, only the axes X, Y, Z, A, B, C, U, V, W or axes x, y, z, a, b, c,
u, v, w may be used.
d
Max. path deviation in the target point for grinding corners with the following
linear interpolation.
R
Radius, with which the following linear interpolation (G0, G1) should be
connected.
f
High rate speed (G00) or feed speed (G01) on the path (G31) or each axis (G30),
also for all following linear interpolations.
E, L
Selection of feed speed via speed (E) and increment (L). F=E*L.
Parameter
Meaning
AXES
Target point coordinates of the three linear principal axes (default X,Y,Z), as
well as start or target point coordinates of the three rotative secondary axes
(default A,B,C).
d
Radius change on reaching the target point
I
Center coordinates of the first principal axis (X) or number of additional full
circles
J
Center coordinates of the second principal axis (Y) or number of additional full
circles
K
Center coordinates of the third principal axis (Z) or number of additional full
circles
R
Interpolation radius
f
Path speed
E, L
Selection of feed speed via speed (E) and increment (L). F=E*L.
2.9.2
M−functions
M−functions define machine commands. They are edited in the CNC and also
sent to the PLC. In the PLC, they are evaluated and trigger the programmed
function in cooperation with the CNC.
M−functions do not have any parameters. The coordination between the PLC
and the CNC takes place via the interface signals PLC−NC (
¶ 240).
The following shows some examples of fixed M−functions. All other
M−functions are available to the programmer.
Parameter
Meaning
14
Start of the profile, switches the summation of the path length in the
parameter field P551 on.
When M14 is used in an online program (program with reloading of program
parts), the design of the program is blocked until the end of the profile
(M15/M16/M21) is in the memory.
15
End of profile, switches the summation of the path length in P551 off (begin of
idle travel).
30
Program end
Parameter for G00, G01
Parameter for G02, G03