Commit f6bbb9d0 LN

颜色调整

1 个父辈 594bfa0e
...@@ -73,10 +73,15 @@ namespace DeviceLibrary ...@@ -73,10 +73,15 @@ namespace DeviceLibrary
{ {
return; return;
} }
if (lastColor != "" && lastColor.Equals(color.Name.ToString())) //if (lastColor != "" && lastColor.Equals(color.Name.ToString()))
{ //{
return; // return;
} //}
//if (lastColor.Equals("yellowL")||lastColor.Equals("greenL"))
//{
// rGB_Controller.CloseLed();
// Thread.Sleep(50);
//}
lastS = lastState; lastS = lastState;
//rGB_Controller.CloseLed(); //rGB_Controller.CloseLed();
rGB_Controller.ShowColor(color); rGB_Controller.ShowColor(color);
...@@ -154,7 +159,11 @@ namespace DeviceLibrary ...@@ -154,7 +159,11 @@ namespace DeviceLibrary
{ {
scanCode = true; scanCode = true;
} }
if (h != null && h.Value ) if(StoreMoveInfo.IsStep(MoveStep.Wait)&&ClampMoveInfo.IsStep(MoveStep.Wait)&& StringMoveInfo.IsStep(MoveStep.Wait))
{
}
else if (h != null && h.Value )
{ {
waitTake = true; waitTake = true;
} }
...@@ -188,13 +197,14 @@ namespace DeviceLibrary ...@@ -188,13 +197,14 @@ namespace DeviceLibrary
{ {
////流动黄: 出库, ////流动黄: 出库,
ShowYellowLight(); ShowYellowLight();
lastS = "storeOut"; lastS = "storeOut";
LogUtil.info(Name + " ShowColor " + lastS + "=" + lastColor);
} }
else if (inPut) else if (inPut)
{ {
ShowGreenLight(); ShowGreenLight();
lastS = "storeIn"; lastS = "storeIn";
LogUtil.info(Name + " ShowColor " + lastS + "=" + lastColor);
} }
else if (waitTake) else if (waitTake)
{ {
...@@ -225,7 +235,7 @@ namespace DeviceLibrary ...@@ -225,7 +235,7 @@ namespace DeviceLibrary
else else
{ {
//待机 蓝绿 //待机 蓝绿
ShowColor(Color.FromArgb(0, 128, 128), "waiting"); ShowColor(Color.FromArgb(0, 255, 64), "waiting");
} }
} }
} }
......
...@@ -325,8 +325,10 @@ namespace DeviceLibrary ...@@ -325,8 +325,10 @@ namespace DeviceLibrary
currnetstoreStatus = isInSuddenDown ? StoreStatus.SuddenStop : StoreStatus.Warning; currnetstoreStatus = isInSuddenDown ? StoreStatus.SuddenStop : StoreStatus.Warning;
} }
//ProcessMoveinfoEvent?.Invoke(MoveInfo.List); //ProcessMoveinfoEvent?.Invoke(MoveInfo.List);
if (!UserPause&&(!mstart)) if (!UserPause && mstart)
{
Msg.clear(); Msg.clear();
}
//else //else
// currnetstoreStatus = StoreStatus.Debugging; // currnetstoreStatus = StoreStatus.Debugging;
...@@ -496,16 +498,21 @@ namespace DeviceLibrary ...@@ -496,16 +498,21 @@ namespace DeviceLibrary
{ {
ResetMoveInfo.NextMoveStep(MoveStep.H12_HomeReset); ResetMoveInfo.NextMoveStep(MoveStep.H12_HomeReset);
ResetMoveInfo.log("反转托盘上有料盘,送到NG口"); ResetMoveInfo.log("反转托盘上有料盘,送到NG口");
} }
else else
{ {
if (RobotManage.NeedSensorPro()) if (IOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH))
{
ResetMoveInfo.NextMoveStep(MoveStep.HEND_HomeReset);
ResetMoveInfo.log("叉子上有料,不去进行超声感应器检测");
}
else if (RobotManage.NeedSensorPro())
{ {
ResetMoveInfo.NextMoveStep(MoveStep.H21_HomeStartCheck); ResetMoveInfo.NextMoveStep(MoveStep.H21_HomeStartCheck);
ResetMoveInfo.log("夹爪上没有料盘,开始去进行超声感应器检测"); ResetMoveInfo.log("夹爪上没有料盘,开始去进行超声感应器检测");
} }
else else
{ {
ResetMoveInfo.NextMoveStep(MoveStep.HEND_HomeReset); ResetMoveInfo.NextMoveStep(MoveStep.HEND_HomeReset);
ResetMoveInfo.log("夹爪上上没有料盘"); ResetMoveInfo.log("夹爪上上没有料盘");
} }
......
...@@ -299,7 +299,7 @@ namespace DeviceLibrary ...@@ -299,7 +299,7 @@ namespace DeviceLibrary
else else
if (h.Value) if (h.Value)
{ {
Msg.add(crc.GetString(L.please_take_ngdoor_reel, "等待取走单料口料盘"), MsgLevel.alarm); Msg.add(crc.GetString(L.please_take_ngdoor_reel, "等待取走单料口料盘"), MsgLevel.warning);
ShowColor(Color.White, "waitTask"); ShowColor(Color.White, "waitTask");
if (Setting_Init.CamTestReel_Ability) if (Setting_Init.CamTestReel_Ability)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!