Conditionnal gcode on current selected tool
duetlover last edited by duetlover
Is that possible to do conditionnal gcode on current selected tool ?
For example in pause.g file :
if selectedTool = 'T0' do something...
Or something like that.
yep have a look at
in the object model
That returns an integer which is the current tool number
Also have state.previousTool and state.nextTool which could be useful during tool change macros if you need to have logic based on that.
duetlover last edited by
Thanks, it works !
Could you please tell me where I can find all the object models I can work with ?
jay_s_uk last edited by
@duetlover there's a plugin under general which allows you to browse the whole object model