Descriptions of the PLC subroutines
3.18 Subroutine 45 - LUBRICAT (control of lubricate)
PLC Subroutines Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
51
3.18 Subroutine 45 - LUBRICAT (control of lubricate)
Purpose
Subroutine 45 is used to control the lubrication according to specific time interval and
duration (independent of the distance that the axis has travelled). Meanwhile, a manual
button is available to start the lubrication, and you can configure that the lubrication starts
automatically each time that the machine is powered up. Normally, lubricating starts
automatically and cyclically according to specified time interval Lintv, and operates for a
specific time Ltime at each cycle. Lubrication stops in case of an Emergency Stop,
lubrication motor overload, low lubricant level.
This subroutine can activate following alarms:
● Alarm 700020: lubrication motor overload
● Alarm 700021: low lubricant level
Local variable definition
Table 3- 12 Inputs
Name Type Description
Lintv WORD Lubricating time interval (unit: 1 min)
Ltime WORD Lubricating time duration of each cycle (unit: 0.01 s, max. 327.67 s)
L_key BOOL Manual lubricating key (triggering signal)
L1st BOOL Mode selection: the lubrication starts at the first PLC scan
Ovload BOOL Lubricating motor overload
L_low BOOL Low lubricate level
Table 3- 13 Outputs
Name Type Description
L_out BOOL Lubrication output
L_LED BOOL Indicant for lubricate output
Assigned global variables
L_interval C24 Timer for the lubricating time intervals (unit: min)
L_time T27 Timer for very lubricating time duration (unit:
0.01s, max. 327.67 s)