Do not Probe Tool if not changed
14 Dec 2021 09:27 #229043
by MoshKopp
Do not Probe Tool if not changed was created by MoshKopp
goog morning.
Is there a way to checkout if the tool was changed?
for example. I remap my m6 to a Measure script. that all runs nice, but if I want to work with the same gcode a few times in a row, maybe for Radius Comp. he doesnt need to measure every time. Its ok drive to changing pos. but no need to measure.
any ideas ?
Is there a way to checkout if the tool was changed?
for example. I remap my m6 to a Measure script. that all runs nice, but if I want to work with the same gcode a few times in a row, maybe for Radius Comp. he doesnt need to measure every time. Its ok drive to changing pos. but no need to measure.
any ideas ?
Please Log in or Create an account to join the conversation.
15 Dec 2021 12:50 #229123
by cmorley
Replied by cmorley on topic Do not Probe Tool if not changed
Without your remap code, hard to give a decent answer.
You add a 'switch' - an if-thenstatement that will short circuit the probing.
You add a 'switch' - an if-thenstatement that will short circuit the probing.
Please Log in or Create an account to join the conversation.
21 Dec 2021 18:44 #229643
by ikkuh
Replied by ikkuh on topic Do not Probe Tool if not changed
you could add something like this to you change script:
#<tool> = #<selected_tool>
#<tool_in_spindle> =#<tool_in_spindle>
O200 if [#[tool_in_spindle] EQ #<tool>]
O200 return [3] ; indicate no tool measurement
O200 endif
<ripped from onChange script by Norbert)
#<tool> = #<selected_tool>
#<tool_in_spindle> =#<tool_in_spindle>
O200 if [#[tool_in_spindle] EQ #<tool>]
O200 return [3] ; indicate no tool measurement
O200 endif
<ripped from onChange script by Norbert)
The following user(s) said Thank You: MoshKopp
Please Log in or Create an account to join the conversation.
21 Dec 2021 22:40 #229673
by JohnnyCNC
o500 if[#<_current_tool> EQ #<_selected_tool>]
(Same tool as before so no need to do anything.)
o500 else
(This is a different tool. Measure tool here.)
Replied by JohnnyCNC on topic Do not Probe Tool if not changed
That is what I did in my remapWithout your remap code, hard to give a decent answer.
You add a 'switch' - an if-thenstatement that will short circuit the probing.
o500 if[#<_current_tool> EQ #<_selected_tool>]
(Same tool as before so no need to do anything.)
o500 else
(This is a different tool. Measure tool here.)
The following user(s) said Thank You: MoshKopp
Please Log in or Create an account to join the conversation.
27 Jan 2022 19:25 #233302
by MoshKopp
Replied by MoshKopp on topic Do not Probe Tool if not changed
I should subscribe next time my own posts..
Thx @all it has solved with an if else, works good.
Thx @all it has solved with an if else, works good.
Please Log in or Create an account to join the conversation.
Time to create page: 0.261 seconds