Installation manual
CNC 8055
CNC 8055i
PLC PROGRAMMING EXAMPLE
17.
SOFT: V02.2X
·639·
Main module.
I-GEAR1 = GEAR1
I-GAMA2 = GEAR2
The corresponding CNC logic input (GEAR1, GEAR2) must be activated to confirm the gear change.
----- Lubrication of the machine ways -----
In this example, the machine axes are lubricated in the following instances:
• On machine power-up. For 2 minutes.
• When requesting a manual lubrication. For 5 minutes.
• After the axes have been moving for 1 hour. For 5 minutes.
• After an axis has travelled a specific distance since last lubricated. For 4 minutes.
CY1
( ) = TG1 2 120000
Lubrication on machine power-up.
This operation will be performed for 2 minutes.
Whenever the machine is powered up, the PLC program starts running. Therefore, the first cycle
module CY1 must activate timer T2 in the mono-stable mode for 2 minutes (120000
milliseconds).
( ) = TG2 4 3600000
Lubrication every hour of axis motion.
This operation takes place when the axes of the machine have been moving for an accumulated
time period of 1 hour. They will be lubricated for 5 minutes.
Timer T4 is used to keep track of the axis accumulated moving time and T5 to time the 5 minute
lubrication period.
The first cycle module CY1 must activate timer T4 in the delayed activation mode with a time
constant of 1 hour (3600000 milliseconds).
END
PRG
DFU I-ENGRAS = TG1 3 300000
Manual lubrication.
This operation will last 5 minutes and it will be performed at operator's request.
Whenever the operator requests the lubricating (lubing) operation, T3 must be activated in the
mono-stable mode for 5 minutes (300000 milliseconds).
ENABLE1 OR ENABLE2 OR ENABLE3 = TEN 4
T4 only times when any of the axis is moving.
T4 = TG1 5 300000
After having timed 1 hour, T5 must be activated in the mono-stable mode for 5 minutes. (300000
milliseconds)
NOT T5 = TG2 4 3600000
Resets the axis-motion timer T4 to zero.
Lubrication when an axis has traveled a specific distance since the last time it was lubricated
PLC machine parameters USER12 (P14), "USER13 (P15) and USER14 (P16) are used to indicate
the distance each axis must travel before it gets lubricated.