Files
x06da/script/motion/trash.py
gac-S_Changer c85d4b4aa9 Startup
2020-09-08 11:53:11 +02:00

36 lines
694 B
Python

def trash():
"""
"""
print "trash"
if robot.simulated:
time.sleep(3.0)
return
#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_cold()