Installation manual
BCSD
System
PLC
4.
REF. 1711
·43·
PLC program
(M_SP1_REQUEST_M19 ; Spindle orientation requested
OR RIGID ; Rigid tapping
OR TAPPING ; Floating tapping
OR THREAD) ; Electronic thread
AND SPENAS ; Spindle drive command ON
AND NOT LOPEN ; CNC loop OK
= SERVOSON ; Close spindle loop
;
;SPINDLE ENABLE
;------------------------------------------------------------------------------------------------
;
B9R700 = TG2 4 200 ; Timer DV11 (FAGOR Diagnostics)
T4 = M_SP1_NMIN ; Spindle stop (N=0)
;
(DFU M3 ; Spindle CW
OR DFU M4) ; Spindle CCW
= SET M_SP1_REQUEST_M3M4 ; Spindle turn requested
;
(NOT M3 ; Spindle CW
AND NOT M4 ; Spindle CCW
AND NOT M_SP1_NMIN) ; Spindle stop (N=0)
OR M_SP1_REQUEST_M3M4 ; Spindle turn requested
= M_SP1_SPENA ; Spindle turn enable
;
M_POWER_ON ; Machine with power
AND (M_SP1_SPENA ; Spindle turn enable
OR M_SP1_REQUEST_M19 ; Spindle orientation requested
OR PLCCNTL) ; PLC control on the PLC
= SPENAS ; Spindle drive command ON
= TG3 3 5000 ; Spindle disable timer DRENA
;
T3 ; Spindle disable timer DRENA
= DRENAS ; Spindle drive power ON
;
;SPINDLE FEEDHOLD
;------------------------------------------------------------------------------------------------
;
M_SP1_REQUEST_M3M4 ; Spindle turn requested
AND NOT REVOK ; CNC spindle rpm OK
AND NOT SERVOSON ; Close spindle loop
AND NOT M_SP1_REQUEST_M19 ; Spindle orientation requested
AND NOT RIGID ; Rigid tapping
AND NOT TAPPING ; Floating tapping
AND NOT THREAD ; Electronic thread
= M_SP1_REVOK ; Spindle speed reached M3-M4
;
M_SP1_REVOK ; Spindle speed reached M3-M4
= B5R16 ; FEEDHOLD spindle speed reached
;
;*********************************************************************
;AXIS REFERENCE
;
; Management of axis reference (home).
;
;*********************************************************************
;
I_REFX = DECELX ; X axis home switch
I_REFY = DECELY ; Y axis home switch
I_REFZ = DECELZ ; Z axis home switch
;
REFPOINX ; X axis homing done
AND REFPOINY ; Y axis homing done
AND REFPOINZ ; Z axis homing done
= M_REFERENCE ; Axis homing done
;
M_AUTO_MODE ; CNC automatic in any mode
AND NOT M_REFERENCE ; Axis homing done
= B2R18 ; START automatic without axis homing
;