Understanding tool offsets

More
16 Oct 2019 23:51 #148065 by Scot
Replied by Scot on topic Understanding tool offsets
" From what I've observed, the tool does not move when the offset is applied.
The tool position is offset on the next commanded move.
I've confirmed this by using the MDI as part of my learning process. "

Well I think you're correct. I don't want to move the tool when the offset is applied. I want to apply the offset, then move the tool according to it.

The real problem isn't the movement of the machine. It moves great. But the problem is that I cannot get a function in LinuxCNC which allows me to set the tool's offset according to it's real world position. Once the offset is set for that took when the tool is called up via a tool change command, I can program the tool to move to position. Below should explain.

Basically I need to solidify an offset for each tool before I can command it to that offset. I simply cannot get LinuxCNC to recognize that the tool I am trying to set in the offsets, even exists. The machine hangs when given the MDI command which is primary in setting the offset.

Thanks for the reply, though.

Scot

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

More
17 Oct 2019 09:03 #148097 by cmorley
Replied by cmorley on topic Understanding tool offsets
So I think you have said that when you command a tool change the system hangs.
can you be specific about how you are doing a tool change and spplying the offset?

Also you could test a simulated config (they are included with linuxcnc) to see how it works.
In sim after you home then go to MDI:
T1
M6
Then the tool offsets button will be enabled.
G43 to apply offset 1 to the tool

Now using the tool offsets button you can change the tool offset of tool 1 and can see the difference on the DRO page

Chris
The following user(s) said Thank You: Scot

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

More
17 Oct 2019 18:19 #148137 by Scot
Replied by Scot on topic Understanding tool offsets
Thanks for the input, Chris.

The problem was that when I went to enable the tool change, the system would hang and stop functioning, disallowing me to use any functions which were working prior. And rather than being able to set the tool offset by using the Tool Touch Off button, nothing functioned, really.

It was a code issue and Jon Elson at Pico Systems came through yet again!

There are a few lines that were missing from the configuration and I'm pleased to say that after those lines were added, I have full functionality and the ability to set the tools.

I've been working on this with the gracious help of many on this forum. And I can tell you this. Once this system is working, anyone who has a Gang Tool configuration lathe will have access to all the files to rebuild it better with LinuxCNC.

I'm unsure if you read some of my earlier posts. But Jon's products are amazing. I used to get 120ipm rapids from this same setup with different amps and electronics. I can get 360ipm rapids now NO PROBLEM. 300% speed increase is a productivity multiplier, for sure!

Again, thank you for the input and time you took from your day to help. It means tons and I'll do what I can to do the same in the future for others.

Scot

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

More
17 Oct 2019 23:03 #148156 by HueyHQ
Replied by HueyHQ on topic Understanding tool offsets
Could you please elaborate on which lines were missing that affected this? Just curious!

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

More
17 Oct 2019 23:04 #148157 by cmorley
Replied by cmorley on topic Understanding tool offsets
I'm betting the toolchange handshake pins...

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

More
18 Oct 2019 03:35 #148161 by HueyHQ
Replied by HueyHQ on topic Understanding tool offsets

cmorley wrote: I'm betting the toolchange handshake pins...

Oh yeah, I struggled with understanding that, also.

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

More
18 Oct 2019 14:29 #148205 by OT-CNC
Replied by OT-CNC on topic Understanding tool offsets

There are a few lines that were missing from the configuration and I'm pleased to say that after those lines were added, I have full functionality and the ability to set the tools.


Scot,

I'm glad it's working now. If you don't know what exactly was corrected, could you attach the new working config files if that's easier for you? I'd like to look at them so I can learn from it.

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

More
18 Oct 2019 23:20 #148234 by phillc54
Replied by phillc54 on topic Understanding tool offsets
Yes, I would also like to see what the fix for this issue was.

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

More
23 Oct 2019 19:37 #148619 by Scot
Replied by Scot on topic Understanding tool offsets
Hey there, sir

The code that was added was added to the .io file and here it is:

net tool-number <= iocontrol.0.tool-prep-number
net tool-change-loopback iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

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

More
23 Oct 2019 19:41 #148620 by Scot
Replied by Scot on topic Understanding tool offsets
The code which was added to the io.hal file is this:

net tool-number <= iocontrol.0.tool-prep-number
net tool-change-loopback iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

Once that was added, the button came up, functioned perfectly and I was able to set the tools according to their zeros. The machine is able to be programmed without a hitch now. I just need to verify the accuracy of it by making some parts. I work really small. So the ways and screws need to be at the top of their game.

Thanks for all your help. I means more than you can imagine.

Scot

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

Moderators: piasdom
Time to create page: 0.327 seconds
Powered by Kunena Forum