Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2e672ac4
由
LN
编写于
2021-03-26 18:08:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入仓混乱问题修改。测高去掉小于15归类为8的判定
1 个父辈
b9cc6c99
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
44 行删除
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
source/DeviceLibrary/model/InOutParam.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
2e672ac
...
@@ -1024,13 +1024,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1024,13 +1024,13 @@ namespace OnlineStore.DeviceLibrary
height
+=
5
;
height
+=
5
;
}
}
//如果检测出<=15,都按照8计算
//
//
如果检测出<=15,都按照8计算
if
(
height
<=
15
)
//
if (height <= 15)
{
//
{
LastHeight
=
8
;
//
LastHeight = 8;
}
//
}
else
//
else
{
//
{
List
<
int
>
heightList
=
LineManager
.
GetTrayList
();
List
<
int
>
heightList
=
LineManager
.
GetTrayList
();
heightList
=
(
from
m
in
heightList
orderby
m
descending
select
m
).
ToList
<
int
>();
heightList
=
(
from
m
in
heightList
orderby
m
descending
select
m
).
ToList
<
int
>();
float
minCha
=
height
;
float
minCha
=
height
;
...
@@ -1044,10 +1044,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1044,10 +1044,10 @@ namespace OnlineStore.DeviceLibrary
minCha
=
cha
;
minCha
=
cha
;
}
}
}
}
}
//
}
if
(
LastHeight
<=
8
)
{
LastHeight
=
8
;
}
if
(
LastHeight
<=
8
)
{
LastHeight
=
8
;
}
string
code
=
CodeManager
.
ProcessCode
(
LastCodeList
);
string
code
=
CodeManager
.
ProcessCode
(
LastCodeList
);
string
msg
=
Name
+
" 计算盘高:上升前 ["
+
StartMovePosition
+
"]实时[ "
+
EndMovePosition
+
"]差值["
+
(
EndMovePosition
-
StartMovePosition
)
+
"]系数["
+
AxisChangeValue
+
"] 计算后"
+
buchongStr
+
"["
+
height
+
"]"
+
",归类为【"
+
LastHeight
+
"mm】条码【"
+
code
+
"】"
;
string
msg
=
Name
+
" 计算盘高:上升前 ["
+
StartMovePosition
+
"]实时[ "
+
EndMovePosition
+
"]差值["
+
(
EndMovePosition
-
StartMovePosition
)
+
"]系数["
+
AxisChangeValue
+
"] 计算后"
+
buchongStr
+
"["
+
height
+
"]"
+
",归类为【"
+
LastHeight
+
"mm】条码【"
+
code
+
"】"
;
LogUtil
.
info
(
msg
);
LogUtil
.
info
(
msg
);
return
LastHeight
;
return
LastHeight
;
}
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
查看文件 @
2e672ac
...
@@ -608,16 +608,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -608,16 +608,6 @@ namespace OnlineStore.DeviceLibrary
{
{
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
trayNum
);
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
trayNum
);
//如果是HY02,且T1在等待托盘,先放行一个托盘
if
(
DeviceID
.
Equals
(
202
))
{
FeedingEquip
feed101
=
LineManager
.
Line
.
FeedingEquipMap
[
101
];
if
(
feed101
.
CurrTrayIsNeed
(
currTrayNum
,
false
))
{
return
false
;
}
}
//判断上料T是否在入库等待托盘
//判断上料T是否在入库等待托盘
FeedingEquip
feedT
=
LineManager
.
Line
.
FeedingEquipMap
[
Config
.
WorkDeviceId
];
FeedingEquip
feedT
=
LineManager
.
Line
.
FeedingEquipMap
[
Config
.
WorkDeviceId
];
if
(
feedT
.
CurrTrayIsNeed
(
currTrayNum
,
false
))
if
(
feedT
.
CurrTrayIsNeed
(
currTrayNum
,
false
))
...
...
source/DeviceLibrary/model/InOutParam.cs
查看文件 @
2e672ac
...
@@ -83,7 +83,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -83,7 +83,7 @@ namespace OnlineStore.DeviceLibrary
{
{
try
try
{
{
return
int
.
Parse
(
PosId
.
Substring
(
2
,
2
));
return
int
.
Parse
(
PosId
.
Substring
(
1
,
1
));
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
@@ -93,30 +93,6 @@ namespace OnlineStore.DeviceLibrary
...
@@ -93,30 +93,6 @@ namespace OnlineStore.DeviceLibrary
return
-
1
;
return
-
1
;
}
}
public
static
int
GetPosStoreId
(
string
posId
)
{
if
(!
posId
.
Equals
(
""
))
{
try
{
int
index
=
posId
.
IndexOf
(
"#"
);
if
(
index
>
0
)
{
string
[]
arr
=
posId
.
Split
(
'#'
);
if
(
arr
.
Length
>=
2
)
{
return
int
.
Parse
(
arr
[
0
]);
}
}
return
int
.
Parse
(
posId
.
Substring
(
2
,
2
));
}
catch
(
Exception
ex
)
{
}
}
return
-
1
;
}
/// <summary>
/// <summary>
/// urgentReel: true 表示紧急料,需要出到料串上
/// urgentReel: true 表示紧急料,需要出到料串上
/// </summary>
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论