Commit 1be3eaa4 张东亮

添加三色灯状态

1 个父辈 6a03dce4
...@@ -65,6 +65,12 @@ namespace DeviceLibrary ...@@ -65,6 +65,12 @@ namespace DeviceLibrary
public void DefaultLedCfg() public void DefaultLedCfg()
{ {
MachineLedState.Clear(); MachineLedState.Clear();
//安全光栅触发报警,红亮
MachineLedStateName[MachineLedStateE.SafetyLightCurtains] = crc.GetString("ledstate_SafetyLightCurtains", "安全光栅触发");
MachineLedState.Add(MachineLedStateE.SafetyLightCurtains, nls(LedState.on, LedState.off, LedState.off));
//系统停止,红亮
MachineLedStateName[MachineLedStateE.Stop] = crc.GetString("ledstate_Stop", "停机");
MachineLedState.Add(MachineLedStateE.Stop, nls(LedState.on, LedState.off, LedState.off));
//系统报警并停止,红亮 //系统报警并停止,红亮
MachineLedStateName[MachineLedStateE.AlarmStop] = crc.GetString("ledstate_AlarmStop", "停机报警"); MachineLedStateName[MachineLedStateE.AlarmStop] = crc.GetString("ledstate_AlarmStop", "停机报警");
MachineLedState.Add(MachineLedStateE.AlarmStop, nls(LedState.on, LedState.off, LedState.off)); MachineLedState.Add(MachineLedStateE.AlarmStop, nls(LedState.on, LedState.off, LedState.off));
...@@ -77,6 +83,9 @@ namespace DeviceLibrary ...@@ -77,6 +83,9 @@ namespace DeviceLibrary
//系统正常运行 //系统正常运行
MachineLedStateName[MachineLedStateE.Running] = crc.GetString("ledstate_Running", "运行"); MachineLedStateName[MachineLedStateE.Running] = crc.GetString("ledstate_Running", "运行");
MachineLedState.Add(MachineLedStateE.Running, nls(LedState.none, LedState.none, LedState.on)); MachineLedState.Add(MachineLedStateE.Running, nls(LedState.none, LedState.none, LedState.on));
//调试,红亮
MachineLedStateName[MachineLedStateE.Debug] = crc.GetString("ledstate_Debug", "调试");
MachineLedState.Add(MachineLedStateE.Debug, nls(LedState.on, LedState.off, LedState.off));
//系统暂停, 绿闪,红闪 //系统暂停, 绿闪,红闪
MachineLedStateName[MachineLedStateE.SystemPause] = crc.GetString("ledstate_SystemPause", "暂停"); MachineLedStateName[MachineLedStateE.SystemPause] = crc.GetString("ledstate_SystemPause", "暂停");
MachineLedState.Add(MachineLedStateE.SystemPause, nls(LedState.blink, LedState.off, LedState.blink)); MachineLedState.Add(MachineLedStateE.SystemPause, nls(LedState.blink, LedState.off, LedState.blink));
...@@ -123,6 +132,11 @@ namespace DeviceLibrary ...@@ -123,6 +132,11 @@ namespace DeviceLibrary
StandbyLed.LedState = LedState.off; StandbyLed.LedState = LedState.off;
AlarmLed.LedState = LedState.off; AlarmLed.LedState = LedState.off;
RunningLed.LedState = LedState.off; RunningLed.LedState = LedState.off;
if (SafetyLightStop)
{
ProcessLefCfg(MachineLedStateE.SafetyLightCurtains);
return;
}
//回原 绿闪 //回原 绿闪
if (runStatus == RunStatus.HomeReset) if (runStatus == RunStatus.HomeReset)
{ {
...@@ -150,6 +164,10 @@ namespace DeviceLibrary ...@@ -150,6 +164,10 @@ namespace DeviceLibrary
{ {
ProcessLefCfg(MachineLedStateE.THoutRangeOver30m); ProcessLefCfg(MachineLedStateE.THoutRangeOver30m);
} }
if (AutoInOutTest)
{
ProcessLefCfg(MachineLedStateE.Debug);
}
//系统暂停,说明书未定义, 绿闪, 红闪 //系统暂停,说明书未定义, 绿闪, 红闪
if (!canRunning || UserPause) if (!canRunning || UserPause)
{ {
...@@ -245,6 +263,7 @@ namespace DeviceLibrary ...@@ -245,6 +263,7 @@ namespace DeviceLibrary
} }
public enum MachineLedStateE public enum MachineLedStateE
{ {
Stop,
AlarmStop, AlarmStop,
Alarm, Alarm,
HomeReset, HomeReset,
...@@ -253,5 +272,7 @@ namespace DeviceLibrary ...@@ -253,5 +272,7 @@ namespace DeviceLibrary
THoutRangeOver30m, THoutRangeOver30m,
THoutRange, THoutRange,
InOut, InOut,
SafetyLightCurtains,
Debug
} }
} }
...@@ -32,9 +32,12 @@ namespace TheMachine ...@@ -32,9 +32,12 @@ namespace TheMachine
private void RobotManage_LoadFinishEvent(bool state, string msg) private void RobotManage_LoadFinishEvent(bool state, string msg)
{ {
if (RobotManage.Config != null)
{
uC_LedConfig1.Config = RobotManage.Config;
}
if (!state) if (!state)
return; return;
uC_LedConfig1.Config = RobotManage.Config;
if (!RobotManage.haveFixpos) if (!RobotManage.haveFixpos)
cb_usefixpos.Visible = false; cb_usefixpos.Visible = false;
} }
......
...@@ -248,8 +248,11 @@ key 中文 Chinese ...@@ -248,8 +248,11 @@ key 中文 Chinese
l_flipDoor_no_work 左侧翻板水平信号未亮 The left flap horizontal signal is not lit l_flipDoor_no_work 左侧翻板水平信号未亮 The left flap horizontal signal is not lit
Laser_Location 激光对位检测 Laser Counterpoint Detection Laser_Location 激光对位检测 Laser Counterpoint Detection
LastTrayAddHeight 最后一盘料补充高度mm Last Reel's Added Height mm LastTrayAddHeight 最后一盘料补充高度mm Last Reel's Added Height mm
ledstate_Debug 调试 Debug
ledstate_SafetyLightCurtains 安全光栅 Safety light curtain
ledstate_Alarm 报警 Alarm ledstate_Alarm 报警 Alarm
ledstate_AlarmStop 停机报警 Shut Down Alarm ledstate_AlarmStop 停机报警 Shut Down Alarm
ledstate_AlarmStop 停机 Shut Down
ledstate_HomeReset 复位 Reset ledstate_HomeReset 复位 Reset
ledstate_InOut 出入库中 In Operation ledstate_InOut 出入库中 In Operation
ledstate_Running 运行 Run ledstate_Running 运行 Run
......
...@@ -410,7 +410,10 @@ not_allow 不允许 禁じられた ...@@ -410,7 +410,10 @@ not_allow 不允许 禁じられた
UC_LedConfig_button_save_Text 保存设定 設定を保存する UC_LedConfig_button_save_Text 保存设定 設定を保存する
UC_LedConfig_button_reset_Text 重置为默认值 デフォルトにリセット UC_LedConfig_button_reset_Text 重置为默认值 デフォルトにリセット
ledstate_Alarm 报警 警報 ledstate_Alarm 报警 警報
ledstate_Debug 调试 デバック
ledstate_SafetyLightCurtains 安全光栅 ライトカーテン
ledstate_AlarmStop 停机报警 シャットダウンアラーム ledstate_AlarmStop 停机报警 シャットダウンアラーム
ledstate_Stop 停机 ていし
ledstate_HomeReset 复位 位置 ledstate_HomeReset 复位 位置
ledstate_InOut 出入库中 ストレージの内外 ledstate_InOut 出入库中 ストレージの内外
ledstate_Running 运行 走る ledstate_Running 运行 走る
......
...@@ -394,14 +394,17 @@ confirm_no_reel_in_com 请确保料盘已从库位中取出 请确保料盘已 ...@@ -394,14 +394,17 @@ confirm_no_reel_in_com 请确保料盘已从库位中取出 请确保料盘已
UC_LedConfig_button_save_Text 保存设定 保存设定 UC_LedConfig_button_save_Text 保存设定 保存设定
UC_LedConfig_button_reset_Text 重置为默认值 重置为默认值 UC_LedConfig_button_reset_Text 重置为默认值 重置为默认值
ledstate_Debug 调试 调试
ledstate_Alarm 报警 报警 ledstate_Alarm 报警 报警
ledstate_AlarmStop 停机报警 停机报警 ledstate_AlarmStop 停机报警 停机报警
ledstate_Stop 停机 停机
ledstate_HomeReset 复位 复位 ledstate_HomeReset 复位 复位
ledstate_InOut 出入库中 出入库中 ledstate_InOut 出入库中 出入库中
ledstate_Running 运行 运行 ledstate_Running 运行 运行
ledstate_SystemPause 暂停 暂停 ledstate_SystemPause 暂停 暂停
ledstate_THoutRangeOver30m 温湿度超限30分钟 温湿度超限30分钟 ledstate_THoutRangeOver30m 温湿度超限30分钟 温湿度超限30分钟
ledstate_THoutRange 温湿度超限 温湿度超限 ledstate_THoutRange 温湿度超限 温湿度超限
ledstate_SafetyLightCurtains 安全光栅 安全光栅
Res0220 状态,优先级从大到小 状态,优先级从大到小 Res0220 状态,优先级从大到小 状态,优先级从大到小
Res0221 绿灯 绿灯 Res0221 绿灯 绿灯
Res0222 黄灯 黄灯 Res0222 黄灯 黄灯
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!