Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8528c294
由
张东亮
编写于
2024-08-28 11:02:27 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
存储机构回原前检查是行走机构是否在安全位置,不在弹框
1 个父辈
1c941b95
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
2 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
8528c29
...
@@ -11,6 +11,7 @@ using System.Security.Policy;
...
@@ -11,6 +11,7 @@ using System.Security.Policy;
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
OnlineStore.DeviceLibrary
namespace
OnlineStore.DeviceLibrary
{
{
...
@@ -270,6 +271,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -270,6 +271,11 @@ namespace OnlineStore.DeviceLibrary
CloseAllAxis
();
CloseAllAxis
();
return
false
;
return
false
;
}
}
if
(
MoveAxis
.
GetAclPosition
()
<
Config
.
MoveAxis_SafePos
)
{
MessageBox
.
Show
(
$
"行走机构当前位置[{MoveAxis.GetAclPosition()}]小于安全位置[{Config.MoveAxis_SafePos}],无法回原,请先手动将行走机构移动到安全位置!"
);
return
false
;
}
if
(
IOValue
(
IO_Type
.
LeftDoor_Limit
).
Equals
(
IO_VALUE
.
HIGH
)
&&
if
(
IOValue
(
IO_Type
.
LeftDoor_Limit
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
RightDoor_Limit
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
RightDoor_Limit
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
BackDoor_Limit
).
Equals
(
IO_VALUE
.
HIGH
))
IOValue
(
IO_Type
.
BackDoor_Limit
).
Equals
(
IO_VALUE
.
HIGH
))
...
@@ -295,7 +301,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -295,7 +301,8 @@ namespace OnlineStore.DeviceLibrary
return
true
;
return
true
;
}
}
public
bool
paresetReset
=
false
;
public
bool
paresetReset
=
false
;
public
void
SafeReset
()
{
public
void
SafeReset
()
{
if
(
MoveInfo
.
MoveStep
==
StepEnum
.
Wait
)
if
(
MoveInfo
.
MoveStep
==
StepEnum
.
Wait
)
{
{
LogInfo
(
"料仓没有动作 开始重置"
);
LogInfo
(
"料仓没有动作 开始重置"
);
...
@@ -346,6 +353,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -346,6 +353,7 @@ namespace OnlineStore.DeviceLibrary
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
"检测到拉取机构上的拉钩检测信号亮,不允许复位!"
,
"警告"
);
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
"检测到拉取机构上的拉钩检测信号亮,不允许复位!"
,
"警告"
);
return
;
return
;
}
}
if
(!
CanReset
())
if
(!
CanReset
())
if
(
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
"检测到可能的撞机风险,请确认进出轴上是否有抽屉!若无抽屉在进出轴上,可继续复位,是否继续?"
,
"警告"
,
if
(
System
.
Windows
.
Forms
.
MessageBox
.
Show
(
"检测到可能的撞机风险,请确认进出轴上是否有抽屉!若无抽屉在进出轴上,可继续复位,是否继续?"
,
"警告"
,
System
.
Windows
.
Forms
.
MessageBoxButtons
.
YesNo
).
Equals
(
System
.
Windows
.
Forms
.
DialogResult
.
No
))
System
.
Windows
.
Forms
.
MessageBoxButtons
.
YesNo
).
Equals
(
System
.
Windows
.
Forms
.
DialogResult
.
No
))
...
@@ -767,7 +775,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -767,7 +775,8 @@ namespace OnlineStore.DeviceLibrary
int
SigLastTime
=
7
;
//5秒
int
SigLastTime
=
7
;
//5秒
protected
override
void
OnTimerProcess
()
protected
override
void
OnTimerProcess
()
{
{
if
(
ExecuteOutListProcess
())
{
if
(
ExecuteOutListProcess
())
{
LogInfo
(
"优先出库执行"
);
LogInfo
(
"优先出库执行"
);
return
;
return
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论