EasyManua.ls Logo

Fagor BCSD - Page 46

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...
·46·
Installation manual
BCSD
System
4.
PLC
REF. 1711
PLC program
;
;*********************************************************************
; OEM PLC
;
; Part of the PLC to be developed by the OEM.
;
;*********************************************************************
;
; PLEASE WRITE HERE THE PLC PART NEEDED ON THE OEM SIDE.
;
;
;*********************************************************************
;PLC END
;
; End of the PLC program.
;
;*********************************************************************
;
() = RES M_CY1 ; First PLC scan
;
END
;
;*********************************************************************
;*********************************************************************
;SUBROUTINES
;*********************************************************************
;*********************************************************************
;
;*********************************************************************
; M FUNCTION SUBROUTINE
;
; Subroutine to decode the M functions of the PLC.
; Please add here the new M function to be developed by the OEM.
;
;*********************************************************************
;
L1 ; Label decoding M functions
CPS MBCD* EQ $0 = M100 ; M00
CPS MBCD* EQ $1 = M1 ; M01
CPS MBCD* EQ $2 = ERA M1 100 ; M02
CPS MBCD* EQ $3 = M3 ; Spindle CW
CPS MBCD* EQ $4 = M4 ; Spindle CCW
CPS MBCD* EQ $5 = M5 ; Stop spindle
CPS MBCD* EQ $6 = M6 ; Tool change
CPS MBCD* EQ $8 = M8 ; Coolant ON
CPS MBCD* EQ $9 = M9 ; Coolant OFF
CPS MBCD* EQ $19 = M19 ; Spindle orientation
CPS MBCD* EQ $30 = ERA M1 100 ; End program
CPS MBCD* EQ $41 = M41 ; Spindle gear 1
CPS MBCD* EQ $42 = M42 ; Spindle gear 2
CPS MBCD* EQ $43 = M43 ; Spindle gear 3
CPS MBCD* EQ $44 = M44 ; Spindle gear 4
;
END
;

Related product manuals