Commit f2230197 LN

设备照明增加验证

1 个父辈 84f6140c
...@@ -178,6 +178,16 @@ namespace OnlineStore.ACSingleStore ...@@ -178,6 +178,16 @@ namespace OnlineStore.ACSingleStore
private void FrmStoreIOStatus_Load(object sender, EventArgs e) private void FrmStoreIOStatus_Load(object sender, EventArgs e)
{ {
AIManager.Instance.NeedShow = true; AIManager.Instance.NeedShow = true;
if (boxBean.Config.StoreDOList.ContainsKey(IO_Type.Device_Led))
{
btnDevideLed.Visible = true;
btnCDLed.Visible = true;
}
else
{
btnDevideLed.Visible = false;
btnCDLed.Visible = false;
}
} }
private void cmbWriteIO_DrawItem(object sender, DrawItemEventArgs e) private void cmbWriteIO_DrawItem(object sender, DrawItemEventArgs e)
......
...@@ -83,7 +83,16 @@ namespace OnlineStore.ACSingleStore ...@@ -83,7 +83,16 @@ namespace OnlineStore.ACSingleStore
txtInOutP2.Text = ktkPosition.InOutAxis_DoorPosition_P2.ToString(); txtInOutP2.Text = ktkPosition.InOutAxis_DoorPosition_P2.ToString();
//txtUpDownP1.Text = ktkPosition.UpDownAxis_DoorOPosition_P1.ToString(); //txtUpDownP1.Text = ktkPosition.UpDownAxis_DoorOPosition_P1.ToString();
} }
if (store.Config.StoreDOList.ContainsKey(IO_Type.Device_Led))
{
btnOpenDLed.Visible = true;
btnCloseDLed.Visible = true;
}
else
{
btnOpenDLed.Visible = false;
btnCloseDLed.Visible = false;
}
timer1.Enabled = true; timer1.Enabled = true;
} }
#endregion #endregion
......
...@@ -911,6 +911,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -911,6 +911,8 @@ namespace OnlineStore.DeviceLibrary
//仓门打开,打开照明 //仓门打开,打开照明
if (Config.StoreDOList.ContainsKey(IO_Type.Device_Led))
{
bool doorIsOpen = false; bool doorIsOpen = false;
if (IOManager.IOValue(IO_Type.Door_Limit).Equals(IO_VALUE.LOW)) if (IOManager.IOValue(IO_Type.Door_Limit).Equals(IO_VALUE.LOW))
{ {
...@@ -943,6 +945,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -943,6 +945,7 @@ namespace OnlineStore.DeviceLibrary
IOManager.IOMove(IO_Type.Device_Led, IO_VALUE.LOW); IOManager.IOMove(IO_Type.Device_Led, IO_VALUE.LOW);
} }
} }
}
} }
catch (Exception ex) catch (Exception ex)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!