Thread: Denford Mirac conversion help
Hybrid View
-
11-11-2016 #1
this is what i ended up with, but it has no safety steps in it. any idea how i can add some
If GetSelectedTool()=GetCurrentTool() Then
End If
If GetSelectedTool =1 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig1)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =2 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig2)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =3 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig3)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =4 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig4)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =5 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig5)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =6 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig6)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =7 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig7)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
If GetSelectedTool =8 Then
ActivateSignal(Output5)
While Not IsActive(oemtrig8)
Wend
DeactivateSignal(Output5)
ActivateSignal(Output6)
While Not IsActive(oemtrig11)
Wend
Sleep 1000
DeactivateSignal(Output6)
End If
End
-
13-11-2016 #2
Basically each time you activate a signal, you need to also set a timer, so if the required input signal doesn't happen within the timer, things fault out (use a DoOemButton(xxxx) where xxxx is the code for E-stop), however I've totally forgotten how you do that in Mach3 Macros :-/
.
A quick search on the Mach forum has thrown up this thread - http://www.machsupport.com/forum/ind....html#msg86334
Look at the "timeout" variable and how it is updated/monitored.
That macro also has the required OEM button numbers.
.
You should also add a check before the end of the macro which checks that the correct tool position has been achieved.Avoiding the rubbish customer service from AluminiumWarehouse since July '13.
-
The Following User Says Thank You to m_c For This Useful Post:
-
15-11-2016 #3
the tool change isn't updating the current tool on mach3 screen, it operates the tool changer ok. what am i doing wrong
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Whats it worth, Denford Mirac CNC Lathe
By Dean jeffery in forum Marketplace DiscussionReplies: 4Last Post: 03-07-2014, 01:38 PM -
FOR SALE: Denford MIRAC CNC Lathe. Single Phase. Absolutely complete and perfect running order.
By Nick Butler in forum Items For SaleReplies: 19Last Post: 21-08-2013, 11:20 PM -
FOR SALE: Denford Mirac CNC Lathe with Auto Tool Changer For Sale
By CHudson in forum Items For SaleReplies: 3Last Post: 19-02-2011, 12:11 AM -
RFQ: Looking for somone to finish conversion Denford Mirac with Mach3
By CHudson in forum Projects, Jobs & RequestsReplies: 0Last Post: 14-10-2010, 08:20 PM -
Denford Mirac Electronics Refurbishment
By CHudson in forum Computer SoftwareReplies: 11Last Post: 17-06-2010, 08:30 PM



Reply With Quote

Bookmarks