Installation manual
CNC 8035
13.
PLC PROGRAMMING EXAMPLE
Main module.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·418·
T4 = TG1 5 300000
After having timed 1 hour, T5 must be activated in the mono-stable mode for 5 minutes. (300000
milliseconds)
T5 = TRS 4 = 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.
( ) = CNCRD(MPLC12,R31,M302) = CNCRD(MPLC13,R32,M302) =
CNCRD(MPLC14,R33,M302)
Assigns to registers R31, R32 and R33 the values of PLC machine parameters USER12 (P14),
"USER13 (P15) and USER14 (P16)
( ) = CNCRD(DISTX,R41,M302) = CNCRD(DISTY,R42,M302) = CNCRD(DISTZ,R43,M302)
Assigns to registers R41, R42 and R43 the distance each axis has travelled.
CPS R41 GT R31 OR CPS R42 GT R32 OR CPS R43 GT R33
If the distance traveled by any axis exceeds the one set by machine parameter,......
= TG1 6 240000
... .....timer T6 must be activated in the mono-stable mode for 4 minutes (240000 milliseconds) and
......
= MOV 0 R39
= CNCWR(R39,DISTX,M302) = CNCWR(R39,DISTY,M302) = CNCWR(R39,DISTZ,M302)
... reset to "0" the count of the distance traveled by each axis.
Activate the lubricating (lubing) operation.
T2 OR T3 OR T5 OR T6 = O-LUBING
If any of these conditions is met, the lubing output will be activated.
DFD O-LUBING = TRS2 = TRS3 = TRS4 = TRS5 = TRS6
Once the lubricating operation has concluded, All timers must be reset to "0".