public void VLoadConveyorCylinder(TrayCylinderState state) { switch (state) { case TrayCylinderState.PushOut: CylinderOut(Output.VLoadConveyorCylinder, Input.VLoadConveyorCylinderOut); break; case TrayCylinderState.Retract: CylinderIn(Output.VLoadConveyorCylinder, Input.VLoadConveyorCylinderIn); break; default: break; } }
public void LUnloadTrayCylinder(TrayCylinderState state) { try { switch (state) { case TrayCylinderState.PushOut: CylinderOut(Output.LUnloadTrayCylinder, Input.LUnloadTrayCylinderOut); break; case TrayCylinderState.Retract: CylinderIn(Output.LUnloadTrayCylinder, Input.LUnloadTrayCylinderIn); break; default: break; } } catch (Exception) { throw new Exception("Make sure tray cylinder is around it's magnet position."); } }