Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 966c1238
由
张东亮
编写于
2023-06-06 14:09:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
97a9d879
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
15 行删除
source/ACPackingStore/FrmBox.cs
source/DeviceLibrary/PackingStore/AC_BOX_Bean_AutoInOutTest.cs
source/DeviceLibrary/PackingStore/AC_BOX_Bean_OutStore.cs
source/LoadCVSLibrary/position/CSVPositionReader.cs
source/ACPackingStore/FrmBox.cs
查看文件 @
966c123
...
@@ -17,6 +17,7 @@ using OnlineStore.DeviceLibrary;
...
@@ -17,6 +17,7 @@ using OnlineStore.DeviceLibrary;
using
System.IO.Ports
;
using
System.IO.Ports
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
CodeLibrary
;
using
CodeLibrary
;
using
System.Security.Cryptography
;
namespace
OnlineStore.ACPackingStore
namespace
OnlineStore.ACPackingStore
{
{
...
...
source/DeviceLibrary/PackingStore/AC_BOX_Bean_AutoInOutTest.cs
查看文件 @
966c123
...
@@ -397,6 +397,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -397,6 +397,7 @@ namespace OnlineStore.DeviceLibrary
AutoInOutPosTest
=
true
;
AutoInOutPosTest
=
true
;
StopAutoInOut
=
false
;
StopAutoInOut
=
false
;
CurPosIdx
=
0
;
CurPosIdx
=
0
;
curPosIdxs
.
Clear
();
AddTestReel
(
out
posId
);
AddTestReel
(
out
posId
);
InOutParam
param
=
new
InOutParam
();
InOutParam
param
=
new
InOutParam
();
param
.
PosID
=
posId
;
param
.
PosID
=
posId
;
...
...
source/DeviceLibrary/PackingStore/AC_BOX_Bean_OutStore.cs
查看文件 @
966c123
...
@@ -415,18 +415,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -415,18 +415,18 @@ namespace OnlineStore.DeviceLibrary
// if (IsRightShelfId(CurrShelfID, MoveInfo.MoveParam.realRfid))
// if (IsRightShelfId(CurrShelfID, MoveInfo.MoveParam.realRfid))
if
(
MoveInfo
.
MoveParam
.
rfid
.
Equals
(
LastRfidID
))
if
(
MoveInfo
.
MoveParam
.
rfid
.
Equals
(
LastRfidID
))
{
{
if
(
MoveInfo
.
MoveParam
.
cutReel
||
MoveInfo
.
MoveParam
.
urgentReel
)
//
if(MoveInfo.MoveParam.cutReel || MoveInfo.MoveParam.urgentReel)
{
//
{
//重新记录
//
//重新记录
LogRunStepInfo
(
$
"【LastRfidID={LastRfidID}】【{MoveInfo.MoveParam.rfid}】 同料架,紧急料或者分盘料只放一个位置,送出当前料架,稍后重新出库"
);
//
LogRunStepInfo($"【LastRfidID={LastRfidID}】【{MoveInfo.MoveParam.rfid}】 同料架,紧急料或者分盘料只放一个位置,送出当前料架,稍后重新出库");
waitOutStoreList
.
Enqueue
(
MoveInfo
.
MoveParam
);
//
waitOutStoreList.Enqueue(MoveInfo.MoveParam);
// MoveInfo.MoveParam.rfid = LastRfidID;
//
// MoveInfo.MoveParam.rfid = LastRfidID;
MoveInfo
.
NewMove
(
StoreMoveType
.
OutStore
,
LastOutParam
);
//
MoveInfo.NewMove(StoreMoveType.OutStore, LastOutParam);
//送出料架,并且记录出库信息,等会重新出库
//
//送出料架,并且记录出库信息,等会重新出库
StartShelfOut
();
//
StartShelfOut();
return
;
//
return;
}
//
}
else
//
else
{
{
LogRunStepInfo
(
$
"【LastRfidID={LastRfidID}】【{MoveInfo.MoveParam.rfid}】 同料架,开始取料"
);
LogRunStepInfo
(
$
"【LastRfidID={LastRfidID}】【{MoveInfo.MoveParam.rfid}】 同料架,开始取料"
);
SO_03_ToBagPosition
();
SO_03_ToBagPosition
();
...
...
source/LoadCVSLibrary/position/CSVPositionReader.cs
查看文件 @
966c123
...
@@ -187,11 +187,13 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -187,11 +187,13 @@ namespace OnlineStore.LoadCSVLibrary
{
{
var
result
=
AllPositionMap
[
tname
][
positionNum
];
var
result
=
AllPositionMap
[
tname
][
positionNum
];
if
(
result
==
null
)
return
null
;
if
(
result
==
null
)
return
null
;
int
idx
=
AllPositionMap
[
tname
].
Values
.
ToList
().
FindIndex
(
s
=>
s
.
PositionNum
.
Equals
(
positionNum
)
&&
s
.
BagWidth
==
result
.
BagWidth
&&
s
.
BagHigh
==
result
.
BagHigh
);
//s => s.BagWidth == result.BagWidth && s.BagHigh == result.BagHigh
var
allsameSize
=
AllPositionMap
[
tname
].
Values
.
ToList
().
FindAll
(
s
=>
s
.
BagWidth
==
result
.
BagWidth
&&
s
.
BagHigh
==
result
.
BagHigh
);
//s => s.BagWidth == result.BagWidth && s.BagHigh == result.BagHigh
List
<
T
>
allPos
=
new
List
<
T
>();
List
<
T
>
allPos
=
new
List
<
T
>();
for
(
int
i
=
idx
;
i
<
AllPositionMap
[
tname
].
Values
.
Count
;
i
++)
if
(
allsameSize
==
null
||
allsameSize
.
Count
==
0
)
{
return
null
;
}
int
idx
=
allsameSize
.
FindIndex
(
s
=>
s
.
PositionNum
.
Equals
(
positionNum
));
for
(
int
i
=
idx
;
i
<
allsameSize
.
Count
;
i
++)
{
{
allPos
.
Add
(
AllPositionMap
[
tname
].
Values
.
ToArray
()[
i
]);
allPos
.
Add
(
allsameSize
.
ToArray
()[
i
]);
}
}
return
allPos
;
return
allPos
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论