- Posts: 35
- Thank you received: 1
qt_dragon_hd - manual tool change and remap
- suspension
- Topic Author
- Offline
- Junior Member
-
Less
More
3 years 5 months ago #271746
by suspension
qt_dragon_hd - manual tool change and remap was created by suspension
I am trying to test manual tool change and subsequent auto tool measurement in qtdragon_hd. I use versa probe.
I have followed instructions on the qtdragon documentation carefully, so the loading of hal_manualtoolchange is disabled, paths are set, python and ngc files are copied, some settings required are set in the ini file. Remapping is also done.
Here is what I do:
1. Start linuxcnc
2. switch on the machine and home all
3. Type the mdi command T3 M6
I expect the machine to move to tool change psition and show me a message asking to load the tool and then click resume. Then I expect it to move to the tool setter position and measure the length.
However none of this happens. The 'Cycle Start' becomes active and pause and stop buttons are enabled however. But nothing else happens.
I put some print statements in prolog and epilog and can see that it ultimately calls the ngc file but that never returns (because my print statement at the start of epilog is not printed). Since this suggests that the execution is stuck inside the ngc file (qt_auto_probe_tool.ngc), I added some return statement at various places in the ngc file to understand where it get stuck. Looks like the execution flows until the command 'M6' (line 42 in this file). I commented that line (M6 command) and then it stops after G38.2 Z #<_ini[VERSA_TOOLSETTER]MAXPROBE> (line 64).
I am a total novice to ngc files, so what I have done above may not make sense. Just added that to give some more information about my problem.
Any thoughts on why this is happening?
Thanks
Sus
I have followed instructions on the qtdragon documentation carefully, so the loading of hal_manualtoolchange is disabled, paths are set, python and ngc files are copied, some settings required are set in the ini file. Remapping is also done.
Here is what I do:
1. Start linuxcnc
2. switch on the machine and home all
3. Type the mdi command T3 M6
I expect the machine to move to tool change psition and show me a message asking to load the tool and then click resume. Then I expect it to move to the tool setter position and measure the length.
However none of this happens. The 'Cycle Start' becomes active and pause and stop buttons are enabled however. But nothing else happens.
I put some print statements in prolog and epilog and can see that it ultimately calls the ngc file but that never returns (because my print statement at the start of epilog is not printed). Since this suggests that the execution is stuck inside the ngc file (qt_auto_probe_tool.ngc), I added some return statement at various places in the ngc file to understand where it get stuck. Looks like the execution flows until the command 'M6' (line 42 in this file). I commented that line (M6 command) and then it stops after G38.2 Z #<_ini[VERSA_TOOLSETTER]MAXPROBE> (line 64).
I am a total novice to ngc files, so what I have done above may not make sense. Just added that to give some more information about my problem.
Any thoughts on why this is happening?
Thanks
Sus
Please Log in or Create an account to join the conversation.
3 years 5 months ago #271747
by cmorley
Replied by cmorley on topic qt_dragon_hd - manual tool change and remap
Do you still have lines like this called in your post_gui HAL file?
This would probably be why you don't get a prompt.
Did you check the 'tool measure' button on the versa probe tab?
If you don't do this it just won't measure.
Otherwise please post your config files and mention which version of linuxcnc you are using.
Chris
Code:
net tool-change hal_manualtoolchange.change <= iocontrol.0.tool-change
net tool-changed hal_manualtoolchange.changed <= iocontrol.0.tool-changed
net tool-prep-number hal_manualtoolchange.number <= iocontrol.0.tool-prep-number
Did you check the 'tool measure' button on the versa probe tab?
If you don't do this it just won't measure.
Otherwise please post your config files and mention which version of linuxcnc you are using.
Chris
Please Log in or Create an account to join the conversation.
- suspension
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 1
3 years 5 months ago - 3 years 5 months ago #271752
by suspension
Replied by suspension on topic qt_dragon_hd - manual tool change and remap
yes I have those three lines. I thought these are needed. Anyway I also commented them and checked and results are same.
Yes the 'tool measure' check button is checked.
I have attached my configs files.
Thanks
Sus
Yes the 'tool measure' check button is checked.
I have attached my configs files.
Thanks
Sus
Last edit: 3 years 5 months ago by suspension.
Please Log in or Create an account to join the conversation.
3 years 5 months ago #271755
by cmorley
Replied by cmorley on topic qt_dragon_hd - manual tool change and remap
Sorry I don't think I was clear. You _need_ these lines in the postgui file:
This line also needs to be un-commented in damnu-cnc.hal:
Try that and see if things work.
Chris
Code:
net tool-change hal_manualtoolchange.change <= iocontrol.0.tool-change
net tool-changed hal_manualtoolchange.changed <= iocontrol.0.tool-changed
net tool-prep-number hal_manualtoolchange.number <= iocontrol.0.tool-prep-number
Code:
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Try that and see if things work.
Chris
Please Log in or Create an account to join the conversation.
- suspension
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 1
3 years 5 months ago #271756
by suspension
Replied by suspension on topic qt_dragon_hd - manual tool change and remap
Uncommenting
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
did the trick. Although I haven't tested it fully, now it pops up a dialog asking me to load the tool. Thank you very much for the help.
It would be great if this can be put in the documentation.
Thanks
Sus
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
did the trick. Although I haven't tested it fully, now it pops up a dialog asking me to load the tool. Thank you very much for the help.
It would be great if this can be put in the documentation.
Thanks
Sus
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
3 years 5 months ago #271768
by cmorley
Replied by cmorley on topic qt_dragon_hd - manual tool change and remap
Glad you got it.
Thanks for the detailed information - really helps.
I will add that to the docs.
Thanks for the detailed information - really helps.
I will add that to the docs.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.087 seconds