how to do automatic tool change in linuxcnc?

More
3 years 9 months ago #262930 by michelmorad2
I was dealing with Mach 3 and I wanted to switch to Linuxcnc, but I have a problem, which is converting the tool changer from manual to automatic. In the Mach 3 program, a macro file is placed and the commands for the automatic tool changer are in it. The question is how can I do it in Linuxcnc.
can any one help me .

Please Log in to join the conversation.

More
3 years 9 months ago #262931 by CNC_ANDI
Probe_basic screen have a ATC installed.

www.qtpyvcp.com/showcase/mill_vcps.html

Please Log in to join the conversation.

More
3 years 9 months ago #262932 by michelmorad2
thank you , but i have alathe machine not mill , how i can do it with lathe machine

Please Log in to join the conversation.

More
3 years 9 months ago #262934 by tommylight
More info, pictures, video, anything...

Please Log in to join the conversation.

More
3 years 9 months ago #262935 by JT

Please Log in to join the conversation.

More
3 years 9 months ago #262936 by michelmorad2
this is my tool changer in linuxcnc when i want to change the tool , (m6 t2) e.x. i need the programme do it automatically with my tool   

Attachment not found

 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
3 years 9 months ago #262937 by michelmorad2
can you explain how. pls

Please Log in to join the conversation.

More
3 years 8 months ago #263434 by jimwhiting
It might help if you post the mach3 macro so people can see what that does.
 

Please Log in to join the conversation.

More
3 years 8 months ago #263557 by andypugh
There are lots of ways to control a toolchanger. The carousel HAL component can help, but that only handles the position feedback and toolchanger rotation, it doesn't include any axis moves or clamp/unclamp operations.

The most flexible way to handle those aspects is with a G-code subroutine. G-code is a pretty clunky programming language, but it makes it easy to incorporate axis moves etc.

So, basically, you end up writing a routine in G-code to do the same as your Mach3 macro.

It is also possible to do it in Python, if you prefer.

Classicladder is another popular option, but it is hard to incorporate axis movements if using that approach.

Please Log in to join the conversation.

More
3 years 8 months ago #264499 by michelmorad2
this is my macro in mach3
how i can do it with g-code or python ?
tool = GetSelectedTool()


If tool=1 Then
activatesignal(output1)
While isactive(input1)
sleep(200)
Wend
deactivatesignal(output1)
sleep(200)
activatesignal(output2)
sleep(2000)
deactivatesignal(output2)
If Not isactive(input1)Then
message"Toolchange 1 Error"
DoOEMButton(1003)
End If
End If



If tool=2 Then
activatesignal(output1)
While isactive(input2)
sleep(200)
Wend
deactivatesignal(output1)
sleep(200)
activatesignal(output2)
sleep(2000)
deactivatesignal(output2)
If Not isactive(input1)Then
message"Toolchange 2 Error"
DoOEMButton(1003)
End If
End If




If tool=3 Then
activatesignal(output1)
While isactive(input3)
sleep(200)
Wend
deactivatesignal(output1)
sleep(200)
activatesignal(output2)
sleep(2000)
deactivatesignal(output2)
If Not isactive(input1)Then
message"Toolchange 3 Error"
DoOEMButton(1003)
End If
End If




If tool=4 Then
activatesignal(output1)
While isactive(input4)
sleep(200)
Wend
deactivatesignal(output1)
sleep(200)
activatesignal(output2)
sleep(2000)
deactivatesignal(output2)
If Not isactive(input1)Then
message"Toolchange 4 Error"
DoOEMButton(1003)
End If
End If

SetCurrentTool( tool )
how i can do it with g-code or python ?

Please Log in to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum