Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit dd3c1ebe
由
LN
编写于
2020-02-18 11:20:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出料机构日志修改
1 个父辈
ba709f42
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
7 行删除
source/AssemblyLineClient/App.config
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
source/AssemblyLineClient/App.config
查看文件 @
dd3c1eb
...
...
@@ -55,7 +55,7 @@
<
add
key
=
"CodeCount"
value
=
"3"
/>
<
add
key
=
"DefaultTrayNum"
value
=
"0"
/>
<
add
key
=
"NeedScanCode"
value
=
"1"
/>
<
add
key
=
"Agv_Log_Open"
value
=
"
1
"
/>
<
add
key
=
"Agv_Log_Open"
value
=
"
0
"
/>
</
appSettings
>
<!-- <
log4net
> -->
<!-- <
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
> -->
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
查看文件 @
dd3c1eb
...
...
@@ -75,8 +75,9 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
SecondMoveInfo
,
IO_Type
.
TopCylinder_UP
,
IO_Type
.
TopCylinder_Down
);
}
}
private
InOutParam
CheckIsNeedOutStore
(
)
{
private
InOutParam
CheckIsNeedOutStore
(
out
string
outMsg
)
{
outMsg
=
""
;
int
lineNum
=
DeviceID
%
100
;
TrayInfo
trayInfo
=
TrayManager
.
GetTrayInfo
(
currTrayNum
);
if
(!
trayInfo
.
IsFull
)
...
...
@@ -87,7 +88,8 @@ namespace OnlineStore.DeviceLibrary
int
youxianS
=
180
;
InOutParam
inoup
=
trayInfo
.
InoutPar
;
if
(
trayInfo
.
IsFull
&&
trayInfo
.
InoutPar
.
InStoreNg
&&
this
.
Config
.
SidesWayNum
.
Equals
(
4
))
{
{
outMsg
=
"入料NG料"
;
//入料失败料
return
inoup
;
}
...
...
@@ -146,20 +148,24 @@ namespace OnlineStore.DeviceLibrary
if
(
mustLine
.
Count
>
0
)
{
if
(
mustLine
.
Contains
(
lineNum
))
{
{
outMsg
=
"必须线"
;
return
inoup
;
}
}
else
if
(
firstLine
.
Count
>
0
)
{
if
(
firstLine
.
Contains
(
lineNum
)&&
kongxian
)
{
outMsg
=
"优先线且空闲"
;
return
inoup
;
}
else
if
(
LineManager
.
Line
.
ProvidingCanUse
(
firstLine
).
Equals
(
false
)&&
kongxian
)
{
outMsg
=
"优先线不可用"
;
//优先线不可用
return
inoup
;
}
else
if
(
span
.
TotalSeconds
>
youxianS
&&
kongxian
)
{
outMsg
=
"超过180秒"
;
//超过指定的时间
return
inoup
;
}
...
...
@@ -168,6 +174,7 @@ namespace OnlineStore.DeviceLibrary
{
if
(
kongxian
)
{
outMsg
=
"随意放"
;
return
inoup
;
}
}
...
...
@@ -238,12 +245,13 @@ namespace OnlineStore.DeviceLibrary
TrayManager
.
UpdateTrayNumError
(-
1
,
""
);
}
//出料中,需要拦盘
InOutParam
param
=
CheckIsNeedOutStore
(
);
string
outMsg
=
""
;
InOutParam
param
=
CheckIsNeedOutStore
(
out
outMsg
);
if
(
param
!=
null
)
{
SecondMoveInfo
.
MoveParam
=
param
;
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
MIO_05_WaitTime
);
CheckLog
(
"托盘 【"
+
currTrayNum
+
"】需要出料"
+
SecondMoveInfo
.
SLog
+
":"
+
param
.
ToStr
()
+
" 等待1秒后顶升上升
"
);
LogUtil
.
info
(
Name
+
"托盘 【"
+
currTrayNum
+
"】【"
+
outMsg
+
"】需要出料"
+
SecondMoveInfo
.
SLog
+
":"
+
param
.
ToStr
()
+
" 等待可以开始移栽
"
);
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
SecondMoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitProvidingEquipCanOut
());
//等待
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论