How do I do a manual tool change?

More
05 Apr 2012 22:53 #19005 by BigJohnT
We need photo proof to qualify as the "ugliest" tool touch off ever :)

John

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

More
06 Apr 2012 09:23 #19009 by ArcEye

To the real machinists who counselled against this: This is a learning excersize, and I will probably end up not using it in real life.

It does not matter, it is the learning process that matters.

I could not be happy until I had managed to get my lathe ATC working completely automatically as was intended.
I learnt a huge amount in getting to that state.

It matters not that I now seldom use it for other than tool choice before starting a program run.
I still have the knowledge I acquired along the way.

regards

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

More
06 Apr 2012 09:27 #19010 by Rick G
Glad you got it sorted out and are having fun.

Rick G

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

More
14 Nov 2013 14:45 #40811 by LS

Hi

"You may also want to look here...
wiki.linuxcnc.org/cgi-bin/wiki.pl?ManualToolChangeMacro"
As per a recent discussion on the users list, this script is now out of date and will not work 'as is' due to changes with the NML file requirement.

Attached is a modified version I made which does work with v2.4 and higher, albeit it is still a little quirky and you need to play with it to get used to it.
(just remove the .txt extension )

regards


Hello,

I've been unable to get this to work on 2.5.3

It hangs while starting LinuxCNC.

The error log shows:
"Waiting for component 'hal_manualtoolchange' to become ready...................................."
"LS.hal:90 hal_manualtoolchange exited without becoming ready"

Any help would be appreciated.

Luke

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

More
14 Nov 2013 16:40 #40812 by ArcEye
Hi

It is quite simple, this thread is 1 1/2 years old and emc has been rebranded to linuxcnc since then.

If you ran linuxcnc from a terminal, the errors would immediately show that it could not find the python library emc, because it is now called linuxcnc

This version runs under the master so should work with 2.5.X as well

regards


File Attachment:

File Name: hal_manual...nge2.zip
File Size:1 KB
Attachments:

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

More
17 Nov 2013 15:55 #40888 by LS

Hi
It is quite simple, this thread is 1 1/2 years old and emc has been rebranded to linuxcnc since then.

If you ran linuxcnc from a terminal, the errors would immediately show that it could not find the python library emc, because it is now called linuxcnc

This version runs under the master so should work with 2.5.X as well

regards


Hi ArcEye,

Yes I was already using the file that supposedly had been updated for 2.5

I tried your file, and have the same result. "Waiting for component 'hal_manualtoolchange' to become ready"

Cheers,
Luke

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

More
17 Nov 2013 17:59 #40889 by ArcEye
You will have to attach your config, zip the whole folder so it can be run.

The component I attached worked fine when I tested it.

Also start linuxcnc from a terminal and post the output, the error you cite is generic, hopefully the other output will give the full story

regards

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

More
17 Nov 2013 20:17 #40892 by LS
Hi ArcEye,

Please see the attached zip. I also started LinuxCNC from the terminal for you to see the error.
I had to press CTRL-C (^C), otherwise it will wait continously. I have tried waiting, but it never gets past waiting for the script to start.

Cheers,
Luke
linuxcnc@linuxcnc-desktop:~$ linuxcnc /home/linuxcnc/linuxcnc/configs/LS/LS.ini
LINUXCNC - 2.5.3
Machine configuration directory is '/home/linuxcnc/linuxcnc/configs/LS'
Machine configuration file is 'LS.ini'
Starting LinuxCNC...
Waiting for component 'hal_manualtoolchange_jog' to become ready.............................................................................................................................................................................................................................................................................................................................................................^C.
LS.hal:88: hal_manualtoolchange_jog exited without becoming ready
Shutting down and cleaning up LinuxCNC...
Cleanup done
Attachments:

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

More
17 Nov 2013 22:17 - 17 Nov 2013 23:10 #40893 by ArcEye
Hi

I will be able to test your config later, but I suspect I have found the problem.

# loadusr -W hal_manualtoolchange
loadusr -W hal_manualtoolchange_jog

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


You have renamed the component file to hal_manualtoolchange_jog

Unless you have edited the component code to rename the component to the same name,
it will launch the component which is still called hal_manualtoolchange and wait for ever for a component called hal_manualtoolchange_jog to become ready, which it never will.

Then it would error anyway because iocontrol is still linked to hal_manualtoolchange

Revert to the original name and it should work

regards
Last edit: 17 Nov 2013 23:10 by ArcEye.

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

More
17 Nov 2013 23:09 #40897 by ArcEye
Yep, that is exactly what is wrong with it

Changed it back to original name and





regards
Attachments:

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

Time to create page: 0.129 seconds
Powered by Kunena Forum