Installation manual
CNC 8035
PLC PROGRAMMING EXAMPLE
Main module.
13.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·417·
(M-41 AND I-GEAR1) OR (M-42 AND I-GEAR2)
Once the gear change has concluded, the following must be done:
= RES M-41 = RES M-42
... remove the request for a gear change (M-41, M-42), ....
= MOV 0 SANALOG
... remove the spindle velocity command,...
= RES PLCCNTL
... Return the control of the spindle to the CNC.
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.
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).
( ) = TG1 2 120000
Manual lubrication.
This operation will last 5 minutes and it will be performed at operator's request.
DFU I-LUBING = TG1 3 300000
Whenever the operator requests the lubricating (lubing) operation, T3 must be activated in the mono-
stable mode for 5 minutes (300000 milliseconds).
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 (3600 000 milliseconds).
( ) = TG2 4 3600000
ENABLE1 OR ENABLE2 OR ENABLE3 = TEN 4
T4 only times when any of the axis is moving.