Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7f942d15
由
LN
编写于
2020-12-18 13:43:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
HY1,HY2托盘放行逻辑修改。
1 个父辈
c734f00f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
41 行增加
和
3 行删除
source/AssemblyLineClient/FrmLineIO.cs
source/AssemblyLineClient/useControl/EquipControl.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
source/DeviceLibrary/assemblymanager/TrayManager.cs
source/AssemblyLineClient/FrmLineIO.cs
查看文件 @
7f942d1
...
@@ -220,7 +220,7 @@ namespace OnlineStore.AssemblyLine
...
@@ -220,7 +220,7 @@ namespace OnlineStore.AssemblyLine
private
void
LoadTray
()
private
void
LoadTray
()
{
{
cmbTray
.
Items
.
Clear
();
cmbTray
.
Items
.
Clear
();
for
(
int
i
=
1
;
i
<=
30
;
i
++)
for
(
int
i
=
1
01
;
i
<=
135
;
i
++)
{
{
cmbTray
.
Items
.
Add
(
i
.
ToString
());
cmbTray
.
Items
.
Add
(
i
.
ToString
());
}
}
...
...
source/AssemblyLineClient/useControl/EquipControl.cs
查看文件 @
7f942d1
...
@@ -121,12 +121,20 @@ namespace OnlineStore.AssemblyLine
...
@@ -121,12 +121,20 @@ namespace OnlineStore.AssemblyLine
online
=
"✔"
;
online
=
"✔"
;
if
(
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
if
(
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
{
{
lblBox
.
Text
=
"BOX["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
Text
=
"BOX["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
BackColor
=
Color
.
Green
;
if
(
box
.
SRunStatus
.
Equals
(
LineRunStatus
.
Busy
))
{
lblBox
.
BackColor
=
Color
.
LightGreen
;
}
else
{
lblBox
.
BackColor
=
Color
.
LightBlue
;
}
}
}
else
else
{
{
lblBox
.
Text
=
"BOX["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
Text
=
"BOX["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
SAlarmType
+
" "
+
box
.
ToShowStr
();
lblBox
.
BackColor
=
Color
.
Red
;
lblBox
.
BackColor
=
Color
.
Red
;
}
}
}
}
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
7f942d1
...
@@ -996,6 +996,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -996,6 +996,10 @@ namespace OnlineStore.DeviceLibrary
{
{
return
false
;
return
false
;
}
}
if
(
MoveStop
)
{
return
false
;
}
if
(
trayNum
<=
0
)
if
(
trayNum
<=
0
)
{
{
return
false
;
return
false
;
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
查看文件 @
7f942d1
...
@@ -417,6 +417,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -417,6 +417,20 @@ namespace OnlineStore.DeviceLibrary
{
{
lineName
=
"C9"
;
lineName
=
"C9"
;
}
}
if
(
DeviceID
.
Equals
(
204
))
{
lineName
=
"C2"
;
}
else
if
(
DeviceID
.
Equals
(
205
))
{
lineName
=
"C3"
;
}
else
if
(
DeviceID
.
Equals
(
213
))
{
lineName
=
"C6"
;
}
else
if
(
DeviceID
.
Equals
(
216
))
{
lineName
=
"C7"
;
}
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INBELT
,
lineName
);
SServerManager
.
UpdateTrayLoc
(
Name
,
MoveInfo
.
MoveParam
.
WareCode
,
LocStatus
.
INBELT
,
lineName
);
}
}
}
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
查看文件 @
7f942d1
...
@@ -590,6 +590,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -590,6 +590,17 @@ namespace OnlineStore.DeviceLibrary
{
{
return
false
;
return
false
;
}
}
//如果是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/assemblymanager/TrayManager.cs
查看文件 @
7f942d1
...
@@ -140,6 +140,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -140,6 +140,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
t
.
ToStr
());
LogUtil
.
info
(
t
.
ToStr
());
}
}
TrayInfoMap
=
new
ConcurrentDictionary
<
int
,
TrayInfo
>();
TrayInfoMap
=
new
ConcurrentDictionary
<
int
,
TrayInfo
>();
SaveMapToFile
();
LogUtil
.
info
(
"-------------------点击:清空托盘。托盘内容已清空"
);
LogUtil
.
info
(
"-------------------点击:清空托盘。托盘内容已清空"
);
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论