Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1be3eaa4
由
张东亮
编写于
2025-09-10 13:13:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加三色灯状态
1 个父辈
6a03dce4
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
34 行增加
和
1 行删除
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
TheMachine/SettingControl.cs
TheMachine/resources/en-US.lngres
TheMachine/resources/ja-JP.lngres
TheMachine/resources/zh-CN.lngres
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
查看文件 @
1be3eaa
...
@@ -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
}
}
}
}
TheMachine/SettingControl.cs
查看文件 @
1be3eaa
...
@@ -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
;
}
}
...
...
TheMachine/resources/en-US.lngres
查看文件 @
1be3eaa
...
@@ -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
...
...
TheMachine/resources/ja-JP.lngres
查看文件 @
1be3eaa
...
@@ -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 运行 走る
...
...
TheMachine/resources/zh-CN.lngres
查看文件 @
1be3eaa
...
@@ -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!
Cancel
请
注册
或
登录
后发表评论