Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 99a09c7a
由
LN
编写于
2021-03-31 14:38:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料盘高度改为配置,移栽放料逻辑修改
1 个父辈
b8691c9e
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
50 行增加
和
9 行删除
source/AssemblyLineClient/App.config
source/Common/Setting_Init.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblymanager/ALineManager.cs
source/DeviceLibrary/model/LineMoveInfo.cs
source/DeviceLibrary/server/LineServer.cs
source/AssemblyLineClient/App.config
查看文件 @
99a09c7
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
<
add
key
=
"UseHCBoard"
value
=
"1"
/>
<
add
key
=
"UseHCBoard"
value
=
"1"
/>
<
add
key
=
"ShowIOForm"
value
=
"0"
/>
<
add
key
=
"ShowIOForm"
value
=
"0"
/>
<
add
key
=
"RfidServer_Port"
value
=
"12001"
/>
<
add
key
=
"RfidServer_Port"
value
=
"12001"
/>
<
add
key
=
"TrayHeightList"
value
=
"8;12;16;20;24;28;36;48"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/Common/Setting_Init.cs
查看文件 @
99a09c7
...
@@ -100,5 +100,8 @@ namespace OnlineStore.Common
...
@@ -100,5 +100,8 @@ namespace OnlineStore.Common
public
static
string
ConfigPath_TrayList
=
"ConfigPath_TrayList"
;
public
static
string
ConfigPath_TrayList
=
"ConfigPath_TrayList"
;
public
static
string
DisTraySave
=
"DisTraySave"
;
public
static
string
DisTraySave
=
"DisTraySave"
;
public
static
string
TrayHeightList
=
"TrayHeightList"
;
}
}
}
}
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
99a09c7
...
@@ -726,7 +726,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -726,7 +726,7 @@ namespace OnlineStore.DeviceLibrary
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_08_WaitBox
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_08_WaitBox
);
LogInfo
(
"入库【"
+
posId
+
"】 "
+
MoveInfo
.
SLog
+
": 物品已移走,更新托盘【"
+
num
+
"】为空盘,删除入库任务"
);
LogInfo
(
"入库【"
+
posId
+
"】 "
+
MoveInfo
.
SLog
+
": 物品已移走,更新托盘【"
+
num
+
"】为空盘,删除入库任务"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBoxCan
ReviceTray
());
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitBoxCan
Instore
());
TrayManager
.
UpdateTrayInfo
(
num
);
TrayManager
.
UpdateTrayInfo
(
num
);
RemoveInStore
(
MoveInfo
.
MoveParam
);
RemoveInStore
(
MoveInfo
.
MoveParam
);
if
(
OnlyProOutTray
)
if
(
OnlyProOutTray
)
...
...
source/DeviceLibrary/assemblymanager/ALineManager.cs
查看文件 @
99a09c7
...
@@ -253,9 +253,33 @@ namespace OnlineStore.DeviceLibrary
...
@@ -253,9 +253,33 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
private
static
List
<
int
>
trayHeightList
=
new
List
<
int
>()
{
8
,
12
,
16
,
20
,
24
,
28
,
36
,
48
}
;
private
static
List
<
int
>
trayHeightList
=
new
List
<
int
>();
public
static
List
<
int
>
GetTrayList
()
public
static
List
<
int
>
GetTrayList
()
{
{
if
(
trayHeightList
.
Count
<=
0
)
{
string
config
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
TrayHeightList
);
string
[]
array
=
config
.
Split
(
';'
);
foreach
(
string
s
in
array
)
{
try
{
int
v
=
Convert
.
ToInt32
(
s
.
Trim
());
if
(
v
>
0
)
{
trayHeightList
.
Add
(
v
);
}
}
catch
(
Exception
ex
)
{
}
}
if
(
trayHeightList
.
Count
<=
0
)
{
trayHeightList
=
new
List
<
int
>()
{
8
,
12
,
16
,
20
,
24
,
28
,
36
,
48
};
}
}
return
trayHeightList
;
return
trayHeightList
;
}
}
}
}
...
...
source/DeviceLibrary/model/LineMoveInfo.cs
查看文件 @
99a09c7
...
@@ -255,13 +255,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -255,13 +255,13 @@ namespace OnlineStore.DeviceLibrary
return
wait
;
return
wait
;
}
}
public
static
WaitResultInfo
WaitCanInstore
()
//
public static WaitResultInfo WaitCanInstore()
{
//
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
//
WaitResultInfo wait = new WaitResultInfo();
wait
.
WaitType
=
WaitEnum
.
W008_InStoreCheckOK
;
//
wait.WaitType = WaitEnum.W008_InStoreCheckOK;
return
wait
;
//
return wait;
}
//
}
public
static
WaitResultInfo
WaitBoxCan
ReviceTray
(
)
public
static
WaitResultInfo
WaitBoxCan
Instore
(
)
{
{
WaitResultInfo
wait
=
new
WaitResultInfo
();
WaitResultInfo
wait
=
new
WaitResultInfo
();
wait
.
WaitType
=
WaitEnum
.
W009_BoxCanInstore
;
wait
.
WaitType
=
WaitEnum
.
W009_BoxCanInstore
;
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
99a09c7
...
@@ -141,6 +141,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -141,6 +141,7 @@ namespace OnlineStore.DeviceLibrary
if
(
box
!=
null
)
if
(
box
!=
null
)
{
{
LineRunStatus
runs
=
(
LineRunStatus
)
box
.
SRunStatus
;
LineRunStatus
runs
=
(
LineRunStatus
)
box
.
SRunStatus
;
LineStatus
movestatus
=
(
LineStatus
)
box
.
SStatus
;
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
if
(
span
.
TotalSeconds
>
ClientKeepSecond
)
if
(
span
.
TotalSeconds
>
ClientKeepSecond
)
{
{
...
@@ -168,6 +169,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -168,6 +169,14 @@ namespace OnlineStore.DeviceLibrary
{
{
return
true
;
return
true
;
}
}
else
if
(
runs
.
Equals
(
LineRunStatus
.
Busy
)
&&
movestatus
.
Equals
(
LineStatus
.
OutStoreBoxEnd
))
{
return
true
;
}
else
{
NotOkMsg
=
$
" [料仓{id}{str}:忙碌中] "
;
}
}
}
else
else
{
{
...
@@ -180,6 +189,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -180,6 +189,10 @@ namespace OnlineStore.DeviceLibrary
{
{
return
true
;
return
true
;
}
}
else
if
(
runs
.
Equals
(
LineRunStatus
.
Busy
)
&&
movestatus
.
Equals
(
LineStatus
.
InStoreEnd
))
{
return
true
;
}
else
else
{
{
NotOkMsg
=
$
" [料仓{id}{str}:忙碌中] "
;
NotOkMsg
=
$
" [料仓{id}{str}:忙碌中] "
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论