/// <summary>
/// 進板中
/// </summary>
public class PalletInState : StateBase
{
private static PalletInState instance = new PalletInState();
public static PalletInState Instance => instance;
public override StateType Type => StateType.PalletIn;
public override void Enter(StateType oldState)
{
//InnerAgency.Instance.MovWait();
ConvAgency.Instance.MotorPos();
ConvAgency.Instance.PalletStop();
}
public override void Exit(StateType newState)
{
}
public override void Update()
{
if (ConvAgency.Instance.HasPallet)
{
ConvAgency.Instance.MotorSubPos();
Thread.Sleep(200);
ConvAgency.Instance.MotorStopAll();
FSM.Instance.ChangeState(PalletUpState.Instance);
}
}
}