|
|
@@ -110,40 +110,42 @@ class LoaderSystem:
|
|
|
await wait_for_enter()
|
|
|
# Feeding with MagDistributor
|
|
|
###########################
|
|
|
+ self.logger.info("Homing the Magazin Distributor Axis...")
|
|
|
+ await self.mag_distributor.home()
|
|
|
self.logger.info("Picking up a cell from magazine and placing it into feeder using MagDistributor...")
|
|
|
self.mag_distributor.mag_to_feeder()
|
|
|
await self.feeder_queue.put(1)
|
|
|
self.logger.info("Done.")
|
|
|
|
|
|
- await wait_for_enter()
|
|
|
- # Prepare Feeder Cell
|
|
|
- ##############################
|
|
|
- self.logger.info("Preparing feeder cell...")
|
|
|
- await self.controller.prepare_feeder_cell()
|
|
|
- self.logger.info("Done.")
|
|
|
-
|
|
|
- await wait_for_enter()
|
|
|
- # Feeder -> Slot
|
|
|
- ##############################
|
|
|
- self.logger.info("Picking up a cell from feeder and placing it into slot...")
|
|
|
- await self.controller.pick_cell_from_feeder()
|
|
|
- cell = Cell(id=1, status=CellStatus.WAITING)
|
|
|
- await self.controller.insert_cell_to_slot(cell, self.test_drop_slot)
|
|
|
-
|
|
|
- await wait_for_enter()
|
|
|
- # Slot -> Defeeder
|
|
|
- ##############################
|
|
|
- self.logger.info("Picking up a cell from slot and placing it into defeeder...")
|
|
|
- await self.controller.pick_cell_from_slot(self.test_pickup_slot)
|
|
|
- await self.controller.dropoff_cell()
|
|
|
- self.logger.info("Done.")
|
|
|
-
|
|
|
- await wait_for_enter()
|
|
|
- # Defeeding with MagDistributor
|
|
|
- ###########################
|
|
|
- self.logger.info("Defeeding a cell from feeder to magazine using MagDistributor...")
|
|
|
- self.mag_distributor.defeeder_to_mag(self.config.defeeder_magazines[0])
|
|
|
- self.logger.info("Done.")
|
|
|
+ # await wait_for_enter()
|
|
|
+ # # Prepare Feeder Cell
|
|
|
+ # ##############################
|
|
|
+ # self.logger.info("Preparing feeder cell...")
|
|
|
+ # await self.controller.prepare_feeder_cell()
|
|
|
+ # self.logger.info("Done.")
|
|
|
+
|
|
|
+ # await wait_for_enter()
|
|
|
+ # # Feeder -> Slot
|
|
|
+ # ##############################
|
|
|
+ # self.logger.info("Picking up a cell from feeder and placing it into slot...")
|
|
|
+ # await self.controller.pick_cell_from_feeder()
|
|
|
+ # cell = Cell(id=1, status=CellStatus.WAITING)
|
|
|
+ # await self.controller.insert_cell_to_slot(cell, self.test_drop_slot)
|
|
|
+
|
|
|
+ # await wait_for_enter()
|
|
|
+ # # Slot -> Defeeder
|
|
|
+ # ##############################
|
|
|
+ # self.logger.info("Picking up a cell from slot and placing it into defeeder...")
|
|
|
+ # await self.controller.pick_cell_from_slot(self.test_pickup_slot)
|
|
|
+ # await self.controller.dropoff_cell()
|
|
|
+ # self.logger.info("Done.")
|
|
|
+
|
|
|
+ # await wait_for_enter()
|
|
|
+ # # Defeeding with MagDistributor
|
|
|
+ # ###########################
|
|
|
+ # self.logger.info("Defeeding a cell from feeder to magazine using MagDistributor...")
|
|
|
+ # self.mag_distributor.defeeder_to_mag(self.config.defeeder_magazines[0])
|
|
|
+ # self.logger.info("Done.")
|
|
|
|
|
|
self.logger.info("\nPress Enter to repeat sequence (or Ctrl+C to exit)...")
|
|
|
|