Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- o<rack_change> sub
- M73 (auto-restore modal settings on return)
- ;Tool in spindle which doesnt equal Tx
- o300 if [#<_current_pocket> GT 0 and NE #<_selected_tool]
- o<put_tool_back_pickup_selected_tool> call [#<_current_pocket>]
- ;If Tx is equal to 0 with a tool in spindle
- 0300 elseif [#<_selected_tool> EQ 0 and #<_current_pocket> GT 0]
- o<put_tool_back> call [#<_selected_tool>]
- ;T0 and no tool in spindle
- 0300 elseif [#<_selected_tool> EQ 0 and #<_current_pocket> LT 1]
- (MSG, You cant put back a 0 Tool)
- ;Tool in spindle equals Tx
- 0300 elseif [#<_selected_tool> EQ #<_current_pocket>]
- 0300 else
- o300 endif
- o<rack_change> endsub [1]
- m2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement