EasyManua.ls Logo

Fagor BCSD - Page 41

Fagor BCSD
58 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Installation manual
BCSD
System
PLC
4.
REF. 1711
·41·
PLC program
;
CPS R4 GE 1 ; Y drive ready
= M_DRV_Y_NERR ; Y drive no error
CPS R4 LT 2 ; Y with torque
= M_DRV_Y_NPOWER ; Y drive no power
CPS R4 LT 3 ; Y drive without torque
= B2R16 ; FEEDHOLD drive Y with no torque
CPS R4 EQ 3 ; Y drive with torque
= M_DRV_Y_TORQUE ; Y drive with torque
;
DRSTAFZ = B1R5 ; Z AXIS DRIVER STATUS
DRSTASZ = B0R5 ; Z AXIS DRIVER STATUS
;
CPS R5 GE 1 ; Z drive ready
= M_DRV_Z_NERR ; Z drive no error
CPS R5 LT 2 ; Z with torque
= M_DRV_Z_NPOWER ; Z drive no power
CPS R5 LT 3 ; Z drive without torque
= B3R16 ; FEEDHOLD drive Z with no torque
CPS R5 EQ 3 ; Z drive with torque
= M_DRV_Z_TORQUE ; Z drive with torque
;
DRSTAFS = B1R6 ; SPINDLE DRIVER STATUS
DRSTASS = B0R6 ; SPINDLE DRIVER STATUS
;
CPS R6 GE 1 ; S drive ready
= M_DRV_S_NERR ; S drive no error
CPS R6 LT 2 ; S with torque
= M_DRV_S_NPOWER ; S drive no power
= B4R16 ; FEEDHOLD drive S with no torque
CPS R6 EQ 3 ; S drive with torque
= M_DRV_S_TORQUE ; S drive with torque
;
;*********************************************************************
; EMERGENCY LINE & MACHINE POWER
;
; Status of the emergency line of the PLC.
; Enable the Machine Power.
;
;*********************************************************************
;
I_EMERGENCY ; I_EMERGENCY
= /EMERGEN ; CNC emergency
;
/EMERGEN ; CNC emergency
AND /ALARM ; CNC alarm
AND CNCREADY ; CNC OK
AND M_DRV_X_NERR ; X drive error
AND M_DRV_Y_NERR ; Y drive error
AND M_DRV_Z_NERR ; Z drive error
AND M_DRV_S_NERR ; S drive error
= O_EMERGEN ; O_EMERGENCY
;
O_EMERGEN ; O_EMERGENCY
AND NOT M_DRV_X_NPOWER ; X drive no power
AND NOT M_DRV_Y_NPOWER ; Y drive no power
AND NOT M_DRV_Z_NPOWER ; Z drive no power
= M_POWER_ON ; Machine with power
;
NOT M_POWER_ON ; Machine with power
= B0R16 ; FEEDHOLD machine with no power
= B1R18 ; START machine with no power
= B0R19 ; STOP machine with no power
;
;*********************************************************************
; M FUNCTION DECODING
;
; Management of the MSTROBE/STROBE of the PLC
;