Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 60990f11
由
LN
编写于
2020-08-03 11:23:01 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入料3和进仓10需要空托盘时才放空托盘过去,其他直接横移
1 个父辈
a991502d
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
68 行增加
和
19 行删除
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/LineBean_Shunt.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
60990f1
...
...
@@ -1560,6 +1560,32 @@ namespace OnlineStore.DeviceLibrary
return
false
;
}
internal
bool
WaitEmptyTray
()
{
try
{
if
(
IsDebug
&&
runStatus
<=
LineRunStatus
.
Wait
)
{
return
false
;
}
if
(
Config
.
IsCanOut
.
Equals
(
0
))
{
if
(
runStatus
.
Equals
(
LineRunStatus
.
Busy
)
&&
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
))
{
//入料执行中, 且需要空托盘
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FI_25_WaitTray
)
&&
MoveInfo
.
IsInWait
.
Equals
(
false
))
{
return
true
;
}
}
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
Name
+
"WaitEmptyTray 出错:"
,
ex
);
}
return
false
;
}
private
bool
NeedEmptyTrayGo
()
{
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
60990f1
...
...
@@ -189,6 +189,8 @@ namespace OnlineStore.DeviceLibrary
catch
(
Exception
ex
)
{
LogUtil
.
error
(
checkWaitInfo
.
Name
+
" ["
+
checkWaitInfo
.
MoveStep
+
"] CheckWait 出错:"
,
ex
);
//如果是空指针异常,并且MoveStep=SW06_TopCylinderUp,单独处理
}
}
#
endregion
...
...
source/DeviceLibrary/assemblyLine/LineBean_Shunt.cs
查看文件 @
60990f1
...
...
@@ -321,39 +321,60 @@ namespace OnlineStore.DeviceLibrary
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check1_Front
,
IO_VALUE
.
LOW
));
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check2_Middle
,
IO_VALUE
.
LOW
));
}
private
bool
TrayNeedShunt
(
int
trayNum
,
out
string
outMsg
)
{
outMsg
=
""
;
int
lineNum
=
DeviceID
%
100
;
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
trayNum
);
if
(!
trayInfo
.
IsFull
)
{
return
false
;
}
if
(
trayInfo
.
IsFull
)
try
{
InOutParam
inoup
=
trayInfo
.
InoutPar
;
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
InStore
))
int
lineNum
=
DeviceID
%
100
;
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
trayNum
);
//if (!trayInfo.IsFull)
//{
// return false;
//}
if
(
trayInfo
.
IsFull
)
{
if
(
inoup
.
InStoreNg
)
InOutParam
inoup
=
trayInfo
.
InoutPar
;
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
InStore
))
{
outMsg
=
"入料NG料"
;
return
true
;
if
(
inoup
.
InStoreNg
)
{
outMsg
=
"入料NG料"
;
return
true
;
}
else
if
(
inoup
.
GetStoreId
().
Equals
(
10
).
Equals
(
false
))
{
outMsg
=
"非10号仓入库"
;
return
true
;
}
}
else
if
(
inoup
.
GetStoreId
().
Equals
(
10
)
.
Equals
(
false
))
else
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
inoup
.
urgentReel
.
Equals
(
false
)
&&
inoup
.
cutReel
.
Equals
(
false
))
{
outMsg
=
"
非10号仓入库
"
;
outMsg
=
"
皮带线出料
"
;
return
true
;
}
}
else
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
inoup
.
urgentReel
.
Equals
(
false
)
&&
inoup
.
cutReel
.
Equals
(
false
))
{
outMsg
=
"皮带线出料"
;
else
{
MoveEquip
moveEquip10
=
LineManager
.
Line
.
MoveEquipMap
[
10
];
if
(
moveEquip10
.
IsWaitEmptyTray
())
{
return
false
;
}
FeedingEquip
feed3
=
LineManager
.
Line
.
FeedingEquipMap
[
103
];
if
(
feed3
.
WaitEmptyTray
())
{
return
false
;
}
outMsg
=
"空托盘"
;
return
true
;
}
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
"TrayNeedShunt出错:"
+
ex
.
ToString
());
}
return
false
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论