Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
MIMO
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 52856290
由
张东亮
编写于
2023-01-09 10:00:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
灯塔出入库灯显示分开
1 个父辈
3aae5c39
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
24 行增加
和
8 行删除
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
查看文件 @
5285629
...
...
@@ -88,8 +88,11 @@ namespace DeviceLibrary
MachineLedStateName
[
MachineLedStateE
.
THoutRange
]
=
"温湿度超限"
;
MachineLedState
.
Add
(
MachineLedStateE
.
THoutRange
,
nls
(
LedState
.
none
,
LedState
.
blink
,
LedState
.
blink
));
//进出库, 绿亮,黄闪
MachineLedStateName
[
MachineLedStateE
.
InOut
]
=
"出入库中"
;
MachineLedState
.
Add
(
MachineLedStateE
.
InOut
,
nls
(
LedState
.
none
,
LedState
.
blink
,
LedState
.
on
));
MachineLedStateName
[
MachineLedStateE
.
In
]
=
"入库中"
;
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
)
{
var
a
=
new
Dictionary
<
LedColor
,
LedState
>();
...
...
@@ -111,7 +114,7 @@ namespace DeviceLibrary
foreach
(
var
ledcolor
in
ledcfg
.
Keys
)
{
if
(
ledcfg
[
ledcolor
]
==
LedState
.
none
)
return
;
continue
;
Led
.
LedColors
[
ledcolor
].
LedState
=
ledcfg
[
ledcolor
];
}
}
...
...
@@ -132,13 +135,25 @@ namespace DeviceLibrary
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 (ClampMoveInfo.MoveStep > MoveStep.Wait
//|| StoreMoveInfo.MoveStep > MoveStep.Wait
//|| (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;
//StandbyLed.LedState = LedState.blink;
ProcessLefCfg
(
MachineLedStateE
.
In
Out
);
ProcessLefCfg
(
MachineLedStateE
.
Out
);
}
//温度超限 绿亮 黄闪
if
(
IsTHoutRange
())
...
...
@@ -249,6 +264,7 @@ namespace DeviceLibrary
SystemPause
,
THoutRangeOver30m
,
THoutRange
,
InOut
,
In
,
Out
,
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论