Hello Guest it is March 28, 2024, 04:30:03 PM

Author Topic: ATC macro help  (Read 3499 times)

0 Members and 1 Guest are viewing this topic.

Offline fast89

*
  •  154 154
    • View Profile
ATC macro help
« on: November 10, 2013, 09:57:42 AM »
I have an auto tool changer on my mill with a macro that works great. Only problem i have is this. When single blocking thru program, if i hit cycle start one too many times, it tries to execute the line after the tool change while it is trying to tool change. Basically it is turning the spindle on while it is trying to orient the spindle. This crashes the bearing that locks the spindle. Is there some way to disable the cycle start once it enters into the macro. Or make it wait for a finish signal before any other command can be executed? My macro is not setup as a sub routine. Would changing that make it wait for the m99 before allowing the next line to execute?

Offline fast89

*
  •  154 154
    • View Profile
Re: ATC macro help
« Reply #1 on: November 11, 2013, 10:00:34 AM »
nobody???

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: ATC macro help
« Reply #2 on: November 11, 2013, 11:27:46 AM »
Some advice(;-) STOP rushing through the single block mode.

Mach3 does NOT have a suswhiledo() mode for the Single block mode . It depends on the operator to control that function.

(;-) TP

Offline fast89

*
  •  154 154
    • View Profile
Re: ATC macro help
« Reply #3 on: November 11, 2013, 11:30:12 AM »
lol. Yeah i know.....stop pushing the button.
Re: ATC macro help
« Reply #4 on: November 11, 2013, 09:13:56 PM »
Hi,
you may try this on the top of your M6 macro

SetVar 100, getoemled(82)
If (getoemled(82) =-1) Then
DoOembutton(1004)
end If


and this at the end


If (GetVar(100)=-1) Then
DoOembutton(1004)
end If
end


looks like is working fine here.
 :)
Alex

Offline fast89

*
  •  154 154
    • View Profile
Re: ATC macro help
« Reply #5 on: November 12, 2013, 10:27:24 AM »
That works well, thanks alex
Re: ATC macro help
« Reply #6 on: November 12, 2013, 02:55:17 PM »
glad it works. :)

I prefer it look like this ( without G Code Variable )

At start

SingleStatus = getoemled (82)
If SingleStatus =(-1) Then
DoOembutton(1004)
end If

at the end

If SingleStatus =(-1) Then
DoOembutton(1004)
end If
end

alex