Delta Tau GEO BRICK LV User Manual

Page of 440
 
Turbo PMAC User Manual 
336
 
Writing and Executing Motion Programs 
M07 – Low-Level (Mist) Coolant On 
M08 – High-Level (Flood) Coolant On 
M09 – Coolant Off 
The actual implementation of these M-codes will be very machine dependent, but it will typically be very 
simple.  For instance, if the coolant on/off control were wired into Turbo PMAC’s Machine Output 7, and 
the coolant high/low control were wired into Turbo PMAC’s Machine Output 8, the routines could simply 
be: 
N07000 M7=1 
; Set Mach. Out. 7: Coolant On 
M8=0 
; Clear Mach. Out. 8: Low Level 
RETURN 
N08000 M7=1 
; Set Mach. Out. 7: Coolant On 
M8=1 
; Set Mach. Out. 8: High Level 
RETURN 
N09000 M7=0 
; Clear Mach. Out. 7: Coolant Off 
RETURN 
DWELL statements could be added before and/or after the setting of the outputs if it is desired to provide 
some time for the change to occur.  
M12 – Chip Conveyor On 
M13 – Chip Conveyor Off 
The implementation of these codes, though machine dependent, typically will be simple.  For instance, if 
the conveyor on/off line were wired into Machine Output 2, these routines could simply be: 
N12000 M2=1 
; Set Mach. Out. 2: Conveyor On 
RETURN 
N13000 M2=0 
; Clear Mach. Out. 2: Conveyor Off 
RETURN 
M30 – End of Program with Rewind 
See M02 description.  M30 will be equivalent to M02 in most systems but will return to the beginning of 
the program. 
Default Conditions 
Typically, a machine running G-code style programs requires many default values and modes beyond 
what PMAC sets automatically during its power-up/reset cycle.  To set these defaults, it is best to use the 
PLC 1 program, which will be the first thing executed after the automatic power-up/reset cycle 
(effectively extending what is done in this cycle).  The last line in this program should be DISABLE PLC 
1
, which prevents repeated execution of the program.  A simple file for such a program could be: 
CLOSE 
OPEN PLC 1 
CLEAR 
M55=0 
; Spindle Off 
P92=3000 
; Maximum spindle RPM 
P95=1000 
; Max spindle accel. in RPM/sec 
M70=0 
; English measurements 
DISABLE PLC 1 
; So this is only executed once 
CLOSE