Do not Probe Tool if not changed

More
4 years 10 months ago #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 to join the conversation.

More
4 years 10 months ago #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.

Please Log in to join the conversation.

More
4 years 10 months ago #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)

Please Log in to join the conversation.

More
4 years 10 months ago #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.)


 

Please Log in to join the conversation.

More
4 years 9 months ago #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 to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum