Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit da5c0d70
由
张东亮
编写于
2025-09-17 09:13:44 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
灯光定义但不亮问题
1 个父辈
1be3eaa4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
57 行增加
和
58 行删除
ChangeConfigKey/Program.cs
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
ChangeConfigKey/Program.cs
查看文件 @
da5c0d7
using
ConfigHelper
;
using
OnlineStore.Common
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ChangeConfigKey
{
...
...
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
查看文件 @
da5c0d7
...
...
@@ -135,72 +135,75 @@ namespace DeviceLibrary
if
(
SafetyLightStop
)
{
ProcessLefCfg
(
MachineLedStateE
.
SafetyLightCurtains
);
return
;
}
//回原 绿闪
if
(
runStatus
==
RunStatus
.
HomeReset
)
{
ProcessLefCfg
(
MachineLedStateE
.
HomeReset
);
}
//正常 绿亮
else
if
(
runStatus
==
RunStatus
.
Running
)
else
{
ProcessLefCfg
(
MachineLedStateE
.
Running
);
//出入库 绿闪 黄闪
if
(
ClampMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
StoreMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
(
StringMoveInfo
.
MoveStep
>
MoveStep
.
Wait
&&
StringMoveInfo
.
MoveStep
!=
MoveStep
.
StringReadyPut
&&
StringMoveInfo
.
MoveStep
<=
MoveStep
.
StringOut_01
))
//回原 绿闪
if
(
runStatus
==
RunStatus
.
HomeReset
)
{
ProcessLefCfg
(
MachineLedStateE
.
InOu
t
);
ProcessLefCfg
(
MachineLedStateE
.
HomeRese
t
);
}
//
温度超限 绿亮 黄闪
if
(
IsTHoutRange
()
)
//
正常 绿亮
else
if
(
runStatus
==
RunStatus
.
Running
)
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRange
);
}
//温度超限30分钟 绿亮 黄闪 红闪
if
(
IsTHoutRangeOver30m
())
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRangeOver30m
);
ProcessLefCfg
(
MachineLedStateE
.
Running
);
//出入库 绿闪 黄闪
if
(
ClampMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
StoreMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
(
StringMoveInfo
.
MoveStep
>
MoveStep
.
Wait
&&
StringMoveInfo
.
MoveStep
!=
MoveStep
.
StringReadyPut
&&
StringMoveInfo
.
MoveStep
<=
MoveStep
.
StringOut_01
))
{
ProcessLefCfg
(
MachineLedStateE
.
InOut
);
}
//温度超限 绿亮 黄闪
if
(
IsTHoutRange
())
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRange
);
}
//温度超限30分钟 绿亮 黄闪 红闪
if
(
IsTHoutRangeOver30m
())
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRangeOver30m
);
}
if
(
AutoInOutTest
)
{
ProcessLefCfg
(
MachineLedStateE
.
Debug
);
}
//系统暂停,说明书未定义, 绿闪, 红闪
if
(!
canRunning
||
UserPause
)
{
ProcessLefCfg
(
MachineLedStateE
.
SystemPause
);
}
}
if
(
AutoInOutTest
)
else
if
(
runStatus
==
RunStatus
.
Stop
)
{
ProcessLefCfg
(
MachineLedStateE
.
Debug
);
//系统停止时有报警, 红亮
if
(
hasAlarm
)
{
ProcessLefCfg
(
MachineLedStateE
.
AlarmStop
);
}
}
//系统
暂停,说明书未定义, 绿闪,
红闪
if
(
!
canRunning
||
UserPause
)
//系统
运行时报警, 绿亮,
红闪
if
(
runStatus
!=
RunStatus
.
Stop
&&
hasAlarm
)
{
ProcessLefCfg
(
MachineLedStateE
.
SystemPause
);
}
}
else
if
(
runStatus
==
RunStatus
.
Stop
)
{
//系统停止时有报警, 红亮
if
(
hasAlarm
)
{
ProcessLefCfg
(
MachineLedStateE
.
AlarmStop
);
}
}
//系统运行时报警, 绿亮,红闪
if
(
runStatus
!=
RunStatus
.
Stop
&&
hasAlarm
)
{
ProcessLefCfg
(
MachineLedStateE
.
Alarm
);
ProcessLefCfg
(
MachineLedStateE
.
Alarm
);
//if (UserPause) {
// RunningLed.LedState = LedState.blink;
// StandbyLed.LedState = LedState.blink;
//}
//if (UserPause) {
// RunningLed.LedState = LedState.blink;
// StandbyLed.LedState = LedState.blink;
//}
//if (ResetMoveInfo.MoveStep >= MoveStep.H13_HomeReset && ResetMoveInfo.MoveStep <= MoveStep.H14_HomeReset)
//{
// StandbyLed.LedState = LedState.blink;
//}
//if (ClampMoveInfo.MoveStep >= MoveStep.NGOUT_02 && ClampMoveInfo.MoveStep <= MoveStep.NGOUT_03)
//{
// StandbyLed.LedState = LedState.blink;
//}
//if (ResetMoveInfo.MoveStep >= MoveStep.H13_HomeReset && ResetMoveInfo.MoveStep <= MoveStep.H14_HomeReset)
//{
// StandbyLed.LedState = LedState.blink;
//}
//if (ClampMoveInfo.MoveStep >= MoveStep.NGOUT_02 && ClampMoveInfo.MoveStep <= MoveStep.NGOUT_03)
//{
// StandbyLed.LedState = LedState.blink;
//}
}
}
Led
.
LedGroup
.
ForEach
((
x
)
=>
{
x
.
run
();
});
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论