Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit bb4f9d04
由
张东亮
编写于
2025-09-05 11:13:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
15a7f9e0
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
47 行增加
和
35 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
bb4f9d0
...
@@ -696,7 +696,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -696,7 +696,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H06_1_OtherAxis_Home
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H06_1_OtherAxis_Home
);
LogInfo
(
$
"复位 {MoveInfo.SLog}:AB面压紧轴回原点"
);
LogInfo
(
$
"复位 {MoveInfo.SLog}:AB面压紧轴回原点"
);
ComAxis_A
.
HomeMove
(
MoveInfo
);
ComAxis_A
.
HomeMove
(
MoveInfo
);
ComAxis_B
.
HomeMove
(
MoveInfo
);
ComAxis_B
.
HomeMove
(
MoveInfo
);
break
;
break
;
case
StepEnum
.
BOX_H06_1_OtherAxis_Home
:
case
StepEnum
.
BOX_H06_1_OtherAxis_Home
:
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H06_2_OtherAxis_Home
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
BOX_H06_2_OtherAxis_Home
);
...
@@ -825,52 +825,64 @@ namespace OnlineStore.DeviceLibrary
...
@@ -825,52 +825,64 @@ namespace OnlineStore.DeviceLibrary
//}
//}
//if (!runStatus.Equals(RunStatus.Runing))
//if (!runStatus.Equals(RunStatus.Runing))
// return;
// return;
int
errSeconds
=
20
;
TimeSpan
timeSpanA
=
DateTime
.
Now
-
dtUpperA
;
TimeSpan
timeSpanA
=
DateTime
.
Now
-
dtUpperA
;
TimeSpan
tsUppA
=
DateTime
.
Now
-
errUpperA
;
TimeSpan
tsUppA
=
DateTime
.
Now
-
errUpperA
;
TimeSpan
tsUnA
=
DateTime
.
Now
-
errUnderA
;
TimeSpan
tsUnA
=
DateTime
.
Now
-
errUnderA
;
TimeSpan
tsUppB
=
DateTime
.
Now
-
errUpperB
;
TimeSpan
tsUppB
=
DateTime
.
Now
-
errUpperB
;
TimeSpan
tsUnB
=
DateTime
.
Now
-
errUnderB
;
TimeSpan
tsUnB
=
DateTime
.
Now
-
errUnderB
;
int
errSeconds
=
10
;
if
(
StoreManager
.
XLRStore
.
inputEquip
.
runStatus
==
RunStatus
.
Reset
if
(
IOValue
(
IO_Type
.
FeedingA_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
AInStoreInfo
!=
null
)
||
StoreManager
.
XLRStore
.
inputEquip
.
runStatus
==
RunStatus
.
HomeMoving
)
{
if
(
tsUppA
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"A上进料暂存区有料盘,但信号未亮"
);
}
else
{
{
ClearSpecifiedAlarm
(
"B上进料暂存区有料盘,但信号未亮"
);
ClearSpecifiedAlarm
(
"B下出料暂存区有料盘,但信号未亮"
);
ClearSpecifiedAlarm
(
"A上进料暂存区有料盘,但信号未亮"
);
ClearSpecifiedAlarm
(
"A上进料暂存区有料盘,但信号未亮"
);
errUpperA
=
DateTime
.
Now
;
}
if
(
IOValue
(
IO_Type
.
FeedingA_Outstore_UnderArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
AOutStoreInfo
!=
null
)
{
if
(
tsUnA
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"A下出料暂存区有料盘,但信号未亮"
);
}
else
{
ClearSpecifiedAlarm
(
"A下出料暂存区有料盘,但信号未亮"
);
ClearSpecifiedAlarm
(
"A下出料暂存区有料盘,但信号未亮"
);
errUnderA
=
DateTime
.
Now
;
}
if
(
IOValue
(
IO_Type
.
FeedingB_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
BInStoreInfo
!=
null
)
{
if
(
tsUppB
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"B上进料暂存区有料盘,但信号未亮"
);
}
else
{
ClearSpecifiedAlarm
(
"B上进料暂存区有料盘,但信号未亮"
);
errUpperB
=
DateTime
.
Now
;
}
if
(
IOValue
(
IO_Type
.
FeedingB_Outstore_UnderArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
BOutStoreInfo
!=
null
)
{
if
(
tsUnB
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"B下出料暂存区有料盘,但信号未亮"
);
}
}
else
else
{
{
ClearSpecifiedAlarm
(
"B下出料暂存区有料盘,但信号未亮"
);
if
(
IOValue
(
IO_Type
.
FeedingA_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
AInStoreInfo
!=
null
)
errUnderB
=
DateTime
.
Now
;
{
if
(
tsUppA
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"A上进料暂存区有料盘,但信号未亮"
);
}
else
{
ClearSpecifiedAlarm
(
"A上进料暂存区有料盘,但信号未亮"
);
errUpperA
=
DateTime
.
Now
;
}
if
(
IOValue
(
IO_Type
.
FeedingA_Outstore_UnderArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
AOutStoreInfo
!=
null
)
{
if
(
tsUnA
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"A下出料暂存区有料盘,但信号未亮"
);
}
else
{
ClearSpecifiedAlarm
(
"A下出料暂存区有料盘,但信号未亮"
);
errUnderA
=
DateTime
.
Now
;
}
if
(
IOValue
(
IO_Type
.
FeedingB_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
BInStoreInfo
!=
null
)
{
if
(
tsUppB
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"B上进料暂存区有料盘,但信号未亮"
);
}
else
{
ClearSpecifiedAlarm
(
"B上进料暂存区有料盘,但信号未亮"
);
errUpperB
=
DateTime
.
Now
;
}
if
(
IOValue
(
IO_Type
.
FeedingB_Outstore_UnderArea_ReelCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
BufferDataManager
.
BOutStoreInfo
!=
null
)
{
if
(
tsUnB
.
TotalSeconds
>
errSeconds
)
SetWarnMsg
(
"B下出料暂存区有料盘,但信号未亮"
);
}
else
{
ClearSpecifiedAlarm
(
"B下出料暂存区有料盘,但信号未亮"
);
errUnderB
=
DateTime
.
Now
;
}
}
}
if
(!
runStatus
.
Equals
(
RunStatus
.
Runing
))
if
(!
runStatus
.
Equals
(
RunStatus
.
Runing
))
return
;
return
;
if
(
IOValue
(
IO_Type
.
FeedingA_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BufferDataManager
.
AInStoreInfo
!=
null
if
(
IOValue
(
IO_Type
.
FeedingA_Instore_UpperArea_ReelCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BufferDataManager
.
AInStoreInfo
!=
null
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论