Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0223cd3f
由
LN
编写于
2021-04-16 18:06:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
D7放料bug修改:D7增加当前库位号上传。
1 个父辈
73b283c3
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
27 行增加
和
12 行删除
source/AssemblyLineClient/useControl/EquipControl.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/model/KTK_Store.cs
source/DeviceLibrary/server/BoxInfo.cs
source/DeviceLibrary/server/LineServer.cs
source/AssemblyLineClient/useControl/EquipControl.cs
查看文件 @
0223cd3
...
...
@@ -142,14 +142,19 @@ namespace OnlineStore.AssemblyLine
str
=
"出料机构"
;
}
if
(
box
!=
null
)
{
{
string
posId
=
""
;
if
(!
String
.
IsNullOrEmpty
(
box
.
CurrPosId
))
{
posId
=
"["
+
box
.
CurrPosId
+
"]"
;
}
if
((
DateTime
.
Now
-
box
.
LastMsgTime
).
TotalSeconds
<
LineServer
.
ClientKeepSecond
)
{
online
=
"✔"
;
if
(
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
{
lblBox
.
Text
=
str
+
"["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
Text
=
str
+
"["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
posId
+
box
.
ToShowStr
();
if
(
box
.
SRunStatus
.
Equals
((
int
)
LineRunStatus
.
Busy
))
{
lblBox
.
BackColor
=
Color
.
LightGreen
;
...
...
@@ -161,13 +166,13 @@ namespace OnlineStore.AssemblyLine
}
else
{
lblBox
.
Text
=
str
+
"["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
SAlarmType
+
" "
+
box
.
ToShowStr
();
lblBox
.
Text
=
str
+
"["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
posId
+
box
.
SAlarmType
+
" "
+
box
.
ToShowStr
();
lblBox
.
BackColor
=
Color
.
Red
;
}
}
else
{
lblBox
.
Text
=
str
+
"["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
box
.
ToShowStr
();
lblBox
.
Text
=
str
+
"["
+
box
.
CId
.
ToString
()
+
"]:"
+
online
+
" "
+
posId
+
box
.
ToShowStr
();
lblBox
.
BackColor
=
Color
.
Gray
;
}
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
0223cd3
...
...
@@ -708,12 +708,17 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_15_SendPosToStore
))
{
if
(!
LineServer
.
IsInStorePro
(
DeviceID
,
MoveInfo
.
MoveParam
.
PosId
))
string
sendPos
=
posId
;
if
(
MoveInfo
.
MoveParam
.
IsNG
)
{
sendPos
=
""
;
}
if
(!
LineServer
.
IsInStorePro
(
DeviceID
,
sendPos
))
{
string
msg
=
"料仓开始入库"
;
if
(
OnlyProOutTray
)
{
msg
=
"出料机构取料"
;
msg
=
"出料机构取料
["
+
sendPos
+
"]
"
;
}
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_15_SendPosToStore
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",再次通知"
+
msg
+
",等待3000"
);
...
...
source/DeviceLibrary/model/KTK_Store.cs
查看文件 @
0223cd3
...
...
@@ -344,9 +344,9 @@ namespace OnlineStore.DeviceLibrary
case
LineStatus
.
InTrouble
:
aa
=
"故障中"
;
break
;
//
case LineStatus.OutStoreBoxEnd:
// aa = "料盘出仓位完成
";
//
break;
case
LineStatus
.
OutStoreBoxEnd
:
aa
=
"出库执行中
"
;
break
;
case
LineStatus
.
OutStoreExecute
:
aa
=
"出库执行中"
;
break
;
...
...
source/DeviceLibrary/server/BoxInfo.cs
查看文件 @
0223cd3
...
...
@@ -15,9 +15,10 @@ namespace OnlineStore.DeviceLibrary
SAlarmType
=
LineAlarmType
.
None
;
HasTray
=
0
;
WaitInStoreList
=
new
List
<
string
>();
CurrPosId
=
""
;
}
public
BoxInfo
(
int
id
,
string
cid
,
int
seq
,
int
ss
,
int
runs
,
int
hasTray
,
int
alarmType
,
List
<
string
>
inList
)
public
BoxInfo
(
int
id
,
string
cid
,
int
seq
,
int
ss
,
int
runs
,
int
hasTray
,
int
alarmType
,
List
<
string
>
inList
,
string
currPosId
)
{
this
.
ID
=
id
;
CId
=
cid
;
...
...
@@ -28,6 +29,7 @@ namespace OnlineStore.DeviceLibrary
LastMsgTime
=
DateTime
.
Now
;
this
.
HasTray
=
hasTray
;
this
.
WaitInStoreList
=
inList
;
this
.
CurrPosId
=
currPosId
;
}
public
string
ToShowStr
()
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
0223cd3
...
...
@@ -99,8 +99,9 @@ namespace OnlineStore.DeviceLibrary
if
(
runs
.
Equals
(
LineRunStatus
.
Busy
))
{
bool
isOutP
=
status
.
Equals
(
LineStatus
.
OutStoreExecute
)
||
status
.
Equals
(
LineStatus
.
OutStoreBoxEnd
);
bool
isNg
=
(
isOutP
&&
String
.
IsNullOrEmpty
(
posId
)
&&
String
.
IsNullOrEmpty
(
box
.
CurrPosId
));
if
((
isOutP
&&
box
.
CurrPosId
.
Equals
(
posId
))
||
(
isOutP
&&
String
.
IsNullOrEmpty
(
posId
)
&&
String
.
IsNullOrEmpty
(
box
.
CurrPosId
))
||
isNg
||
box
.
WaitInStoreList
.
Contains
(
posId
))
{
return
true
;
...
...
@@ -452,7 +453,7 @@ namespace OnlineStore.DeviceLibrary
else
{
int
id
=
storeSMsg
.
StoreId
;
BoxInfo
box
=
new
BoxInfo
(
storeSMsg
.
StoreId
,
storeSMsg
.
Cid
,
storeSMsg
.
Seq
,
storeSMsg
.
SStatus
,
storeSMsg
.
SRunStatus
,
storeSMsg
.
DoorHasTray
,
storeSMsg
.
AlarmType
,
storeSMsg
.
WaitInStoreList
);
BoxInfo
box
=
new
BoxInfo
(
storeSMsg
.
StoreId
,
storeSMsg
.
Cid
,
storeSMsg
.
Seq
,
storeSMsg
.
SStatus
,
storeSMsg
.
SRunStatus
,
storeSMsg
.
DoorHasTray
,
storeSMsg
.
AlarmType
,
storeSMsg
.
WaitInStoreList
,
storeSMsg
.
CurrPosId
);
SaveBoxClient
(
id
,
box
,
client
);
string
cmd
=
storeSMsg
.
Cmd
;
...
...
@@ -552,6 +553,8 @@ namespace OnlineStore.DeviceLibrary
//public string tShelfI = "";
public
List
<
string
>
WaitInStoreList
=
new
List
<
string
>();
public
InOutData
data
=
null
;
public
string
CurrPosId
=
""
;
}
public
class
InOutData
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论