Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit dc9b148f
由
张东亮
编写于
2023-11-22 16:21:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
折叠门逻辑
1 个父辈
1991b45f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
33 行增加
和
29 行删除
DeviceLibrary/theMachine/MainMachine.cs
DeviceLibrary/theMachine/MainMachine.cs
查看文件 @
dc9b148
...
@@ -486,7 +486,7 @@ namespace DeviceLibrary
...
@@ -486,7 +486,7 @@ namespace DeviceLibrary
{
{
Msg
.
add
(
crc
.
GetString
(
L
.
x29_low_no_reel
,
"检测相机打开失败."
),
MsgLevel
.
alarm
);
Msg
.
add
(
crc
.
GetString
(
L
.
x29_low_no_reel
,
"检测相机打开失败."
),
MsgLevel
.
alarm
);
}
}
else
if
(!
h
.
Value
)
else
if
(!
h
.
Value
)
{
{
Msg
.
add
(
crc
.
GetString
(
L
.
x29_low_no_reel
,
"传感器未检测到单料口料盘."
),
MsgLevel
.
alarm
);
Msg
.
add
(
crc
.
GetString
(
L
.
x29_low_no_reel
,
"传感器未检测到单料口料盘."
),
MsgLevel
.
alarm
);
RobotManage
.
UserPause
(
crc
.
GetString
(
"x29_low_no_reel"
,
"传感器未检测到单料口料盘."
));
RobotManage
.
UserPause
(
crc
.
GetString
(
"x29_low_no_reel"
,
"传感器未检测到单料口料盘."
));
...
@@ -640,19 +640,23 @@ namespace DeviceLibrary
...
@@ -640,19 +640,23 @@ namespace DeviceLibrary
if
(
IOValue
(
IO_Type
.
AGV_OnPosition
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
StringDoor_Close
).
Equals
(
IO_VALUE
.
LOW
))
if
(
IOValue
(
IO_Type
.
AGV_OnPosition
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
StringDoor_Close
).
Equals
(
IO_VALUE
.
LOW
))
{
{
Msg
.
add
(
"料串门光栅被遮挡"
,
MsgLevel
.
warning
);
Msg
.
add
(
"料串门光栅被遮挡"
,
MsgLevel
.
warning
);
//if (lastStringSafetyStatus)
if
(
lastStringSafetyStatus
)
//{
{
// lastStringSafetyStatus = false;
lastStringSafetyStatus
=
false
;
// StringDoor.Pause();
StringDoor
.
Pause
();
//}
}
//ok = false;
ok
=
false
;
StringDoorSuddenStop
();
DeviceSuddenStop
();
}
else
if
(!
lastStringDoorSafetyStatus
)
{
// StringDoor.ResumeSingle();
lastStringDoorSafetyStatus
=
true
;
}
}
//else if (IOValue(IO_Type.AGV_OnPosition).Equals(IO_VALUE.HIGH))
//{
// if (!lastStringDoorSafetyStatus)
// {
// StringDoor.ResumeSingle();
// lastStringDoorSafetyStatus = true;
// }
//}
}
}
if
(!
ConfigHelper
.
Config
.
Get
(
"Device_Disable_DoorSafeCheck"
,
false
))
if
(!
ConfigHelper
.
Config
.
Get
(
"Device_Disable_DoorSafeCheck"
,
false
))
{
{
...
@@ -706,29 +710,29 @@ namespace DeviceLibrary
...
@@ -706,29 +710,29 @@ namespace DeviceLibrary
MoveInfo
.
List
.
ForEach
((
m
)
=>
{
m
.
CanWhileCount
=
5
;
});
MoveInfo
.
List
.
ForEach
((
m
)
=>
{
m
.
CanWhileCount
=
5
;
});
SafetyDevice
.
PauseAll
();
SafetyDevice
.
PauseAll
();
StringDoor
.
Pause
();
StringDoor
.
Pause
();
if
(
runStatus
==
RunStatus
.
HomeReset
)
{
ResetMoveInfo
.
NewMove
(
MoveStep
.
H01_HomeReset
);
}
}
}
bool
lastStringDoorSafetyStatus
=
true
;
void
StringDoorSuddenStop
()
{
if
(
lastStringDoorSafetyStatus
)
{
AxisBean
axis
=
StringDoor
.
axisBean
;
AxisBean
.
StopMultiAxis
(
new
List
<
AxisBean
>
{
axis
});
StringDoor
.
Pause
();
if
(
runStatus
==
RunStatus
.
HomeReset
)
if
(
runStatus
==
RunStatus
.
HomeReset
)
{
{
ResetMoveInfo
.
NewMove
(
MoveStep
.
H01_HomeReset
);
ResetMoveInfo
.
NewMove
(
MoveStep
.
H01_HomeReset
);
}
}
lastStringDoorSafetyStatus
=
false
;
}
}
}
}
//bool lastStringDoorSafetyStatus = true;
//void StringDoorSuddenStop()
//{
// if (lastStringDoorSafetyStatus)
// {
// AxisBean axis = StringDoor.axisBean;
// AxisBean.StopMultiAxis(new List<AxisBean> { axis });
// StringDoor.Pause();
// if (runStatus == RunStatus.HomeReset)
// {
// ResetMoveInfo.NewMove(MoveStep.H01_HomeReset);
// }
// lastStringDoorSafetyStatus = false;
// }
//}
/// <summary>
/// <summary>
/// 最后一次气压检测变为0的时间
/// 最后一次气压检测变为0的时间
/// </summary>
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论