What's new
What's new

Synchronize spindle to drive for BT30 clamp release.

marsheng

Aluminum
Joined
Sep 13, 2020
I'm reassembling my spindle drive and I have to get them correctly aligned.

In my ToolChange macro I have

M05; SPINDLE STOP
G17 G91 G80 G0; DEM G STATION
M19; SPINDLE ORIENTATION
M86; ENTER ATC MODE

So I presume I enter M19 in MDI mode (hopefully the drive moves to the correct position) and then I match the spindle to drive.
 

Attachments

  • Spindle_Tool.JPG
    Spindle_Tool.JPG
    32.2 KB · Views: 4
Last edited:
It's always been a parameter change to make the spindle orient correctly for a tool change in my experience, either at the control or the spindle drive.
 
Here is my full Tool change program.

Is the M00 the release spindle in G-Code?

09021(MANUAL TOOL CHANGE MACRO)
IF[#1015 EQ 1] GOTO 50; CHECK MACHINE LOCK / Z AXIS LOCK
#1100=1; CHECK M86 COMMAND FORM 09020 SIGNAL
#101 = #4001; MEMORY G CODE
#102 = #4002; MEMORY G CODE
#103 = #4003; MEMORY G CODE
M05; SPINDLE STOP
G17 G91 G80 G0; DEM G STATION
M19; SPINDLE ORIENTATION
M86; ENTER ATC MODE
M07; AIR BLOW
G30 Z0.0; Z AXIS RETURN SECOND POINT
M00; PROGRAM STOP
M07; AIR BLOW
G28 Z0.0; RETURN REF
G#101 G#102 G#103; SET G CODE
#1100 = 0; CANCEL M86 COMMAND FROM 09020 SIGNAL
M87; FINISH TOOL CHANGE
N50 # 3000 = 2 (MACHINE LOCK / Z AXIZ LOCK) ;ALAM MESSAGE
M99;
%
 
It can't be M00 as the auto tool change does not have a M00.


09020(TOOL CHANGE MACRO)
IF[#1015 EQ 1] GOTO 50; CHECK MACHINE LOCK / Z AXIS LOCK
IF[#20 EQ#0 G] GOTO 40; NO T CODE
#106 = BIN[#1032]; SPINDLE TOOL NO. READ
IF[#106 EQ #20] GOTO 30; IF SPINDLE TOOL NO. EQUIT MAG. NO
#1100=1; CHECK M86 COMMAND FORM 09020 SIGNAL
#101 = #4001; MEMORY G CODE
#102 = #4002; MEMORY G CODE
#103 = #4003; MEMORY G CODE
M05; SPINDLE STOP
G17 G91 G80 G0; DEM G STATION
M19; SPINDLE ORIENTATION
M86; ENTER ATC MODE
M07; AIR BLOW
G30 Z0.0; Z AXIS RETURN SECOND POINT
T#20; SEARCH TOOL
M07; AIR BLOW
G28 Z0.0; RETURN REF
G#101 G#102 G#103; SET G CODE
#1100 = 0; CANCEL M86 COMMAND FROM 09020 SIGNAL
M87; FINISH TOOL CHANGE
N30 M99; RETURN MAIN PROGRAM
N40 # 3000 = 1 (M06-NO-T-CODE); ALARM MESSAGE
M99;
N50 # 3000 = 2 (MACHINE LOCK / Z AXIZ LOCK) ;ALAM MESSAGE
M99;
%
 








 
Back
Top