Spindle Inhibit while Probing.....
20 Jul 2024 22:41 #305732
by cmorley
Replied by cmorley on topic Spindle Inhibit while Probing.....
I see it. copy paste error - should be a bit pin- I pushed the fix.
The preference file doesn't erase unused entries. You can erase the [VERSA-PROBE OPTIONS] header and the single entry when qtdragon is not loaded.
Chris
The preference file doesn't erase unused entries. You can erase the [VERSA-PROBE OPTIONS] header and the single entry when qtdragon is not loaded.
Chris
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
21 Jul 2024 18:05 - 21 Jul 2024 18:07 #305803
by Roguish
Replied by Roguish on topic Spindle Inhibit while Probing.....
Chris,
still not working.......fixing typos is good, but what about the logic ????
see both images.
also, If i add qtversaprobe.probe-loaded to a .hal file loaded through the .ini, qtdragon fails to start with './spin.hal:2: Pin 'qtversaprobe.probe-loaded' does not exist' error.
so, how, exactly, should this be coded in .hal ??? and how loaded ???
I do appreciate your efforts.
note: after your change, I do a git pull, and a complete rebuild and install
still not working.......fixing typos is good, but what about the logic ????
see both images.
also, If i add qtversaprobe.probe-loaded to a .hal file loaded through the .ini, qtdragon fails to start with './spin.hal:2: Pin 'qtversaprobe.probe-loaded' does not exist' error.
so, how, exactly, should this be coded in .hal ??? and how loaded ???
I do appreciate your efforts.
note: after your change, I do a git pull, and a complete rebuild and install
Attachments:
Last edit: 21 Jul 2024 18:07 by Roguish.
Please Log in or Create an account to join the conversation.
21 Jul 2024 19:08 #305809
by cmorley
Replied by cmorley on topic Spindle Inhibit while Probing.....
Since versa probe is part of the screen you must connect pins in a _postgui_ HAL file.
Did you do that?
Since you are using the optional spindle-raise-on-pause, (which uses spindle.0.inhibit) you must add an OR component so either 'spindle pause' or 'probe installed' will inhibit the spindle.
Did you do that?
Since you are using the optional spindle-raise-on-pause, (which uses spindle.0.inhibit) you must add an OR component so either 'spindle pause' or 'probe installed' will inhibit the spindle.
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
21 Jul 2024 19:41 - 21 Jul 2024 19:58 #305810
by Roguish
Replied by Roguish on topic Spindle Inhibit while Probing.....
wow, thanks for the quick reply.
I don't even know what the spindle-raise-on-pause is.... or where it is.
I am using the supplied sim.qtdragon.qtdragon_inch.ini see the attached .ini file.
I do not see the raise thing anywhere. not in the .ini or in the .pref
Where does 'spindle pause' come from?
I see in the SETTINGS panel, there is a SPINDLE RAISE. it's set to 0. when the heck does it take effect?
I know how to use hal. Been doing it for a long time. and I definitely RTFM. I do realize documentation is not much fun, but it's needed........and so is updating it.
ok, checking the current docs. found 'Auto Raise Z Axis on Spindle Pause'
it says there are buttons. not so.....OK just found it. not in setting like it ought to be. it's on the start/stop/etc.... page.
I don't even know what the spindle-raise-on-pause is.... or where it is.
I am using the supplied sim.qtdragon.qtdragon_inch.ini see the attached .ini file.
I do not see the raise thing anywhere. not in the .ini or in the .pref
Where does 'spindle pause' come from?
I see in the SETTINGS panel, there is a SPINDLE RAISE. it's set to 0. when the heck does it take effect?
I know how to use hal. Been doing it for a long time. and I definitely RTFM. I do realize documentation is not much fun, but it's needed........and so is updating it.
ok, checking the current docs. found 'Auto Raise Z Axis on Spindle Pause'
it says there are buttons. not so.....OK just found it. not in setting like it ought to be. it's on the start/stop/etc.... page.
Last edit: 21 Jul 2024 19:58 by Roguish.
Please Log in or Create an account to join the conversation.
21 Jul 2024 20:01 #305811
by cmorley
Replied by cmorley on topic Spindle Inhibit while Probing.....
Show me a pic of your qtdragon screen.
Please Log in or Create an account to join the conversation.
21 Jul 2024 20:09 - 21 Jul 2024 21:02 #305812
by Roguish
Replied by Roguish on topic Spindle Inhibit while Probing.....
once again. thanks for the quick reply.
see attached image.
also I keep deleting this, but it keeps coming back..
[VERSA_PROBE OPTIONS]
ps_probe_tool = 99
*******
ok, did some more careful reading and hal coding.
added this to the postgui hal file
#####net spindle-pause qtdragon.spindle-inhibit => spindle.0.inhibit
##
## these are in simulated_home.hal
###loadrt or2 names=or2_0,or2_spin
###addf or2_0 servo-thread
###addf or2_spin servo-thread
net tmp1 qtdragon.spindle-inhibit or2_spin.in0
net tmp2 qtversaprobe.probe-loaded or2_spin.in1
net spin-off or2_spin.out spindle.0.inhibit
see attached image.
also I keep deleting this, but it keeps coming back..
[VERSA_PROBE OPTIONS]
ps_probe_tool = 99
*******
ok, did some more careful reading and hal coding.
added this to the postgui hal file
#####net spindle-pause qtdragon.spindle-inhibit => spindle.0.inhibit
##
## these are in simulated_home.hal
###loadrt or2 names=or2_0,or2_spin
###addf or2_0 servo-thread
###addf or2_spin servo-thread
net tmp1 qtdragon.spindle-inhibit or2_spin.in0
net tmp2 qtversaprobe.probe-loaded or2_spin.in1
net spin-off or2_spin.out spindle.0.inhibit
Last edit: 21 Jul 2024 21:02 by Roguish.
Please Log in or Create an account to join the conversation.
21 Jul 2024 21:04 #305818
by cmorley
Replied by cmorley on topic Spindle Inhibit while Probing.....
You are using the development version of linuxcnc.
Documentation will never be perfect, It's lucky there are any updated documentation in the master version, mostly because it constantly changes and a lack of time.
Obviously we are not paid to do this work.
It is expected that you will try to figure things out yourself and then ask questions on what you can't.
Some people then write new documentation from the info they figured out and/or were told about and offer it to linuxcnc, so as to help out. This is very helpful.
It's in fact harder to write good docs when you already know how something is supposed to work as you don't think about other ways to operate the feature.
Ok which problem do you want to work on first?
You can see in the picture there is a button that says 'no lift' eg spindle lift is turned off.
You can see in the pic the setting 'spindle raise' is set to 0 inches eg no spindle raise amount.
If you set these to 'spindle raise' and 1 inch respectably, run a program and then pause the program, you should see the program pause and the spindle stop and the spindle raise 1 inch.
This absolutely works in the sim configs.
This new feature - inhibit spindle when probe is loaded- is new so the sim has not integrated it.
Both features require controlling the spindle.0.inhibit pin. you can't normally have two driver pins connected to an input. If you use an OR2/logic component (or classicladder/custom component) you can.
You would need to connect qtdragon.spindle-inhibit to one OR input and qtversaprobe.probe-loaded to the other OR input and connect the OR output to spindle.0.inhibit
Now either event will inhibit the spindle.
if you erase the preference file entries while linuxcnc is not running and don't run any version that still uses the old version of versaprobe,you won't see it again.
Chris
Documentation will never be perfect, It's lucky there are any updated documentation in the master version, mostly because it constantly changes and a lack of time.
Obviously we are not paid to do this work.
It is expected that you will try to figure things out yourself and then ask questions on what you can't.
Some people then write new documentation from the info they figured out and/or were told about and offer it to linuxcnc, so as to help out. This is very helpful.
It's in fact harder to write good docs when you already know how something is supposed to work as you don't think about other ways to operate the feature.
Ok which problem do you want to work on first?
You can see in the picture there is a button that says 'no lift' eg spindle lift is turned off.
You can see in the pic the setting 'spindle raise' is set to 0 inches eg no spindle raise amount.
If you set these to 'spindle raise' and 1 inch respectably, run a program and then pause the program, you should see the program pause and the spindle stop and the spindle raise 1 inch.
This absolutely works in the sim configs.
This new feature - inhibit spindle when probe is loaded- is new so the sim has not integrated it.
Both features require controlling the spindle.0.inhibit pin. you can't normally have two driver pins connected to an input. If you use an OR2/logic component (or classicladder/custom component) you can.
You would need to connect qtdragon.spindle-inhibit to one OR input and qtversaprobe.probe-loaded to the other OR input and connect the OR output to spindle.0.inhibit
Now either event will inhibit the spindle.
if you erase the preference file entries while linuxcnc is not running and don't run any version that still uses the old version of versaprobe,you won't see it again.
Chris
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
21 Jul 2024 21:36 #305819
by Roguish
Replied by Roguish on topic Spindle Inhibit while Probing.....
and again. thanks for the quick reply.
note my last edit in my last post.
I did add some hal commands, and I think it's working ok now.
note my last edit in my last post.
I did add some hal commands, and I think it's working ok now.
Please Log in or Create an account to join the conversation.
21 Jul 2024 21:54 #305820
by cmorley
Replied by cmorley on topic Spindle Inhibit while Probing.....
Excellent.
I am updating the docs on this a bit. hopefully you can critique the docs update later
when I push them.
I am updating the docs on this a bit. hopefully you can critique the docs update later
when I push them.
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
23 Jul 2024 20:59 #305922
by Roguish
Replied by Roguish on topic Spindle Inhibit while Probing.....
Well, as soon as the po4a bug gets fixed, and Seb's buildbot2 makes a bookworm master deb, I'll try it on my mill.
I've been using my desk demo setup for builds and testing.
Not going to do a build on my mill system.
i'll let ya know how it goes, whenever it does....
I've been using my desk demo setup for builds and testing.
Not going to do a build on my mill system.
i'll let ya know how it goes, whenever it does....
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.187 seconds