Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 37543ebb
由
LN
编写于
2021-03-27 15:29:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出料机构提示文字修改
1 个父辈
d4dcd359
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
30 行增加
和
25 行删除
source/DeviceLibrary/LineConfig/Config_FeedingEquip_1.csv
source/DeviceLibrary/LineConfig/TrayList.data
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/server/LineServer.cs
source/DeviceLibrary/LineConfig/Config_FeedingEquip_1.csv
查看文件 @
37543eb
...
@@ -7,17 +7,17 @@ PRO,0,是否是用来出料,IsCanOut,0,,,,,,,,,,,,
...
@@ -7,17 +7,17 @@ PRO,0,是否是用来出料,IsCanOut,0,,,,,,,,,,,,
PRO,0,上料流水线入口AGV小车站号名称,AgvInName,T1_1,,,,,,,,,,,,
PRO,0,上料流水线入口AGV小车站号名称,AgvInName,T1_1,,,,,,,,,,,,
PRO,0,上料流水线出口AGV小车站号名称,AgvOutName,T1_2,,,,,,,,,,,,
PRO,0,上料流水线出口AGV小车站号名称,AgvOutName,T1_2,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
AXIS,0,轴一提升上料轴,Batch_Axis,5,HC,,
50000,10000,10000,4000,20
000,10000,10,100,0,0
AXIS,0,轴一提升上料轴,Batch_Axis,5,HC,,
30000,10000,10000,500,4
000,10000,10,100,0,0
PRO,0,提升上料轴上升待机点 P1,BatchAxisP1,49
9471
,,,,,,,,,,,,
PRO,0,提升上料轴上升待机点 P1,BatchAxisP1,49
0700
,,,,,,,,,,,,
PRO,0,提升上料轴下降位置P2,BatchAxisP2,-
5
0,,,,,,,,,,,,
PRO,0,提升上料轴下降位置P2,BatchAxisP2,-
1110
0,,,,,,,,,,,,
PRO,0,提升上料缓慢上升目标位置P3,BatchAxisP3,4
476
00,,,,,,,,,,,,
PRO,0,提升上料缓慢上升目标位置P3,BatchAxisP3,4
362
00,,,,,,,,,,,,
PRO,0,提升上料轴P1速度,BatchAxis_P1Speed,20000,,,,,,,,,,,,
PRO,0,提升上料轴P1速度,BatchAxis_P1Speed,20000,,,,,,,,,,,,
PRO,0,提升上料轴P2速度,BatchAxis_P2Speed,20000,,,,,,,,,,,,
PRO,0,提升上料轴P2速度,BatchAxis_P2Speed,20000,,,,,,,,,,,,
PRO,0,提升上料轴P3速度,BatchAxis_P3Speed,8000,,,,,,,,,,,,
PRO,0,提升上料轴P3速度,BatchAxis_P3Speed,8000,,,,,,,,,,,,
PRO,0,提升上料轴P4速度/料盘拿走后提升轴下降速度,BatchAxis_P4Speed,10000,,,,,,,,,,,,
PRO,0,提升上料轴P4速度/料盘拿走后提升轴下降速度,BatchAxis_P4Speed,10000,,,,,,,,,,,,
PRO,0,提升上料轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,
1000
,,,,,,,,,,,,
PRO,0,提升上料轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,
804
,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
AXIS,0,轴二移栽上下轴,UpDown_Axis,6,HC,,
50000,10000,10000,4000,20
000,10000,10,100,0,0
AXIS,0,轴二移栽上下轴,UpDown_Axis,6,HC,,
40000,50000,50000,500,4
000,10000,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,100,,,,,,,,,,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,100,,,,,,,,,,,,
PRO,0,移栽上下轴P2移栽机构下降位置,UpDownP2List,0=11000;8=245500;12=242400;28=215600;36=205200;48=203800,,,,,,,,,,,,
PRO,0,移栽上下轴P2移栽机构下降位置,UpDownP2List,0=11000;8=245500;12=242400;28=215600;36=205200;48=203800,,,,,,,,,,,,
PRO,0,移栽上下轴P3取料位置,UpDownAxisP3,75000,,,,,,,,,,,,
PRO,0,移栽上下轴P3取料位置,UpDownAxisP3,75000,,,,,,,,,,,,
...
...
source/DeviceLibrary/LineConfig/TrayList.data
查看文件 @
37543eb
{"TrayNum":101,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:01:45.6853967+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":101,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":101,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T14:41:07.0921861+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":101,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":102,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:02:36.2332879+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":102,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":104,"IsFull":true,"InOrOutStore":1,"ShowMsg":"找到多个有效的条码","LastUpdateTime":"2021-03-27T14:41:26.724309+08:00","InoutPar":{"WareCode":"=7x12=640262*33330032*7FDAO0264G*3000*8976##=7x12=985022*36000619*10-16*2500*0A162319##","PosId":"","TrayNumber":104,"PlateH":12,"PlateW":7,"IsNG":true,"NgMsg":"找到多个有效的条码","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"B102","rfidLoc":0}}
{"TrayNum":103,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:04:55.0772293+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":103,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":107,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T14:40:03.607555+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":107,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":106,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:05:31.2682993+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":106,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":111,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T14:42:00.4012352+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":111,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":107,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:09:47.1249335+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":107,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":108,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T09:22:14.8718857+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":108,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":110,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:00:38.0075257+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":110,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":112,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2021-03-27T11:08:27.8623999+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":112,"PlateH":0,"PlateW":0,"IsNG":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
37543eb
...
@@ -671,6 +671,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -671,6 +671,10 @@ namespace OnlineStore.DeviceLibrary
}
}
protected
void
InLog
(
string
msg
)
protected
void
InLog
(
string
msg
)
{
{
if
(
OnlyProOutTray
)
{
msg
=
msg
.
Replace
(
"入库"
,
"移栽"
);
}
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
"["
+
currTrayNum
+
"]["
+
MoveInfo
.
MoveParam
.
PosId
+
"]["
+
MoveInfo
.
MoveParam
.
WareCode
+
"]"
:
""
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
"["
+
currTrayNum
+
"]["
+
MoveInfo
.
MoveParam
.
PosId
+
"]["
+
MoveInfo
.
MoveParam
.
WareCode
+
"]"
:
""
;
//baseConfig.DType.Equals(DeviceType.HYEquip)
//baseConfig.DType.Equals(DeviceType.HYEquip)
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
))
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
))
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
37543eb
...
@@ -1046,8 +1046,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1046,8 +1046,8 @@ namespace OnlineStore.DeviceLibrary
string
buchongStr
=
""
;
string
buchongStr
=
""
;
if
(
isLast
)
if
(
isLast
)
{
{
buchongStr
=
"(最后一盘料已补充
5
)"
;
buchongStr
=
"(最后一盘料已补充
1
)"
;
height
+=
5
;
height
+=
1
;
}
}
////如果检测出<=15,都按照8计算
////如果检测出<=15,都按照8计算
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
37543eb
...
@@ -674,16 +674,21 @@ namespace OnlineStore.DeviceLibrary
...
@@ -674,16 +674,21 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_15_SendPosToStore
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_15_SendPosToStore
))
{
{
if
(!
LineServer
.
IsInStorePro
(
DeviceID
,
MoveInfo
.
MoveParam
.
PosId
))
if
(!
LineServer
.
IsInStorePro
(
DeviceID
,
MoveInfo
.
MoveParam
.
PosId
))
{
{
string
msg
=
"料仓开始入库"
;
if
(
OnlyProOutTray
)
{
msg
=
"出料机构取料"
;
}
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_15_SendPosToStore
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_15_SendPosToStore
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",再次通知
BOX开始入库
,等待3000"
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
",再次通知
"
+
msg
+
"
,等待3000"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
3000
));
LineServer
.
StartInStore
(
DeviceID
,
MoveInfo
.
MoveParam
);
LineServer
.
StartInStore
(
DeviceID
,
MoveInfo
.
MoveParam
);
sendCount
++;
sendCount
++;
if
(
sendCount
>=
3
)
if
(
sendCount
>=
3
)
{
{
WarnMsg
=
MoveInfo
.
Name
+
"["
+
MoveInfo
.
MoveStep
+
"] "
+
" 等待
BOX开始入库
超时 已发送"
+
sendCount
+
"次"
;
WarnMsg
=
MoveInfo
.
Name
+
"["
+
MoveInfo
.
MoveStep
+
"] "
+
" 等待
"
+
msg
+
"
超时 已发送"
+
sendCount
+
"次"
;
LogUtil
.
error
(
WarnMsg
);
LogUtil
.
error
(
WarnMsg
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
Alarm
(
LineAlarmType
.
IoSingleTimeOut
);
}
}
...
...
source/DeviceLibrary/server/LineServer.cs
查看文件 @
37543eb
...
@@ -131,12 +131,12 @@ namespace OnlineStore.DeviceLibrary
...
@@ -131,12 +131,12 @@ namespace OnlineStore.DeviceLibrary
/// <returns></returns>
/// <returns></returns>
public
static
bool
BoxCanReviceTray
(
int
id
,
out
string
NotOkMsg
)
public
static
bool
BoxCanReviceTray
(
int
id
,
out
string
NotOkMsg
)
{
{
string
str
=
"可以入库"
;
string
str
=
"
料仓"
+
id
+
"
可以入库"
;
if
(
id
.
Equals
(
7
))
if
(
id
.
Equals
(
7
))
{
{
str
=
"取料"
;
str
=
"
出料机构可
取料"
;
}
}
NotOkMsg
=
$
" [
料仓{id}
{str}:离线] "
;
NotOkMsg
=
$
" [{str}:离线] "
;
BoxInfo
box
=
GetBoxInfo
(
id
);
BoxInfo
box
=
GetBoxInfo
(
id
);
if
(
box
!=
null
)
if
(
box
!=
null
)
{
{
...
@@ -144,17 +144,17 @@ namespace OnlineStore.DeviceLibrary
...
@@ -144,17 +144,17 @@ namespace OnlineStore.DeviceLibrary
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
TimeSpan
span
=
DateTime
.
Now
-
box
.
LastMsgTime
;
if
(
span
.
TotalSeconds
>
ClientKeepSecond
)
if
(
span
.
TotalSeconds
>
ClientKeepSecond
)
{
{
NotOkMsg
=
$
" [
料仓{id}
{str}:离线] "
;
NotOkMsg
=
$
" [{str}:离线] "
;
return
false
;
return
false
;
}
}
else
if
(!
box
.
HasTray
.
Equals
(
0
))
else
if
(!
box
.
HasTray
.
Equals
(
0
))
{
{
NotOkMsg
=
$
" [
料仓{id}
{str}:仓门口有料] "
;
NotOkMsg
=
$
" [{str}:仓门口有料] "
;
return
false
;
return
false
;
}
}
else
if
(!
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
else
if
(!
box
.
SAlarmType
.
Equals
(
LineAlarmType
.
None
))
{
{
NotOkMsg
=
$
" [
料仓{id}
{str}:报警中] "
;
NotOkMsg
=
$
" [{str}:报警中] "
;
return
false
;
return
false
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论