Problem with Run
- tfhess
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
30 Nov 2018 19:22 #121645
by tfhess
Replied by tfhess on topic Problem with Run
Thanks Andy.
I took a look at my axis_manualtoolchange.hal file (attached) to see if it seemed correct in light of your message. Not being a programmer, I don't really know if it is.
What I do know is that when I ran a program with T1M6 in it, I expected a dialog box to pop up and give me a chance to change/insert a tool, hit ok and continue run. It never happened (program went to never never land and with no way to get out of it, stayed there). I suspect that the real culprit is no hal pin connected the manual tool change feature. My fault in using a canned .ini file from Jon Elson and not setting up the tool change feature.
I took a look at my axis_manualtoolchange.hal file (attached) to see if it seemed correct in light of your message. Not being a programmer, I don't really know if it is.
What I do know is that when I ran a program with T1M6 in it, I expected a dialog box to pop up and give me a chance to change/insert a tool, hit ok and continue run. It never happened (program went to never never land and with no way to get out of it, stayed there). I suspect that the real culprit is no hal pin connected the manual tool change feature. My fault in using a canned .ini file from Jon Elson and not setting up the tool change feature.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
30 Nov 2018 20:14 #121647
by andypugh
Replied by andypugh on topic Problem with Run
That looks OK. The next question is whether that file (axis_manualtoolchange.hal) is called out in the INI file [HAL] section.
(And how about tool-prepare?)
(And how about tool-prepare?)
Please Log in or Create an account to join the conversation.
- tfhess
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
30 Nov 2018 20:27 #121649
by tfhess
Replied by tfhess on topic Problem with Run
My .ini (attached) does not appear to have a call for manual tool change nor tool prep.
If you wouldn't mind, what should the additional code lines look like?
If you wouldn't mind, what should the additional code lines look like?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
30 Nov 2018 20:31 #121650
by andypugh
Replied by andypugh on topic Problem with Run
in the [HAL] section of the INI
HALFILE = axis_manualtoolchange.hal
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
30 Nov 2018 20:37 - 30 Nov 2018 20:39 #121651
by Todd Zuercher
Replied by Todd Zuercher on topic Problem with Run
You aren't referencing the axis_manualtoolchange.hal file in your ini file.
You would need to add the lineto the [HAL] section of your ini file for axis_manualtoolchange.hal to have any effect on your configuration.
You would need to add the line
HALFILE = axis_manualtoolchange.hal
Last edit: 30 Nov 2018 20:39 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
- tfhess
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
30 Nov 2018 22:50 #121657
by tfhess
Replied by tfhess on topic Problem with Run
Todd and Andy:
Thanks for the suggestion. I added to .ini but that did not solve the run problem. A dialog box does pop up when emc2 starts (references tool change, how you can resize the box etc., and disappears shortly after) but the dialog for a tool change never appears when running a g-code program. "Run" obviously then does not operate.
Is there something else missing in the .ini?
Thanks for the suggestion. I added to .ini but that did not solve the run problem. A dialog box does pop up when emc2 starts (references tool change, how you can resize the box etc., and disappears shortly after) but the dialog for a tool change never appears when running a g-code program. "Run" obviously then does not operate.
Is there something else missing in the .ini?
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
Less
More
- Posts: 405
- Thank you received: 163
30 Nov 2018 23:38 #121659
by MaHa
Replied by MaHa on topic Problem with Run
I compared your manualtoolchange.hal with my old parallelport config. The commands in my working file are in opposite order. I don't know if this matters. Just an idea
loadusr -W hal_manualtoolchange
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
loadusr -W hal_manualtoolchange
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
Please Log in or Create an account to join the conversation.
- tfhess
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
01 Dec 2018 02:12 #121666
by tfhess
Replied by tfhess on topic Problem with Run
Great! Thanks. I will try your version tomorrow.
Please Log in or Create an account to join the conversation.
- tfhess
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
01 Dec 2018 21:35 #121692
by tfhess
Replied by tfhess on topic Problem with Run
I tried your version of the tool change file, but it did not change the emc2 behavior from the previous tool file. Still no tool popup window when the g code had a T1M6 call and Run did not work correctly. There must be something else I am missing.
No big problem on g code with only 1 tool. Just remove the T1M6 call from the g code and everything runs fine.
No big problem on g code with only 1 tool. Just remove the T1M6 call from the g code and everything runs fine.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
02 Dec 2018 12:19 #121709
by andypugh
Replied by andypugh on topic Problem with Run
So, how is your HAL connected?
This really shouldn't be complicated, it is only 4 HAL pins and two of those simply need to be connected together.
With LinuxCNC idle, can you have a look in the "Machine->Show HAL configuration" dialog and see where iocontrol.0.tool-prepare / prepared and iocontrol.0.tool-change / changed are connected?
You might need to look in both the "pins" and "signals" sections.
Then add the 4 pins to a "Watch" tab, MDI a tool change request and watch what happens.
This really shouldn't be complicated, it is only 4 HAL pins and two of those simply need to be connected together.
With LinuxCNC idle, can you have a look in the "Machine->Show HAL configuration" dialog and see where iocontrol.0.tool-prepare / prepared and iocontrol.0.tool-change / changed are connected?
You might need to look in both the "pins" and "signals" sections.
Then add the 4 pins to a "Watch" tab, MDI a tool change request and watch what happens.
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds