Advertisement
danfalck

spindle_snippet.py

Nov 16th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1.     def spindle(self, s, clockwise):
  2.         if s < 0:
  3.             clockwise = False
  4.             s = abs(s)
  5.        
  6.         self.s = self.SPINDLE(self.FORMAT_ANG(), s)
  7.         if clockwise:
  8.             self.write(self.SPINDLE_CW()+self.SPACE() + self.s+ '\n')                
  9.             self.write(self.s +  '\n')
  10.             #self.write('G04 P2.0 \n')
  11.                
  12.         else:
  13.             self.write(self.SPINDLE_CCW()+self.SPACE() + self.s + '\n')
  14.             #self.write('G04 P2.0 \n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement