Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO20242OutBound
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 577c5b6f
由
LN
编写于
2023-11-12 19:55:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
打开防护门后自动更新菜单为暂停
1 个父辈
a5c33d50
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
11 行增加
和
5 行删除
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/RobotManage.cs
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
577c5b6
...
...
@@ -5,7 +5,6 @@ using System;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading
;
namespace
DeviceLibrary
{
public
partial
class
MainMachine
:
IRobot
...
...
@@ -474,8 +473,10 @@ namespace DeviceLibrary
ok
=
false
;
DeviceSuddenStop
();
UserPause
=
true
;
RobotManage
.
UpdateUserPause
(
UserPause
);
}
Msg
.
add
(
"左侧NG料门没有关闭"
+
(
ok
?
ignorestring
:
""
),
MsgLevel
.
alarm
);
Msg
.
add
(
"左侧NG料门没有关闭"
+
(
ok
?
ignorestring
:
""
)
+
",系统暂停"
,
MsgLevel
.
alarm
);
}
if
(
IOValue
(
IO_Type
.
Right_NGDoor_Close_Check
).
Equals
(
IO_VALUE
.
LOW
))
{
...
...
@@ -484,8 +485,9 @@ namespace DeviceLibrary
ok
=
false
;
DeviceSuddenStop
();
UserPause
=
true
;
RobotManage
.
UpdateUserPause
(
UserPause
);
}
Msg
.
add
(
"右侧NG料门没有关闭"
+
(
ok
?
ignorestring
:
""
),
MsgLevel
.
alarm
);
Msg
.
add
(
"右侧NG料门没有关闭"
+
(
ok
?
ignorestring
:
""
)
+
",系统暂停"
,
MsgLevel
.
alarm
);
}
if
(!
lastSafeCheckStatus
&&
ok
)
...
...
@@ -749,7 +751,7 @@ namespace DeviceLibrary
ACStorePosition
position
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
pName
);
if
(
position
==
null
)
{
LogUtil
.
error
(
Name
+
" "
+
tray
.
ToStr
()
+
" 找到匹配料架,但未找到库位号:"
+
pName
+
",查找库位号:"
+
targetPosName
);
LogUtil
.
debug
(
Name
+
" "
+
tray
.
ToStr
()
+
" 找到匹配料架,但未找到库位号:"
+
pName
+
",查找库位号:"
+
targetPosName
);
//判断库位号是否存在
position
=
CSVPositionReader
<
ACStorePosition
>.
GetPositon
(
targetPosName
);
...
...
@@ -771,7 +773,7 @@ namespace DeviceLibrary
}
else
{
LogUtil
.
info
(
Name
+
" "
+
tray
.
ToStr
()
+
" 使用料架:"
+
targetPosName
+
",更改料架为忙碌状态,开始放料 失败"
);
LogUtil
.
info
(
Name
+
" "
+
tray
.
ToStr
()
+
" 使用料架:"
+
targetPosName
+
",更改料架为忙碌状态,开始放料 失败
,请检查料架状态
"
);
}
break
;
}
...
...
DeviceLibrary/theMachine/RobotManage.cs
查看文件 @
577c5b6
...
...
@@ -178,6 +178,10 @@ namespace DeviceLibrary
else
LogUtil
.
info
(
"用户取消暂停:"
+
msg
);
}
public
static
void
UpdateUserPause
(
bool
userpause
)
{
UserPauseSet
?.
Invoke
(
null
,
userpause
);
}
public
static
void
IgnoreSafecheck
(
bool
s
)
{
mainMachine
.
IgnoreSafecheck
=
s
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论