Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
SO1057-XLRStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e13d1fbd
由
张东亮
编写于
2023-05-09 10:58:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
按顺序出库
1 个父辈
1ddd7eb7
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
94 行增加
和
94 行删除
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_InExecute.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
source/DeviceLibrary/storeBean/boxBean/BoxEquip.cs
查看文件 @
e13d1fb
...
@@ -97,7 +97,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -97,7 +97,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// <summary>
/// B面等待出库的队列
/// B面等待出库的队列
/// </summary>
/// </summary>
public
ConcurrentQueue
<
InOutParam
>
waitBOutStoreList
=
new
ConcurrentQueue
<
InOutParam
>();
//
public ConcurrentQueue<InOutParam> waitBOutStoreList = new ConcurrentQueue<InOutParam>();
//库位表
//库位表
public
List
<
string
>
PositionNumList
;
public
List
<
string
>
PositionNumList
;
/// <summary>
/// <summary>
...
@@ -803,7 +803,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -803,7 +803,7 @@ namespace OnlineStore.DeviceLibrary
return
;
return
;
}
}
}
}
else
if
(
CheckAOutDoor
())
else
//
if (CheckAOutDoor())
{
{
InOutParam
param
=
null
;
InOutParam
param
=
null
;
bool
result
=
waitAOutStoreList
.
TryDequeue
(
out
param
);
bool
result
=
waitAOutStoreList
.
TryDequeue
(
out
param
);
...
@@ -815,31 +815,31 @@ namespace OnlineStore.DeviceLibrary
...
@@ -815,31 +815,31 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
}
}
if
(
waitBOutStoreList
.
Count
>
0
)
//
//
if (waitBOutStoreList.Count > 0)//
{
//
{
if
(
CloseOutStoreCheck
)
//
if (CloseOutStoreCheck)
{
//
{
InOutParam
param
=
null
;
//
InOutParam param = null;
bool
result
=
waitBOutStoreList
.
TryDequeue
(
out
param
);
//
bool result = waitBOutStoreList.TryDequeue(out param);
if
(
result
&&
param
!=
null
)
//
if (result && param != null)
{
//
{
LogInfo
(
"执行B面排队的出库【"
+
param
.
PosInfo
.
ToStr
()
+
"】"
);
//
LogInfo("执行B面排队的出库【" + param.PosInfo.ToStr() + "】");
StartExecuctOut
(
param
);
//
StartExecuctOut(param);
return
;
//
return;
}
//
}
}
//
}
else
if
(
CheckBOutDoor
())
//
else if (CheckBOutDoor())
{
//
{
InOutParam
param
=
null
;
//
InOutParam param = null;
bool
result
=
waitBOutStoreList
.
TryDequeue
(
out
param
);
//
bool result = waitBOutStoreList.TryDequeue(out param);
if
(
result
&&
param
!=
null
)
//
if (result && param != null)
{
//
{
LogInfo
(
"执行B面排队的出库【"
+
param
.
PosInfo
.
ToStr
()
+
"】"
);
//
LogInfo("执行B面排队的出库【" + param.PosInfo.ToStr() + "】");
StartExecuctOut
(
param
);
//
StartExecuctOut(param);
return
;
//
return;
}
//
}
}
//
}
}
//
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_ConnectServerTimer.cs
查看文件 @
e13d1fb
...
@@ -399,7 +399,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -399,7 +399,7 @@ namespace OnlineStore.DeviceLibrary
//判断排队列表中是否已存在
//判断排队列表中是否已存在
List
<
InOutParam
>
reviceList
=
new
List
<
InOutParam
>();
List
<
InOutParam
>
reviceList
=
new
List
<
InOutParam
>();
reviceList
.
AddRange
(
waitAOutStoreList
);
reviceList
.
AddRange
(
waitAOutStoreList
);
reviceList
.
AddRange
(
waitBOutStoreList
);
//
reviceList.AddRange(waitBOutStoreList);
reviceList
=
(
from
m
in
reviceList
where
m
.
PosInfo
.
PosId
.
Equals
(
posId
)
select
m
).
ToList
<
InOutParam
>();
reviceList
=
(
from
m
in
reviceList
where
m
.
PosInfo
.
PosId
.
Equals
(
posId
)
select
m
).
ToList
<
InOutParam
>();
if
(
reviceList
.
Count
>
0
)
if
(
reviceList
.
Count
>
0
)
{
{
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_InExecute.cs
查看文件 @
e13d1fb
...
@@ -445,14 +445,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -445,14 +445,14 @@ namespace OnlineStore.DeviceLibrary
{
{
InOutParam
inOut
=
new
InOutParam
(
new
InOutPosInfo
(
MoveInfo
.
MoveParam
.
PosInfo
.
barcode
,
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
));
InOutParam
inOut
=
new
InOutParam
(
new
InOutPosInfo
(
MoveInfo
.
MoveParam
.
PosInfo
.
barcode
,
MoveInfo
.
MoveParam
.
PosInfo
.
PosId
));
LogInfo
(
$
"入库 {MoveInfo.SLog}:验证入库完成失败,将该库位出库[{inOut.PosInfo.ToStr()}][{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
LogInfo
(
$
"入库 {MoveInfo.SLog}:验证入库完成失败,将该库位出库[{inOut.PosInfo.ToStr()}][{MoveInfo.MoveParam.PosInfo.GetPosSide()}面]"
);
if
(
CheckASide
())
//
if (CheckASide())
{
{
waitAOutStoreList
.
Enqueue
(
inOut
);
waitAOutStoreList
.
Enqueue
(
inOut
);
}
}
else
//
else
{
//
{
waitBOutStoreList
.
Enqueue
(
inOut
);
//
waitBOutStoreList.Enqueue(inOut);
}
//
}
}
}
break
;
break
;
case
StepEnum
.
SI_19_InoutBack
:
case
StepEnum
.
SI_19_InoutBack
:
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_OutExecute.cs
查看文件 @
e13d1fb
...
@@ -174,52 +174,52 @@ namespace OnlineStore.DeviceLibrary
...
@@ -174,52 +174,52 @@ namespace OnlineStore.DeviceLibrary
break
;
break
;
case
StepEnum
.
SO_13_InoutBack
:
case
StepEnum
.
SO_13_InoutBack
:
//检查另一面是否有出库任务
//检查另一面是否有出库任务
if
(
MoveInfo
.
MoveParam
.
PosInfoBack
==
null
)
//
if (MoveInfo.MoveParam.PosInfoBack == null)
{
//
{
if
(
CheckASide
(
MoveInfo
.
MoveParam
))
//
if (CheckASide(MoveInfo.MoveParam))
{
//
{
if
(
waitBOutStoreList
.
Count
>
0
&&
CheckBOutDoor
())
//
if (waitBOutStoreList.Count > 0 && CheckBOutDoor())
{
//
{
if
(
waitBOutStoreList
.
TryDequeue
(
out
InOutParam
inOutParam
))
//B面料叉空且B面出料口无料,有出库任务
//
if (waitBOutStoreList.TryDequeue(out InOutParam inOutParam))//B面料叉空且B面出料口无料,有出库任务
{
//
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_01_PullAxis_Ready
);
//
MoveInfo.NextMoveStep(StepEnum.SO_01_PullAxis_Ready);
LogInfo
(
$
"存储机构-出库 {MoveInfo.SLog}:A面切换到B面,B面取料[{inOutParam.PosInfo.barcode}]"
);
//
LogInfo($"存储机构-出库 {MoveInfo.SLog}:A面切换到B面,B面取料[{inOutParam.PosInfo.barcode}]");
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
//
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
MoveInfo
.
MoveParam
.
PosInfoBack
=
MoveInfo
.
MoveParam
.
PosInfo
.
ToCopy
();
//
MoveInfo.MoveParam.PosInfoBack = MoveInfo.MoveParam.PosInfo.ToCopy();
MoveInfo
.
MoveParam
.
PosInfo
=
inOutParam
.
PosInfo
.
ToCopy
();
//
MoveInfo.MoveParam.PosInfo = inOutParam.PosInfo.ToCopy();
MoveInfo
.
MoveParam
.
MoveP
=
new
LineMoveP
(
Config
,
inOutParam
.
PosInfo
.
PosId
);
//
MoveInfo.MoveParam.MoveP = new LineMoveP(Config, inOutParam.PosInfo.PosId);
PullAxis_Inout_To_Cam
();
//
PullAxis_Inout_To_Cam();
return
;
//
return;
}
//
}
}
//
}
}
//
}
else
//
else
{
//
{
if
(
waitAOutStoreList
.
Count
>
0
&&
CheckAOutDoor
())
//
if (waitAOutStoreList.Count > 0 && CheckAOutDoor())
{
//
{
if
(
waitAOutStoreList
.
TryDequeue
(
out
InOutParam
inOutParam
))
//
if (waitAOutStoreList.TryDequeue(out InOutParam inOutParam))
{
//
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_01_PullAxis_Ready
);
//
MoveInfo.NextMoveStep(StepEnum.SO_01_PullAxis_Ready);
LogInfo
(
$
"存储机构-出库 {MoveInfo.SLog}:B面切换到A面,A面取料[{inOutParam.PosInfo.barcode}]"
);
//
LogInfo($"存储机构-出库 {MoveInfo.SLog}:B面切换到A面,A面取料[{inOutParam.PosInfo.barcode}]");
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
//
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
MoveInfo
.
MoveParam
.
PosInfoBack
=
MoveInfo
.
MoveParam
.
PosInfo
.
ToCopy
();
//
MoveInfo.MoveParam.PosInfoBack = MoveInfo.MoveParam.PosInfo.ToCopy();
MoveInfo
.
MoveParam
.
PosInfo
=
inOutParam
.
PosInfo
.
ToCopy
();
//
MoveInfo.MoveParam.PosInfo = inOutParam.PosInfo.ToCopy();
MoveInfo
.
MoveParam
.
MoveP
=
new
LineMoveP
(
Config
,
inOutParam
.
PosInfo
.
PosId
);
//
MoveInfo.MoveParam.MoveP = new LineMoveP(Config, inOutParam.PosInfo.PosId);
PullAxis_Inout_To_Cam
();
//
PullAxis_Inout_To_Cam();
return
;
//
return;
}
//
}
}
//
}
}
//
}
}
//
}
else
//两夹爪都有料
//
else//两夹爪都有料
{
//
{
if
(
MoveInfo
.
MoveParam
.
PosInfoBack
.
PlateW
==
MoveInfo
.
MoveParam
.
PosInfo
.
PlateW
&&
//
if(MoveInfo.MoveParam.PosInfoBack.PlateW==MoveInfo.MoveParam.PosInfo.PlateW &&
MoveInfo
.
MoveParam
.
PosInfoBack
.
PlateH
==
MoveInfo
.
MoveParam
.
PosInfo
.
PlateH
)
//
MoveInfo.MoveParam.PosInfoBack.PlateH == MoveInfo.MoveParam.PosInfo.PlateH)
{
//
{
MoveInfo
.
NextMoveStep
(
StepEnum
.
SOB_14_GetReels_Ready
);
//
MoveInfo.NextMoveStep(StepEnum.SOB_14_GetReels_Ready);
return
;
//
return;
}
//
}
}
//
}
//直接出库,执行该步骤的情况:1.另一个料叉有料;2.另一面有出库任务但出料口有料;3.另一面没有出库任务;
//直接出库,执行该步骤的情况:1.另一个料叉有料;2.另一面有出库任务但出料口有料;3.另一面没有出库任务;
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_14_GetReels_Ready
);
MoveInfo
.
NextMoveStep
(
StepEnum
.
SO_14_GetReels_Ready
);
MoveAxisToP1
();
MoveAxisToP1
();
...
...
source/DeviceLibrary/storeBean/boxBean/BoxEquip_Partial.cs
查看文件 @
e13d1fb
...
@@ -1169,19 +1169,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1169,19 +1169,19 @@ namespace OnlineStore.DeviceLibrary
List
<
InOutParam
>
reviceList
=
new
List
<
InOutParam
>();
List
<
InOutParam
>
reviceList
=
new
List
<
InOutParam
>();
reviceList
.
AddRange
(
waitAOutStoreList
);
reviceList
.
AddRange
(
waitAOutStoreList
);
reviceList
.
AddRange
(
waitBOutStoreList
);
//
reviceList.AddRange(waitBOutStoreList);
reviceList
=
(
from
m
in
reviceList
where
m
.
PosInfo
.
PosId
.
Equals
(
param
.
PosInfo
.
PosId
)
select
m
).
ToList
<
InOutParam
>();
reviceList
=
(
from
m
in
reviceList
where
m
.
PosInfo
.
PosId
.
Equals
(
param
.
PosInfo
.
PosId
)
select
m
).
ToList
<
InOutParam
>();
if
(
reviceList
.
Count
==
0
)
if
(
reviceList
.
Count
==
0
)
{
{
LogInfo
(
" 执行出库【"
+
param
.
PosInfo
.
ToStr
()
+
"】失败,加入等待队列"
);
LogInfo
(
" 执行出库【"
+
param
.
PosInfo
.
ToStr
()
+
"】失败,加入等待队列"
);
if
(
param
.
PosInfo
.
GetPosSide
().
Equals
(
"A"
))
//
if (param.PosInfo.GetPosSide().Equals("A"))
{
{
waitAOutStoreList
.
Enqueue
(
param
);
waitAOutStoreList
.
Enqueue
(
param
);
}
}
else
if
(
param
.
PosInfo
.
GetPosSide
().
Equals
(
"B"
))
//
else if (param.PosInfo.GetPosSide().Equals("B"))
{
//
{
waitBOutStoreList
.
Enqueue
(
param
);
//
waitBOutStoreList.Enqueue(param);
}
//
}
}
}
}
}
}
}
...
...
source/XLRStoreClient/boxForm/FrmBoxEquip.cs
查看文件 @
e13d1fb
...
@@ -232,15 +232,15 @@ namespace OnlineStore.XLRStore
...
@@ -232,15 +232,15 @@ namespace OnlineStore.XLRStore
text
+=
param
.
PosInfo
.
ToStr
()
+
"\r"
;
text
+=
param
.
PosInfo
.
ToStr
()
+
"\r"
;
}
}
}
}
List
<
InOutParam
>
psB
=
new
List
<
InOutParam
>(
boxBean
.
waitBOutStoreList
);
//
List<InOutParam> psB = new List<InOutParam>(boxBean.waitBOutStoreList);
if
(
psB
.
Count
>
0
)
//
if (psB.Count > 0)
{
//
{
text
=
"B面等待出库列表:\r"
;
//
text = "B面等待出库列表:\r";
foreach
(
InOutParam
param
in
psB
)
//
foreach (InOutParam param in psB)
{
//
{
text
+=
param
.
PosInfo
.
ToStr
()
+
"\r"
;
//
text += param.PosInfo.ToStr() + "\r";
}
//
}
}
//
}
}
}
}
}
if
(!
lblInstoreList
.
Text
.
Equals
(
text
))
if
(!
lblInstoreList
.
Text
.
Equals
(
text
))
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论