Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 855dbaf4
由
刘韬
编写于
2022-11-01 09:22:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
0e77d8b8
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
7 行删除
source/DeviceLibrary/Config/Config_Store.csv
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
source/DeviceLibrary/Config/Config_Store.csv
查看文件 @
855dbaf
...
@@ -14,7 +14,7 @@ DI,1,复位(上料机构),Reset_BTN,1,HC,X01,,,,,,,,,,,,
...
@@ -14,7 +14,7 @@ DI,1,复位(上料机构),Reset_BTN,1,HC,X01,,,,,,,,,,,,
DI,1,空气压力检测,Airpressure_Check,2,HC,X02,,,,,,,,,,,,
DI,1,空气压力检测,Airpressure_Check,2,HC,X02,,,,,,,,,,,,
DI,1,上料机构光栅信号,SafetyRasterSignal,3,HC,X03,,,,,,,,,,,,
DI,1,上料机构光栅信号,SafetyRasterSignal,3,HC,X03,,,,,,,,,,,,
DI,2,A前门门禁信号,LeftDoor_Limit,4,HC,X04,,,,,,,,,,,,
DI,2,A前门门禁信号,LeftDoor_Limit,4,HC,X04,,,,,,,,,,,,
DI,2,B前门门禁信号,
Lef
tDoor_Limit,5,HC,X05,,,,,,,,,,,,
DI,2,B前门门禁信号,
Righ
tDoor_Limit,5,HC,X05,,,,,,,,,,,,
DI,2,后门门禁信号,BackDoor_Limit,6,HC,X06,,,,,,,,,,,,
DI,2,后门门禁信号,BackDoor_Limit,6,HC,X06,,,,,,,,,,,,
DI,0,轴点动运行+,Jog_Add,7,HC,X07,,,,,,,,,,,,
DI,0,轴点动运行+,Jog_Add,7,HC,X07,,,,,,,,,,,,
DI,0,轴点动运行-,Jog_Sub,8,HC,X08,,,,,,,,,,,,
DI,0,轴点动运行-,Jog_Sub,8,HC,X08,,,,,,,,,,,,
...
...
source/DeviceLibrary/storeBean/inputBean/InputEquip.cs
查看文件 @
855dbaf
...
@@ -806,9 +806,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -806,9 +806,17 @@ namespace OnlineStore.DeviceLibrary
if
(
StoreManager
.
DisSecurityAccess
)
if
(
StoreManager
.
DisSecurityAccess
)
{
{
}
}
else
if
(
IOValue
(
IO_Type
.
Feeding_LDoor_Limit
).
Equals
(
IO_VALUE
.
LOW
))
{
SecurityAccessStop
(
"左侧防护门被打开"
);
}
else
if
(
IOValue
(
IO_Type
.
Feeding_RDoor_Limit
).
Equals
(
IO_VALUE
.
LOW
))
{
SecurityAccessStop
(
"右侧防护门被打开"
);
}
else
if
(
IOValue
(
IO_Type
.
SafetyRasterSignal
).
Equals
(
IO_VALUE
.
LOW
))
else
if
(
IOValue
(
IO_Type
.
SafetyRasterSignal
).
Equals
(
IO_VALUE
.
LOW
))
{
{
SecurityAccessStop
();
SecurityAccessStop
(
"光栅被遮挡"
);
}
}
}
}
else
if
(
CurrSecurityAccess
.
Equals
(
1
))
else
if
(
CurrSecurityAccess
.
Equals
(
1
))
...
@@ -827,7 +835,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -827,7 +835,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private
void
SecurityAccessStop
()
private
void
SecurityAccessStop
(
string
rason
)
{
{
if
(!
baseConfig
.
DIList
.
ContainsKey
(
IO_Type
.
SafetyRasterSignal
))
if
(!
baseConfig
.
DIList
.
ContainsKey
(
IO_Type
.
SafetyRasterSignal
))
{
{
...
@@ -853,13 +861,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -853,13 +861,13 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
))
if
(
MoveInfo
.
MoveType
.
Equals
(
MoveType
.
None
))
{
{
SetWarnMsg
(
"光栅被遮挡
,暂停运动"
);
SetWarnMsg
(
rason
+
"
,暂停运动"
);
LogUtil
.
info
(
$
"{Name}
光栅被遮挡
,暂停运动,MoveStop={MoveStop},{msg},稍后复位"
);
LogUtil
.
info
(
$
"{Name}
{rason}
,暂停运动,MoveStop={MoveStop},{msg},稍后复位"
);
}
}
else
else
{
{
SetWarnMsg
(
"光栅被遮挡
,暂停当前运动"
);
SetWarnMsg
(
rason
+
"
,暂停当前运动"
);
LogUtil
.
info
(
$
"{Name}
光栅被遮挡
,停止当前运动{MoveInfo.MoveType},{MoveInfo.MoveStep},{msg},稍后复位"
);
LogUtil
.
info
(
$
"{Name}
{rason}
,停止当前运动{MoveInfo.MoveType},{MoveInfo.MoveStep},{msg},稍后复位"
);
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论