Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3ca007c1
由
张东亮
编写于
2023-12-07 15:05:29 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加料串门光栅处理方式配置
1 个父辈
0145d73d
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
9 行删除
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine_AGV.cs
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
3ca007c
...
@@ -624,6 +624,10 @@ namespace DeviceLibrary
...
@@ -624,6 +624,10 @@ namespace DeviceLibrary
bool
lastSafeCheckStatus
=
true
;
bool
lastSafeCheckStatus
=
true
;
bool
lastStringSafetyStatus
=
true
;
bool
lastStringSafetyStatus
=
true
;
/// <summary>
/// 料串门光栅触发处理方式
/// </summary>
int
stringdoorSafetyProcStrategy
=
ConfigAppSettings
.
GetValue
(
"StringDoor_SafetyLightCurtainsProcStrategy"
,
1
,
"料串门光栅触发处理方式:0-设备急停;1-仅料串门停止"
);
bool
SafeCheck
()
bool
SafeCheck
()
{
{
bool
ok
=
true
;
bool
ok
=
true
;
...
@@ -648,18 +652,23 @@ namespace DeviceLibrary
...
@@ -648,18 +652,23 @@ namespace DeviceLibrary
lastStringSafetyStatus
=
false
;
lastStringSafetyStatus
=
false
;
StringDoor
.
Pause
();
StringDoor
.
Pause
();
}
}
if
(
stringdoorSafetyProcStrategy
==
0
)
{
ok
=
false
;
ok
=
false
;
DeviceSuddenStop
();
DeviceSuddenStop
();
}
}
//else if (IOValue(IO_Type.AGV_OnPosition).Equals(IO_VALUE.HIGH))
}
//{
else
if
(
IOValue
(
IO_Type
.
AGV_OnPosition
).
Equals
(
IO_VALUE
.
HIGH
))
// if (!lastStringDoorSafetyStatus)
{
// {
if
(
stringdoorSafetyProcStrategy
==
1
)
// StringDoor.ResumeSingle();
{
// lastStringDoorSafetyStatus = true;
if
(!
lastStringSafetyStatus
)
// }
{
StringDoor
.
ResumeSingle
();
//}
lastStringSafetyStatus
=
true
;
}
}
}
}
}
if
(!
ConfigHelper
.
Config
.
Get
(
"Device_Disable_DoorSafeCheck"
,
false
))
if
(!
ConfigHelper
.
Config
.
Get
(
"Device_Disable_DoorSafeCheck"
,
false
))
{
{
...
...
DeviceLibrary/theMachine/MainMachine_AGV.cs
查看文件 @
3ca007c
...
@@ -72,6 +72,8 @@ namespace DeviceLibrary
...
@@ -72,6 +72,8 @@ namespace DeviceLibrary
/// </summary>
/// </summary>
void
needEnter
(
NodeStatus
nodeStatus
)
void
needEnter
(
NodeStatus
nodeStatus
)
{
{
if
(!
UseAgv
())
return
;
if
(
nodeStatus
.
Equals
(
NodeStatus
.
NeedEnter
)
||
if
(
nodeStatus
.
Equals
(
NodeStatus
.
NeedEnter
)
||
nodeStatus
.
Equals
(
NodeStatus
.
NeedEnter_Empty
)
||
nodeStatus
.
Equals
(
NodeStatus
.
NeedEnter_Empty
)
||
nodeStatus
.
Equals
(
NodeStatus
.
NeedEnter_Full
))
nodeStatus
.
Equals
(
NodeStatus
.
NeedEnter_Full
))
...
@@ -91,6 +93,8 @@ namespace DeviceLibrary
...
@@ -91,6 +93,8 @@ namespace DeviceLibrary
/// </summary>
/// </summary>
void
needLeave
(
NodeStatus
nodeStatus
)
void
needLeave
(
NodeStatus
nodeStatus
)
{
{
if
(!
UseAgv
())
return
;
if
(
nodeStatus
.
Equals
(
NodeStatus
.
NeedLeave
)
||
if
(
nodeStatus
.
Equals
(
NodeStatus
.
NeedLeave
)
||
nodeStatus
.
Equals
(
NodeStatus
.
NeedLeave_Full
)
||
nodeStatus
.
Equals
(
NodeStatus
.
NeedLeave_Full
)
||
nodeStatus
.
Equals
(
NodeStatus
.
NeedLeave_Empty
))
nodeStatus
.
Equals
(
NodeStatus
.
NeedLeave_Empty
))
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论