Commit a542bb55 几米阳光

轴报警检测间隔修改。停止料仓后清理界面显示

1 个父辈 5ea90f59
......@@ -138,7 +138,6 @@ namespace OnlineStore.ACSingleStore
private DateTime preReadModblsTime = DateTime.Now;
private void timer1_Tick(object sender, EventArgs e)
{
//验证运动是否完成
//CheckWait();
......@@ -168,18 +167,12 @@ namespace OnlineStore.ACSingleStore
}
lblThisSta.Text = store.GetRunStr();
DateTime time = DateTime.Now;
if (store != null && store.storeRunStatus != StoreRunStatus.Wait)
{
txtAxisRunTime.Text = store.GetAxisRunTime(store.Config.Middle_Axis.GetAxisValue()).ToString(@"dd\.hh\:mm\:ss");
txtStoreRunTime.Text = store.GetStoreRunTime().ToString(@"dd\.hh\:mm\:ss");
}
//复位按钮状态显示
if (复位ToolStripMenuItem.Enabled == false)
{
if ((store.storeRunStatus.Equals(StoreRunStatus.HomeMoving) || store.storeRunStatus.Equals(StoreRunStatus.Reset))
&&store.alarmType.Equals(StoreAlarmType.None))
&& store.alarmType.Equals(StoreAlarmType.None))
{
}
else
......@@ -201,7 +194,8 @@ namespace OnlineStore.ACSingleStore
if (store.KNDIOValue(IO_Type.Left_Door_LimitSingle).Equals(IO_VALUE.LOW))
{
lblWarnMsg.Text = lblWarnMsg.Text + " 左侧门未关";
} if (store.KNDIOValue(IO_Type.Right_Door_LimitSingle).Equals(IO_VALUE.LOW))
}
if (store.KNDIOValue(IO_Type.Right_Door_LimitSingle).Equals(IO_VALUE.LOW))
{
lblWarnMsg.Text = lblWarnMsg.Text + " 右侧门未关";
}
......@@ -234,6 +228,12 @@ namespace OnlineStore.ACSingleStore
}
}
}
else
{
lblThisSta.Text = "等待启动";
lblWarnMsg.Text = "";
btnStartAuTo.Text = "开始自动出入库";
}
}
private void ReadPosistion()
......
......@@ -669,6 +669,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
public override void StopRun()
{
WarnMsg = "";
autoNext = false;
serverConnectTimer.Enabled = false;
StopMove();
......@@ -1093,11 +1094,17 @@ namespace OnlineStore.DeviceLibrary
private DateTime checkAlarmTime = DateTime.Now;
public bool CheckAxisAlarm()
{
//在回原点,复位,出入库时,检测报警间隔减小
if (storeRunStatus.Equals(StoreRunStatus.Busy) || storeRunStatus.Equals(StoreRunStatus.HomeMoving) || storeRunStatus.Equals(StoreRunStatus.Reset))
{ }
else
{
TimeSpan span = DateTime.Now - checkAlarmTime;
if (span.TotalSeconds < 2)
{
return false;
}
}
checkAlarmTime = DateTime.Now;
bool isInAlarm = false;
......@@ -1156,7 +1163,6 @@ namespace OnlineStore.DeviceLibrary
LogUtil.info(LOGGER, StoreName + "StopMove");
KNDIOMove(IO_Type.Door_Down, IO_VALUE.LOW);
KNDIOMove(IO_Type.Door_Up, IO_VALUE.LOW);
Thread.Sleep(100);
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!