setting up schaublin 125 cnc lathe with carousel toolchanger

More
7 years 8 months ago - 7 years 8 months ago #125820 by andypugh
Sorry for the late reply, I am on a skiing holiday. I did manage to try the fix on my pocket computer, but for some reason I can’t even set “single” mode on that, the strncmp lines all fail.
Thanks for confirming that the fix works. Was the problem halcompile rather than halcompile —install?

The pull request contains quite a lot of spurious white-space changes. I would prefer it if it didn’t.

T0 means unload tool on milling machines. Not very applicable to lathes and probably best handled in the handler code. But it sounds like you have the system using tool number and not pocket number. T0 probably shouldn’t ask for pocket 0
Last edit: 7 years 8 months ago by andypugh.

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

More
7 years 8 months ago #125913 by inoxix
Enjoy your holidays!

I updated the branch just to contain the needed change.
However, there are some tabs (lines 301, 305, 316) and indention errors (lines 181, 305). I also saw that the use of break statement and curly brackets is not really consistent.

For T0 I agree, on mils T0 has different meaning. Therefore, I would also like it is.

Regards
Tom

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

More
7 years 7 months ago #127873 by trilobyte
after apt-get update and apt-get dist-upgrade is the machine now working with the carousel.comp!

Regards
peter

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

More
6 years 2 weeks ago - 6 years 2 weeks ago #186461 by trilobyte
i used the machine with 4 tools without problems. but i have a problem with more than 4 tools.

i have 4 pockets. if i try to switch to tool #5 the carousel active bit gets high, but the fwd is still low.

i load the carousel with this line in hal:

loadrt carousel pockets=4 encoding=single num_sense=4 dir=1

i tought i can call tool #5 and the carousel.comp calculates 5%4 = 1 (tool #5 in pocket 1)
this isn't working.

with 4 tools it works well, but if i use a tool# higher dann 4 it will not work.

does anyone have an idea what i could do?

peter

ps: i use the latest 2.8
Last edit: 6 years 2 weeks ago by trilobyte.

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

More
6 years 1 week ago - 6 years 1 week ago #186621 by trilobyte
i made a short video:

Video Schaublin 125

and a screenshof of the halshow

www.trilobyte.ch/temp/20201019_224004.jpg
image missing http://www.trilobyte.ch/temp/20201019_224004.jpg

does anyone have any idea what else I could try?

peter
Last edit: 6 years 1 week ago by trilobyte.

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

More
6 years 1 week ago - 6 years 1 week ago #186668 by andypugh
I think this is a bug. Look at:
github.com/LinuxCNC/linuxcnc/blob/2.8/sr...s/carousel.comp#L261

It almost certainly should be testing mod_pocket not not pocket_number there.

Do you want to test it? It should be possible to download and edit that file, then compile/install it with "sudo halcompile --install carousel.comp"
You might need to install the "linuxcnc-dev" package, but you might already have it.
Last edit: 6 years 1 week ago by andypugh.

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

Time to create page: 1.503 seconds
Powered by Kunena Forum