Commit 52856290 张东亮

灯塔出入库灯显示分开

1 个父辈 3aae5c39
...@@ -88,8 +88,11 @@ namespace DeviceLibrary ...@@ -88,8 +88,11 @@ namespace DeviceLibrary
MachineLedStateName[MachineLedStateE.THoutRange] = "温湿度超限"; MachineLedStateName[MachineLedStateE.THoutRange] = "温湿度超限";
MachineLedState.Add(MachineLedStateE.THoutRange, nls(LedState.none, LedState.blink, LedState.blink)); MachineLedState.Add(MachineLedStateE.THoutRange, nls(LedState.none, LedState.blink, LedState.blink));
//进出库, 绿亮,黄闪 //进出库, 绿亮,黄闪
MachineLedStateName[MachineLedStateE.InOut] = "出入库中"; MachineLedStateName[MachineLedStateE.In] = "入库中";
MachineLedState.Add(MachineLedStateE.InOut, nls(LedState.none, LedState.blink, LedState.on)); MachineLedState.Add(MachineLedStateE.In, nls(LedState.none, LedState.blink, LedState.on));
//进出库, 绿亮,黄闪
MachineLedStateName[MachineLedStateE.Out] = "出库中";
MachineLedState.Add(MachineLedStateE.Out, nls(LedState.none, LedState.blink, LedState.on));
} }
Dictionary<LedColor, LedState> nls(LedState AlarmLedstate, LedState StandbyLedstate, LedState RunningLedstate) { Dictionary<LedColor, LedState> nls(LedState AlarmLedstate, LedState StandbyLedstate, LedState RunningLedstate) {
var a = new Dictionary<LedColor, LedState>(); var a = new Dictionary<LedColor, LedState>();
...@@ -111,7 +114,7 @@ namespace DeviceLibrary ...@@ -111,7 +114,7 @@ namespace DeviceLibrary
foreach (var ledcolor in ledcfg.Keys) foreach (var ledcolor in ledcfg.Keys)
{ {
if (ledcfg[ledcolor] == LedState.none) if (ledcfg[ledcolor] == LedState.none)
return; continue;
Led.LedColors[ledcolor].LedState = ledcfg[ledcolor]; Led.LedColors[ledcolor].LedState = ledcfg[ledcolor];
} }
} }
...@@ -132,13 +135,25 @@ namespace DeviceLibrary ...@@ -132,13 +135,25 @@ namespace DeviceLibrary
ProcessLefCfg(MachineLedStateE.Running); ProcessLefCfg(MachineLedStateE.Running);
//出入库 绿闪 黄闪 //出入库 绿闪 黄闪
if (ClampMoveInfo.MoveStep > MoveStep.Wait //if (ClampMoveInfo.MoveStep > MoveStep.Wait
|| StoreMoveInfo.MoveStep > MoveStep.Wait //|| StoreMoveInfo.MoveStep > MoveStep.Wait
|| (StringMoveInfo.MoveStep > MoveStep.Wait && StringMoveInfo.MoveStep != MoveStep.StringReadyPut && StringMoveInfo.MoveStep <= MoveStep.StringOut_01)) //|| (StringMoveInfo.MoveStep > MoveStep.Wait && StringMoveInfo.MoveStep != MoveStep.StringReadyPut && StringMoveInfo.MoveStep <= MoveStep.StringOut_01))
//{
// //RunningLed.LedState = LedState.blink;
// //StandbyLed.LedState = LedState.blink;
// ProcessLefCfg(MachineLedStateE.InOut);
//}
if (ServerCM.storeStatus.Equals(StoreStatus.InStoreExecute))
{
//RunningLed.LedState = LedState.blink;
//StandbyLed.LedState = LedState.blink;
ProcessLefCfg(MachineLedStateE.In);
}
if (ServerCM.storeStatus.Equals(StoreStatus.OutStoreExecute))
{ {
//RunningLed.LedState = LedState.blink; //RunningLed.LedState = LedState.blink;
//StandbyLed.LedState = LedState.blink; //StandbyLed.LedState = LedState.blink;
ProcessLefCfg(MachineLedStateE.InOut); ProcessLefCfg(MachineLedStateE.Out);
} }
//温度超限 绿亮 黄闪 //温度超限 绿亮 黄闪
if (IsTHoutRange()) if (IsTHoutRange())
...@@ -249,6 +264,7 @@ namespace DeviceLibrary ...@@ -249,6 +264,7 @@ namespace DeviceLibrary
SystemPause, SystemPause,
THoutRangeOver30m, THoutRangeOver30m,
THoutRange, THoutRange,
InOut, In,
Out,
} }
} }
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!