Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def spindle(self, s, clockwise):
- if s < 0:
- clockwise = False
- s = abs(s)
- self.s = self.SPINDLE(self.FORMAT_ANG(), s)
- if clockwise:
- self.write(self.SPINDLE_CW()+self.SPACE() + self.s+ '\n')
- self.write(self.s + '\n')
- #self.write('G04 P2.0 \n')
- else:
- self.write(self.SPINDLE_CCW()+self.SPACE() + self.s + '\n')
- #self.write('G04 P2.0 \n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement