Mazak QT20 Automatic tool changer

More
3 years 7 months ago #267151 by andypugh
A proper fix for the general case would be to have a settable flag to define zero = 2^(sense pins)
But, in your case, you could add a line to the carousel.comp file and re-compile it just for your system.

if you open a command line and type "halcompile -h" do you get an error or a help page? If it is "command not found" then you may need to install the "linuxcnc-dev" package.
The following user(s) said Thank You: dctrytsman

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #267277 by dctrytsman
I get a help page when I enter that .

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #267286 by andypugh
OK, that means that you can compile HAL components.

If you download this file:
raw.githubusercontent.com/LinuxCNC/linux...onents/carousel.comp

Then open it in a text editor (such as Geany) and change line 202-204 from
Code:
for(mask = new_pos >> 1 ; mask != 0 ; mask = mask >> 1){ new_pos ^= mask; } break;

to
Code:
for(mask = new_pos >> 1 ; mask != 0 ; mask = mask >> 1){ new_pos ^= mask; } if (new_pos == 0) new_pos = 8; break;

Then save the file and use the command
Code:
sudo halcompile --install carousel.comp
The following user(s) said Thank You: dctrytsman

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #267299 by dctrytsman
Thanks ,everything is working now .

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #267305 by andypugh
Great. That fix is rather specific to your 8-pocket changer, so I have created this issue to track a more generic fix:
github.com/LinuxCNC/linuxcnc/issues/2404
The following user(s) said Thank You: dctrytsman

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #326463 by dctrytsman
The X-axis servo motor and drive failed a few months ago and I haven't touched the machine ever since. I finally got back to fixing the machine, but I want to make some tweaks to the tool changer.

Everything works ok, but I need to add a timing delay when making a tool change. The motor starts turning immediately as soon as you make a tool change, thus not allowing the tool changer to fully unclamp. This causes the tool post to move back and forth until it is unclamped and then it will do the tool change as it's supposed to. I'm sure if i keep running it like this something is eventually going to break or wear .

How do I add a time delay so that the control waits for the tool changer to fully unclamp, and then rotate to the correct position, and re-clamp.

I will attach my HAL files, I don't think I set it up 100% either.

Please Log in or Create an account to join the conversation.

Time to create page: 0.476 seconds
Powered by Kunena Forum