Advertisement
Guest User

Untitled

a guest
Aug 20th, 2020
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. o<rack_change> sub
  2.  
  3. M73 (auto-restore modal settings on return)
  4.  
  5. ;Tool in spindle which doesnt equal Tx
  6. o300 if [#<_current_pocket> GT 0 and NE #<_selected_tool]
  7. o<put_tool_back_pickup_selected_tool> call [#<_current_pocket>]
  8.  
  9. ;If Tx is equal to 0 with a tool in spindle
  10. 0300 elseif [#<_selected_tool> EQ 0 and #<_current_pocket> GT 0]
  11. o<put_tool_back> call [#<_selected_tool>]
  12.  
  13. ;T0 and no tool in spindle
  14. 0300 elseif [#<_selected_tool> EQ 0 and #<_current_pocket> LT 1]
  15. (MSG, You cant put back a 0 Tool)
  16.  
  17. ;Tool in spindle equals Tx
  18. 0300 elseif [#<_selected_tool> EQ #<_current_pocket>]
  19.  
  20. 0300 else
  21. o300 endif
  22. o<rack_change> endsub [1]
  23. m2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement