Do not Probe Tool if not changed

More
14 Dec 2021 09:27 #229043 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 ?

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

More
15 Dec 2021 12:50 #229123 by cmorley
Without your remap code, hard to give a decent answer.
You add a 'switch' - an if-thenstatement that will short circuit the probing.
The following user(s) said Thank You: ikkuh, MoshKopp

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

More
21 Dec 2021 18:44 #229643 by ikkuh
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)
The following user(s) said Thank You: MoshKopp

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

More
21 Dec 2021 22:40 #229673 by JohnnyCNC

Without your remap code, hard to give a decent answer.
You add a 'switch' - an if-thenstatement that will short circuit the probing.

That is what I did in my remap

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.

More
27 Jan 2022 19:25 #233302 by MoshKopp
I should subscribe next time my own posts.. 

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
Powered by Kunena Forum