|
|
@@ -107,22 +107,32 @@ class LoaderSystem:
|
|
|
async def _loader_loop(self):
|
|
|
while True:
|
|
|
|
|
|
- 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 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 self.controller.pick_cell_from_slot(self.test_pickup_slot)
|
|
|
+ await self.controller.dropoff_cell()
|
|
|
+
|
|
|
+ # 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
|
|
|
@@ -132,6 +142,7 @@ class LoaderSystem:
|
|
|
# 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
|
|
|
# ##############################
|