Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC30-AutoInOutStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f04e2889
由
刘韬
编写于
2021-08-04 09:51:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复任务重复, 翻译文字错误
1 个父辈
86674fa8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
47 行增加
和
6 行删除
source/ACSingleStore/Properties/Resource.en-US.resx
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
source/ACSingleStore/Properties/Resource.en-US.resx
查看文件 @
f04e288
...
...
@@ -1210,6 +1210,6 @@
<value> debug mode </value>
</data>
<data name="InstoreInfo" xml:space="preserve">
<value> batch storage and retrieval info: sorage: </value>
<value> batch storage and retrieval info: s
t
orage: </value>
</data>
</root>
\ No newline at end of file
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
f04e288
...
...
@@ -1326,6 +1326,10 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 执行排队中的出库【"
+
currInOutFixture
.
ToStr
()
+
"】失败,重新加入等待队列"
);
AddWaitOutInfo
(
currInOutFixture
);
}
else
{
TestADelWaitOutInfo
(
currInOutFixture
);
}
}
}
}
...
...
@@ -2027,6 +2031,10 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
LOGGER
,
StoreName
+
" 执行出库【"
+
currInOutFixture
.
ToStr
()
+
"】失败,加入等待队列"
);
AddWaitOutInfo
(
currInOutFixture
);
}
else
{
TestADelWaitOutInfo
(
currInOutFixture
);
}
if
(
autoNext
)
{
autoMsg
=
ResourceControl
.
GetString
(
"自动出库"
,
"自动出库"
)
+
":"
+
posId
;
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean_Partial.cs
查看文件 @
f04e288
...
...
@@ -923,7 +923,7 @@ namespace OnlineStore.DeviceLibrary
return
;
}
}
OutStoreLog
(
"出库:SO_03 走到库位,压紧轴至P3(压紧前点) ,旋转轴至P2(库位点),升降轴至P5(库位出库前点
)"
);
OutStoreLog
(
$
"出库:SO_03 走到库位,压紧轴至P3(压紧前点) ,旋转轴至P2(库位点:{StoreMove.MoveParam.MoveP.Middle_P2}),升降轴至P5(库位出库前点:{StoreMove.MoveParam.MoveP.UpDown_P5}
)"
);
ComMoveToPosition
(
moveP
.
ComPress_P3
,
Config
.
CompAxis_P3_Speed
);
ACAxisMove
(
Config
.
Middle_Axis
,
StoreMove
.
MoveParam
.
MoveP
.
Middle_P2
,
Config
.
MiddleAxis_P2_Speed
);
...
...
@@ -1078,8 +1078,10 @@ namespace OnlineStore.DeviceLibrary
storeStatus
=
StoreStatus
.
StoreOnline
;
LogUtil
.
info
(
LOGGER
,
"【"
+
posId
+
"】出库结束,耗时【"
+
FormUtil
.
GetSpanStr
(
InOutWatch
.
Elapsed
)
+
"】累积出库: "
+
AutomaticBaiting
.
BatchOutStoreCount
+
"盘共"
+
AutomaticBaiting
.
BatchOutStoreHeight
+
"mm"
);
StoreMove
.
EndMove
();
preProTime
=
DateTime
.
Now
;
storeRunStatus
=
StoreRunStatus
.
Runing
;
InOutEndProcess
(
StoreMoveType
.
OutStore
);
}
else
{
...
...
@@ -1231,8 +1233,21 @@ namespace OnlineStore.DeviceLibrary
public
void
AddWaitOutInfo
(
FixtureCodeInfo
code
)
{
lock
(
waitOutListLock
)
{
//判断已经有此库位号的出库信息,直接抛弃不处理
if
(
StoreMove
.
MoveParam
!=
null
)
{
if
(
StoreMove
.
MoveParam
.
PositionNum
==
code
.
PosId
)
{
LogUtil
.
info
(
"【"
+
code
.
PosId
+
"】 该任务已经在执行,直接抛弃"
);
return
;
}
}
lock
(
waitOutListLock
)
{
//判断已经有此库位号的出库信息,直接抛弃不处理
List
<
FixtureCodeInfo
>
list
=
(
from
m
in
waitOutStoreList
where
m
.
PosId
.
Equals
(
code
.
PosId
)
select
m
).
ToList
<
FixtureCodeInfo
>();
if
(
list
.
Count
>
0
)
{
...
...
@@ -1244,7 +1259,20 @@ namespace OnlineStore.DeviceLibrary
}
}
}
public
void
TestADelWaitOutInfo
(
FixtureCodeInfo
code
)
{
lock
(
waitOutListLock
)
{
//判断已经有此库位号的出库信息,直接抛弃不处理
List
<
FixtureCodeInfo
>
list
=
(
from
m
in
waitOutStoreList
where
m
.
PosId
.
Equals
(
code
.
PosId
)
select
m
).
ToList
<
FixtureCodeInfo
>();
if
(
list
.
Count
>
0
)
{
LogUtil
.
info
(
$
"当前队列任务数:{waitOutStoreList.Count} 【"
+
code
.
ToStr
()
+
"】 【"
+
code
.
PosId
+
"】发现出库队列有重复任务,删除该队列任务"
);
waitOutStoreList
.
Remove
(
list
[
0
]);
LogUtil
.
info
(
$
"waitOutStoreList:{waitOutStoreList.Count}"
);
}
}
}
#
region
自动出入库循环代码
public
string
GetAutoPosid
(
bool
isNext
)
{
...
...
source/DeviceLibrary/acSingleStore/AutomaticBaiting.cs
查看文件 @
f04e288
...
...
@@ -450,6 +450,7 @@ namespace OnlineStore.DeviceLibrary
LastWidth
=
StoreManager
.
Config
.
Default_TrayWidth
;
if
(
LastWidth
.
Equals
(
0
))
{
InStoreLog
(
$
" 尺寸传感器状态 13:{IOManager.IOValue(IO_Type.WidthCheck2)},7:{IOManager.IOValue(IO_Type.WidthCheck1)}"
);
//料盘检测2亮为13寸盘,其他都认为是7寸盘
if
(
IOManager
.
IOValue
(
IO_Type
.
WidthCheck2
).
Equals
(
IO_VALUE
.
HIGH
))
{
...
...
@@ -461,7 +462,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
LastWidth
=
1
3
;
LastWidth
=
1
00
;
}
}
LastHeight
=
GetHeight
();
...
...
@@ -473,6 +474,10 @@ namespace OnlineStore.DeviceLibrary
InStoreLog
(
" 未扫到二维码尺寸:【"
+
LastWidth
+
"*"
+
LastHeight
+
"】,将料盘送出,等待料盘拿走"
);
SendTrayOut
();
}
//else if (LastWidth == 0) {
// InStoreLog(" 未检测到料盘宽度:【" + LastWidth + "*" + LastHeight + "】,将料盘送出,等待料盘拿走");
// SendTrayOut();
//}
else
{
StoreMove
.
NextMoveStep
(
StoreMoveStep
.
AUTO_I08_GetPosId
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论