Mazak QT20 Automatic tool changer
19 Mar 2023 11:50 #267082
by andypugh
I think I can guess the problem. What bit-pattern is T8? I suspect that it is seen as zero and rejected.
If it is all-false can you confirm that that pattern is only seen at T8 and not in-between positions?
Replied by andypugh on topic Mazak QT20 Automatic tool changer
When I run M06 T08 the turret just keeps turning and never find T08 .
I think I can guess the problem. What bit-pattern is T8? I suspect that it is seen as zero and rejected.
If it is all-false can you confirm that that pattern is only seen at T8 and not in-between positions?
The following user(s) said Thank You: dctrytsman
Please Log in or Create an account to join the conversation.
- dctrytsman
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 3
20 Mar 2023 12:58 #267145
by dctrytsman
Replied by dctrytsman on topic Mazak QT20 Automatic tool changer
You are right ,The bit pattern for T8 is all zeros. The bit pattern does not change in between positions ,it goes directly from one to another .How can I get it to work with all zeros ?
Please Log in or Create an account to join the conversation.
20 Mar 2023 14:30 #267151
by andypugh
Replied by andypugh on topic Mazak QT20 Automatic tool changer
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.
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.
- dctrytsman
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 3
22 Mar 2023 06:51 #267277
by dctrytsman
Replied by dctrytsman on topic Mazak QT20 Automatic tool changer
I get a help page when I enter that .
Please Log in or Create an account to join the conversation.
22 Mar 2023 09:50 #267286
by andypugh
Replied by andypugh on topic Mazak QT20 Automatic tool changer
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
to
Then save the file and use the command
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
for(mask = new_pos >> 1 ; mask != 0 ; mask = mask >> 1){
new_pos ^= mask;
}
break;
to
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
sudo halcompile --install carousel.comp
The following user(s) said Thank You: dctrytsman
Please Log in or Create an account to join the conversation.
- dctrytsman
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 3
22 Mar 2023 11:55 #267299
by dctrytsman
Replied by dctrytsman on topic Mazak QT20 Automatic tool changer
Thanks ,everything is working now .
Please Log in or Create an account to join the conversation.
22 Mar 2023 13:24 #267305
by andypugh
Replied by andypugh on topic Mazak QT20 Automatic tool changer
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
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.
Moderators: piasdom
Time to create page: 0.108 seconds