Files
mxsc/script/motion/trash.py
gac-S_Changer bc78e8fd40
2018-10-17 17:03:56 +02:00

32 lines
626 B
Python

def trash():
"""
"""
print "trash"
#Initial checks
robot.assert_no_task()
robot.reset_motion()
robot.wait_ready()
robot.assert_cleared()
#robot.assert_in_known_point()
#Enabling
enable_motion()
robot.move_heater(to_bottom = False)
robot.move_heater(to_bottom = True)
try:
for i in range(3):
robot.open_tool()
time.sleep(0.5)
robot.close_tool()
time.sleep(0.5)
finally:
robot.open_tool()
robot.move_heater(to_bottom = False)
robot.move_home()