Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7067f3d7
由
LN
编写于
2024-08-16 21:44:30 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
气压不足时报警
1 个父辈
f7b84116
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
29 行增加
和
35 行删除
DeviceLibrary/DeviceLibrary/weightSensor/OKLE_WeightSensor.cs
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/DeviceLibrary/weightSensor/OKLE_WeightSensor.cs
查看文件 @
7067f3d
...
@@ -164,7 +164,7 @@ namespace DeviceLibrary
...
@@ -164,7 +164,7 @@ namespace DeviceLibrary
var
crcbyte
=
BitConverter
.
GetBytes
(
checksun
);
var
crcbyte
=
BitConverter
.
GetBytes
(
checksun
);
by
[
by
.
Length
-
2
]
=
crcbyte
[
0
];
by
[
by
.
Length
-
2
]
=
crcbyte
[
0
];
by
[
by
.
Length
-
1
]
=
crcbyte
[
1
];
by
[
by
.
Length
-
1
]
=
crcbyte
[
1
];
log
(
addr
.
ToString
()
+
"\treaddata: "
+
BitConverter
.
ToString
(
by
).
Replace
(
"-"
,
" "
));
debug
log
(
addr
.
ToString
()
+
"\treaddata: "
+
BitConverter
.
ToString
(
by
).
Replace
(
"-"
,
" "
));
return
SendAndReceive
(
by
,
addr
.
ToString
());
return
SendAndReceive
(
by
,
addr
.
ToString
());
}
}
bool
WriteUShort
(
Addr
addr
,
ushort
value
)
bool
WriteUShort
(
Addr
addr
,
ushort
value
)
...
...
DeviceLibrary/theMachine/MainMachine _LedProcess.cs
查看文件 @
7067f3d
...
@@ -124,37 +124,49 @@ namespace DeviceLibrary
...
@@ -124,37 +124,49 @@ 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
(
runStatus
!=
RunStatus
.
Stop
&&
hasAlarm
)
{
ProcessLefCfg
(
MachineLedStateE
.
Alarm
);
}
//回原 绿闪
//回原 绿闪
if
(
runStatus
==
RunStatus
.
HomeReset
)
else
if
(
runStatus
==
RunStatus
.
HomeReset
)
{
{
ProcessLefCfg
(
MachineLedStateE
.
HomeReset
);
ProcessLefCfg
(
MachineLedStateE
.
HomeReset
);
}
}
//正常 绿亮
//正常 绿亮
else
if
(
runStatus
==
RunStatus
.
Running
)
else
if
(
runStatus
==
RunStatus
.
Running
)
{
{
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
))
//温度超限30分钟 绿亮 黄闪 红闪
//系统暂停,说明书未定义, 绿闪, 红闪
if
(!
canRunning
||
UserPause
)
{
{
ProcessLefCfg
(
MachineLedStateE
.
InOut
);
ProcessLefCfg
(
MachineLedStateE
.
SystemPause
);
}
}
//温度超限 绿亮 黄闪
else
if
(
IsTHoutRangeOver30m
())
if
(
IsTHoutRange
())
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRangeOver30m
);
}
else
if
(
IsTHoutRange
())
{
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRange
);
ProcessLefCfg
(
MachineLedStateE
.
THoutRange
);
}
}
//温度超限30分钟 绿亮 黄闪 红闪
else
if
(
ClampMoveInfo
.
MoveStep
>
MoveStep
.
Wait
if
(
IsTHoutRangeOver30m
())
||
StoreMoveInfo
.
MoveStep
>
MoveStep
.
Wait
||
(
StringMoveInfo
.
MoveStep
>
MoveStep
.
Wait
&&
StringMoveInfo
.
MoveStep
!=
MoveStep
.
StringReadyPut
&&
StringMoveInfo
.
MoveStep
<=
MoveStep
.
StringOut_01
))
{
{
ProcessLefCfg
(
MachineLedStateE
.
THoutRangeOver30m
);
ProcessLefCfg
(
MachineLedStateE
.
InOut
);
}
}
//系统暂停,说明书未定义, 绿闪, 红闪
else
if
(!
canRunning
||
UserPause
)
{
{
ProcessLefCfg
(
MachineLedStateE
.
SystemPause
);
ProcessLefCfg
(
MachineLedStateE
.
Running
);
}
}
}
}
else
if
(
runStatus
==
RunStatus
.
Stop
)
else
if
(
runStatus
==
RunStatus
.
Stop
)
...
@@ -165,25 +177,7 @@ namespace DeviceLibrary
...
@@ -165,25 +177,7 @@ namespace DeviceLibrary
ProcessLefCfg
(
MachineLedStateE
.
AlarmStop
);
ProcessLefCfg
(
MachineLedStateE
.
AlarmStop
);
}
}
}
}
//系统运行时报警, 绿亮,红闪
if
(
runStatus
!=
RunStatus
.
Stop
&&
hasAlarm
)
{
ProcessLefCfg
(
MachineLedStateE
.
Alarm
);
//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;
//}
}
Led
.
LedGroup
.
ForEach
((
x
)
=>
{
x
.
run
();
});
Led
.
LedGroup
.
ForEach
((
x
)
=>
{
x
.
run
();
});
}
}
}
}
...
...
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
7067f3d
...
@@ -1033,7 +1033,7 @@ namespace DeviceLibrary
...
@@ -1033,7 +1033,7 @@ namespace DeviceLibrary
if
(
span
.
TotalSeconds
>
RobotManage
.
Config
.
AirCheckSeconds
)
if
(
span
.
TotalSeconds
>
RobotManage
.
Config
.
AirCheckSeconds
)
{
{
ok
=
false
;
ok
=
false
;
Msg
.
add
(
crc
.
GetString
(
L
.
airpressure_not_enough
,
"气压不足"
),
MsgLevel
.
warning
);
Msg
.
add
(
crc
.
GetString
(
L
.
airpressure_not_enough
,
"气压不足"
),
MsgLevel
.
alarm
);
}
}
}
}
else
else
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论