Table and spindle Warmup macro
Posted: Fri Oct 30, 2020 10:59 am
Hi,
I tried to to add the macro below to my "AUX 56" button, that I got from other website.
I modified the macro to tailored my machine, went to c:\cncm folder, modified "mfunc56.mac" and saved.
When I run the macro, I received "Syntax Error" on my 1st # (marked below)
DId I do the correct procedure? is the macro wrong?
;----------------------------------------------------------------------------------
;( CNC Machine Warmup Program )
;( Axis travel ranges. Be sure they're right for your machine and setups! )
;----------------------------------------------------------------------------------
#100=25 (Min X Travel) <-----Syntax Error
#101=550 (Max X Travel)
#102=25 (Min Y Travel)
#103=720 (Max Y Travel)
#104=-10 (Min Z Travel)
#105=-100 (Max Z Travel)
;----------------------------------------------------------------------------------
;( Amount of dwell after axis travel. )
;( Adjust so total time at each spindle rpm )
;( is about 200 seconds )
;----------------------------------------------------------------------------------
#106=200
;( Safe Starting Conditions )
G0 G40 G49 G50 G80 G94G17 G20 G40 G49 G54 G64 G80 G90 G98 M05
;( Alternate spindle speed with axis warmup. )
;( Adjust for your spindle's speed ranges. )
G28
S2500 M3
M98 P2000 ;(Warmup axes)
S5000
M98 P2000 ;(Warmup axes)
S7500
M98 P2000 ;(Warmup axes)
S10000
M98 P2000 ;(Warmup axes)
S12000
M98 P2000 ;(Warmup axes)
S12500
M98 P2000 ;(Warmup axes)
S15000
M98 P2000 ;(Warmup axes)
S17500
M98 P2000 ;(Warmup axes)
S20000
M98 P2000 ;(Warmup axes)
S22500
M98 P2000 ;(Warmup axes)
S24000
M98 P2000 ;(Warmup axes)
M5 G28
M30 ;(End of program)
O2000 ;(Axis warm up subprogram)
G28
F50 G01
Z#104 ;(Do Z first and leave Z parked high for the rest )
Z#105
X#101
Y#103
X#100
Y#102
G04 P#106
M99 ;(Return from subprogram)
TIA
I tried to to add the macro below to my "AUX 56" button, that I got from other website.
I modified the macro to tailored my machine, went to c:\cncm folder, modified "mfunc56.mac" and saved.
When I run the macro, I received "Syntax Error" on my 1st # (marked below)
DId I do the correct procedure? is the macro wrong?
;----------------------------------------------------------------------------------
;( CNC Machine Warmup Program )
;( Axis travel ranges. Be sure they're right for your machine and setups! )
;----------------------------------------------------------------------------------
#100=25 (Min X Travel) <-----Syntax Error
#101=550 (Max X Travel)
#102=25 (Min Y Travel)
#103=720 (Max Y Travel)
#104=-10 (Min Z Travel)
#105=-100 (Max Z Travel)
;----------------------------------------------------------------------------------
;( Amount of dwell after axis travel. )
;( Adjust so total time at each spindle rpm )
;( is about 200 seconds )
;----------------------------------------------------------------------------------
#106=200
;( Safe Starting Conditions )
G0 G40 G49 G50 G80 G94G17 G20 G40 G49 G54 G64 G80 G90 G98 M05
;( Alternate spindle speed with axis warmup. )
;( Adjust for your spindle's speed ranges. )
G28
S2500 M3
M98 P2000 ;(Warmup axes)
S5000
M98 P2000 ;(Warmup axes)
S7500
M98 P2000 ;(Warmup axes)
S10000
M98 P2000 ;(Warmup axes)
S12000
M98 P2000 ;(Warmup axes)
S12500
M98 P2000 ;(Warmup axes)
S15000
M98 P2000 ;(Warmup axes)
S17500
M98 P2000 ;(Warmup axes)
S20000
M98 P2000 ;(Warmup axes)
S22500
M98 P2000 ;(Warmup axes)
S24000
M98 P2000 ;(Warmup axes)
M5 G28
M30 ;(End of program)
O2000 ;(Axis warm up subprogram)
G28
F50 G01
Z#104 ;(Do Z first and leave Z parked high for the rest )
Z#105
X#101
Y#103
X#100
Y#102
G04 P#106
M99 ;(Return from subprogram)
TIA