HEIDENHAIN TNC 335 Technical Manual User Manual
Page 116

8/95
TNC 360
1 Machine Axes
4-19
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