HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 146

Example:
PLC-program example of activating the lubrication for the X-axis.
In the machine parameter MP4060.0 the traverse distance after which the X-axis should be
lubricated is entered. The duration of the lubrication is defined by the timer T0 (MP4110.0).
The PLC-output O24 is to be set for the duration of the X-axis lubrication.
In our example the lubrication is activated as soon as the marker M2012 is set. If , for some reason,
the lubrication should only be activated when the axis is at rest, then this must be taken into
account in the PLC-program.
MP4060.0 = 1 000 (approx. 65 m)
MP4110.0 = 100 (approx. 2 sec.).
.
.
45
L M2012
;lubrication pulse X axis
46
= T0
;start timer for duration of lubrication
47
= M2548
;reset accumulated distance
48
L T48
;duration of lubrication for X axis
49
= O24
;set output for lubrication
.
.
.
024
M2012
M2548
T0
T48