Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ca66a198
由
LN
编写于
2023-08-14 17:35:56 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.HY15处,紧急料一盘去出料四,一盘去HY17
2.HY9处,如果进仓15和进仓16都有托盘,空托盘直接横移
1 个父辈
765dacc6
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
90 行增加
和
9 行删除
source/AssemblyLineClient/记录.txt
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/AssemblyLineClient/记录.txt
查看文件 @
ca66a19
20230811
1.HY15处,紧急料一盘去出料四,一盘去HY17
2.HY9处,如果进仓15和进仓16都有托盘,空托盘直接横移
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
查看文件 @
ca66a19
...
...
@@ -934,6 +934,9 @@ namespace OnlineStore.DeviceLibrary
OL_StopCylinderUp
(
MoveInfo
);
}
}
private
bool
preToOut4
=
false
;
//HY15上盘分盘料去出料四,后面一盘分配料去NG箱
private
bool
TrayNeedHY
(
int
trayNum
)
{
try
...
...
@@ -1028,7 +1031,18 @@ namespace OnlineStore.DeviceLibrary
}
}
}
else
{
//如果进仓15,进仓16有料,空料盘直接横移
MoveEquip
move15
=
LineManager
.
Line
.
MoveEquipMap
[
15
];
MoveEquip
move16
=
LineManager
.
Line
.
MoveEquipMap
[
16
];
if
(
move15
.
hasTray
()
&&
move16
.
hasTray
())
{
return
true
;
}
}
}
else
if
(
DeviceID
.
Equals
(
215
))
{
...
...
@@ -1041,21 +1055,42 @@ namespace OnlineStore.DeviceLibrary
{
return
true
;
}
if
(
tray
.
InOrOutStore
.
Equals
(
2
)
&&
(!
tray
.
InoutPar
.
cutReel
)
&&
(!
tray
.
InoutPar
.
urgentReel
))
//if (tray.InOrOutStore.Equals(2) && (!tray.InoutPar.cutReel) && (!tray.InoutPar.urgentReel))
if
(
tray
.
InOrOutStore
.
Equals
(
2
))
{
return
true
;
if
(
tray
.
InoutPar
.
cutReel
||
tray
.
InoutPar
.
urgentReel
)
{
if
(
preToOut4
)
{
LogUtil
.
info
(
Name
+
"分盘紧急料,上一盘去出料四,这一盘需要横移: "
+
tray
.
InoutPar
.
ToShortStr
());
preToOut4
=
false
;
return
true
;
}
else
{
preToOut4
=
true
;
return
false
;
}
}
else
{
return
true
;
}
}
else
if
(
tray
.
InOrOutStore
.
Equals
(
1
))
{
{
int
storeId
=
tray
.
InoutPar
.
GetStoreId
();
List
<
int
>
instoreId
=
new
List
<
int
>
{
11
,
12
,
23
,
24
};
if
(!
instoreId
.
Contains
(
storeId
))
{
return
true
;
}
}
}
else
if
(
tray
.
InOrOutStore
.
Equals
(
2
)
&&
tray
.
InoutPar
.
urgentReel
)
else
if
(
tray
.
InOrOutStore
.
Equals
(
2
)
&&
tray
.
InoutPar
.
urgentReel
)
{
pandianliao
++;
if
(
pandianliao
>=
2
)
...
...
@@ -1063,7 +1098,7 @@ namespace OnlineStore.DeviceLibrary
bool
needhy
=
SServerManager
.
canReelToBelt
(
Name
,
tray
.
InoutPar
.
WareCode
,
false
);
if
(
needhy
)
{
LogUtil
.
info
(
Name
+
"盘点料["
+
pandianliao
+
"]:需要横移 "
+
tray
.
InoutPar
.
ToShortStr
());
LogUtil
.
info
(
Name
+
"盘点料["
+
pandianliao
+
"]:需要横移 "
+
tray
.
InoutPar
.
ToShortStr
());
pandianliao
=
0
;
return
true
;
}
...
...
@@ -1163,16 +1198,25 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
MoveParam
=
param
;
return
true
;
}
else
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
(
param
.
urgentReel
||
param
.
cutReel
)
&&
this
.
DeviceID
.
Equals
(
216
))
{
string
lName
=
param
.
urgentReel
?
"紧急料"
:
"盘点料"
;
//盘点料或紧急料直接到NG箱
LogInfo
(
$
" C1->出料线, {lName} "
+
""
+
param
.
ToStr
());
MoveInfo
.
MoveParam
=
param
;
return
true
;
}
else
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
param
.
urgentReel
&&
this
.
DeviceID
.
Equals
(
216
))
{
bool
needToBielt
=
SServerManager
.
canReelToBelt
(
Name
,
trayInfo
.
InoutPar
.
WareCode
,
false
);
bool
needToBielt
=
SServerManager
.
canReelToBelt
(
Name
,
trayInfo
.
InoutPar
.
WareCode
,
false
);
if
(
needToBielt
)
{
//盘点料到NG箱
LogInfo
(
$
" C1->出料线,canReelToBelt={needToBielt} ,:盘点料"
+
""
+
param
.
ToStr
());
MoveInfo
.
MoveParam
=
param
;
return
true
;
}
}
}
//else if (trayInfo.InOrOutStore.Equals(ReelType.OutStore) && param.urgentReel && this.DeviceID.Equals(216))
//{
...
...
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
查看文件 @
ca66a19
...
...
@@ -513,6 +513,13 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
MoveParam
=
inoup
;
return
true
;
}
else
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
inoup
.
cutReel
&&
this
.
DeviceID
.
Equals
(
217
))
{
//盘点料到NG箱
LogInfo
(
" 分盘料->NG箱"
+
""
+
inoup
.
ToStr
());
SecondMoveInfo
.
MoveParam
=
inoup
;
return
true
;
}
else
if
(
trayInfo
.
IsFull
&&
trayInfo
.
InoutPar
.
IsNG
&&
this
.
DeviceID
.
Equals
(
217
)
&&
trayInfo
.
InOrOutStore
.
Equals
(
2
))
{
//工单料改为NG料
...
...
@@ -801,6 +808,12 @@ namespace OnlineStore.DeviceLibrary
TaskData
taskData
;
string
msg
=
SServerManager
.
afterPutCut
(
Name
,
"BN"
,
code
,
""
,
1
,
out
taskData
);
afterPutCutOK
=
true
;
}
else
if
(
MoveInfo
.
MoveParam
.
cutReel
)
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
",分盘料已放入NG箱,发送 afterPutCut "
);
TaskData
taskData
;
string
msg
=
SServerManager
.
afterPutCut
(
Name
,
"BN"
,
code
,
""
,
1
,
out
taskData
);
afterPutCutOK
=
true
;
}
//else if (!MoveInfo.MoveParam.IsNG)
//{
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
ca66a19
...
...
@@ -1164,5 +1164,27 @@ namespace OnlineStore.DeviceLibrary
}
#
endregion
internal
bool
hasTray
()
{
if
(
SecondMoveInfo
.
MoveType
==
LineMoveType
.
Fixture
)
{
//顶升上升端
if
(
IOManager
.
DOValue
(
IO_Type
.
TopCylinder_Up
,
DeviceID
).
Equals
(
IO_VALUE
.
HIGH
))
{
return
true
;
}
}
//判断是否有托盘
if
(
IOValue
(
IO_Type
.
StopCheck1
).
Equals
(
IO_VALUE
.
HIGH
)
||
IOValue
(
IO_Type
.
StopCheck2
).
Equals
(
IO_VALUE
.
HIGH
))
{
return
true
;
}
return
false
;
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论