Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f4c7862c
由
LN
编写于
2020-12-22 09:46:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
接驳台bug修改
1 个父辈
3b3761ab
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
85 行增加
和
48 行删除
source/DeviceLibrary/LineConfig/Config_FeedingEquip_3.csv
source/DeviceLibrary/LineConfig/TrayList.data
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
source/DeviceLibrary/LineConfig/Config_FeedingEquip_3.csv
查看文件 @
f4c7862
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,回零低速,回零高速,回零加速度,脉冲最小误差,脉冲最大误差,脉冲最小限位,脉冲最大限位
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,
1
,,
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,
0
,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,GigE:MV-CE200-10GC (00E96448319),,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,
PRO,0,对应的横移模块,SidesWayNum,0,,
...
...
source/DeviceLibrary/LineConfig/TrayList.data
查看文件 @
f4c7862
\ No newline at end of file
{"TrayNum":101,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:39:29.5520269+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":101,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":102,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:38:47.6686313+08:00","InoutPar":{"WareCode":"R821872020101704243","PosId":"3D0611AA0009","TrayNumber":102,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":103,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:39:17.9423629+08:00","InoutPar":{"WareCode":"R201882015093000020","PosId":"3D0711AA0004","TrayNumber":103,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":104,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:40:52.5697753+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":104,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":105,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:41:48.4189697+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":105,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":106,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:36:41.6734248+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":106,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":107,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:19:32.1705406+08:00","InoutPar":{"WareCode":"R008082018031441319","PosId":"3D0322AA0010","TrayNumber":107,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":108,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:37:36.6435689+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":108,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":109,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:39:46.6490048+08:00","InoutPar":{"WareCode":"R202882017011900156","PosId":"3D0712AA0015","TrayNumber":109,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":110,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:32:38.8345352+08:00","InoutPar":{"WareCode":"R202882016111700131","PosId":"3D0522AA0005","TrayNumber":110,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":111,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:18:40.3765782+08:00","InoutPar":{"WareCode":"R201882015080600013","PosId":"3D0312AA0019","TrayNumber":111,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":112,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:40:25.4412236+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":112,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":113,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:40:26.9753114+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":113,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":114,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:38:29.6396001+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":114,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":115,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:38:34.5758825+08:00","InoutPar":{"WareCode":"R008082018020741212","PosId":"3D0701AA0001","TrayNumber":115,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":116,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:35:44.4131497+08:00","InoutPar":{"WareCode":"R202882016110200154","PosId":"3D0601AA0009","TrayNumber":116,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":117,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:41:17.758216+08:00","InoutPar":{"WareCode":"R014212020102401705","PosId":"3D0712AA0005","TrayNumber":117,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":118,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:38:59.9263324+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":118,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":119,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:17:10.2004204+08:00","InoutPar":{"WareCode":"R202882016122700024","PosId":"3D0101AA0006","TrayNumber":119,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":120,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:33:40.2370473+08:00","InoutPar":{"WareCode":"R033512018082000682","PosId":"3D0501AA0011","TrayNumber":120,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":121,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:16:39.6586735+08:00","InoutPar":{"WareCode":"R201882018010800917","PosId":"3D0522AA0001","TrayNumber":121,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":true,"smallReel":true,"rfid":"2-0B","rfidLoc":-1}}
{"TrayNum":122,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:40:15.0366285+08:00","InoutPar":{"WareCode":"R008082017071248336","PosId":"3D0701AA0005","TrayNumber":122,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":123,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:33:10.2853341+08:00","InoutPar":{"WareCode":"R033512020032700529","PosId":"3D0502AA0002","TrayNumber":123,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":124,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:39:57.6526342+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":124,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":125,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:16:34.9494042+08:00","InoutPar":{"WareCode":"R202882018042301164","PosId":"3D0121AA0017","TrayNumber":125,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":126,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:41:20.3393636+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":126,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":127,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:37:12.517189+08:00","InoutPar":{"WareCode":"R821872020101704244","PosId":"3D0611AA0020","TrayNumber":127,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":128,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:20:15.851039+08:00","InoutPar":{"WareCode":"R008082017101244610","PosId":"3D0412AA0005","TrayNumber":128,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":129,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:37:57.1367411+08:00","InoutPar":{"WareCode":"R014212020102401842","PosId":"3D0611AA0007","TrayNumber":129,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":130,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:40:48.1035198+08:00","InoutPar":{"WareCode":"R008082017031640963","PosId":"3D0711AA0019","TrayNumber":130,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":131,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:37:09.4660145+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":131,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":132,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:41:46.7618749+08:00","InoutPar":{"WareCode":"R202882018042301165","PosId":"3D0711AA0003","TrayNumber":132,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":133,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:36:24.0484167+08:00","InoutPar":{"WareCode":"R008082017042640902","PosId":"3D0611AA0008","TrayNumber":133,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
{"TrayNum":134,"IsFull":false,"InOrOutStore":0,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:41:15.3340773+08:00","InoutPar":{"WareCode":"","PosId":"","TrayNumber":134,"PlateH":0,"PlateW":0,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":false,"rfid":"","rfidLoc":0}}
{"TrayNum":135,"IsFull":true,"InOrOutStore":2,"ShowMsg":"","LastUpdateTime":"2020-12-22T09:38:04.0051339+08:00","InoutPar":{"WareCode":"R008082018020740973","PosId":"3D0701AA0009","TrayNumber":135,"PlateH":8,"PlateW":7,"InStoreNg":false,"NgMsg":"","urgentReel":false,"cutReel":false,"smallReel":true,"rfid":"10099-0D","rfidLoc":-1}}
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
查看文件 @
f4c7862
...
...
@@ -311,11 +311,19 @@ namespace OnlineStore.DeviceLibrary
JHY_11_TopDown
();
}
}
private
void
JHY_10_ReelProEnd
()
private
void
TrayCanGo
()
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_10_ReelProEnd
);
LogUtil
.
info
(
Name
+
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":料盘已移走,更新托盘["
+
currTrayNum
+
"]为空"
);
TrayManager
.
UpdateTrayInfo
(
currTrayNum
);
//更新托盘为空
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_09_WaitProcessReel
))
{
SecondMoveInfo
.
NextMoveStep
(
LineMoveStep
.
JHY_10_ReelProEnd
);
LogUtil
.
info
(
Name
+
" 接驳台托盘"
+
SecondMoveInfo
.
SLog
+
":料盘已移走,更新托盘["
+
currTrayNum
+
"]为空"
);
TrayManager
.
UpdateTrayInfo
(
currTrayNum
);
}
else
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":SecondMoveInfo当前无处理,暂时不用 JHY_10_ReelProEnd "
);
}
}
/// <summary>
...
...
@@ -341,9 +349,9 @@ namespace OnlineStore.DeviceLibrary
InOutParam
inoup
=
trayInfo
.
InoutPar
;
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
inoup
.
urgentReel
.
Equals
(
false
)
&&
inoup
.
cutReel
.
Equals
(
false
))
{
LogInfo
(
"
料盘需要横移到出料线:工单出库料
"
+
""
+
inoup
.
ToStr
());
LogInfo
(
"
工单料->接驳台:
"
+
""
+
inoup
.
ToStr
());
SecondMoveInfo
.
MoveParam
=
inoup
;
MoveInfo
.
MoveParam
=
inoup
;
//
MoveInfo.MoveParam = inoup;
return
true
;
}
...
...
@@ -376,7 +384,7 @@ namespace OnlineStore.DeviceLibrary
InOutParam
inoup
=
trayInfo
.
InoutPar
;
if
(
trayInfo
.
IsFull
&&
trayInfo
.
InoutPar
.
InStoreNg
&&
this
.
DeviceID
.
Equals
(
217
))
{
LogInfo
(
"
料盘需要移栽到NG箱:入料NG料
"
+
""
+
inoup
.
ToStr
());
LogInfo
(
"
NG料->NG箱
"
+
""
+
inoup
.
ToStr
());
//如果分配了库位,需要调用取消
if
(
trayInfo
.
InoutPar
.
WareCode
!=
""
&&
trayInfo
.
InoutPar
.
PosId
!=
""
)
{
...
...
@@ -388,7 +396,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
trayInfo
.
InOrOutStore
.
Equals
(
ReelType
.
OutStore
)
&&
inoup
.
urgentReel
&&
this
.
DeviceID
.
Equals
(
217
))
{
LogInfo
(
"
料盘需要移栽到NG箱:紧急料
"
+
""
+
inoup
.
ToStr
());
LogInfo
(
"
紧急料->NG箱
"
+
""
+
inoup
.
ToStr
());
SecondMoveInfo
.
MoveParam
=
inoup
;
MoveInfo
.
MoveParam
=
inoup
;
return
true
;
...
...
@@ -459,7 +467,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_02_CylinderTake
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
if
(
IsNgPro
())
{
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":横移气缸取料端"
);
}
else
...
...
@@ -504,16 +512,7 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_07_ClampCheck
))
{
//更新托盘为空
if
(
SecondMoveInfo
.
IsStep
(
LineMoveStep
.
JHY_09_WaitProcessReel
))
{
//托盘可以离开
JHY_10_ReelProEnd
();
}
else
{
OutLog
(
logName
+
MoveInfo
.
SLog
+
":SecondMoveInfo当前无处理,暂时不用 JHY_10_ReelProEnd "
);
}
if
(
IsNgPro
())
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_11_CylinderGive
);
...
...
@@ -549,26 +548,7 @@ namespace OnlineStore.DeviceLibrary
OutLog
(
logName
+
MoveInfo
.
SLog
+
":夹料气缸放松 "
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_ClampCylinder_Work
,
IO_Type
.
HY_ClampCylinder_Relax
);
if
(
MoveInfo
.
MoveParam
.
urgentReel
)
{
afterPutCutOK
=
false
;
OutLog
(
"紧急出料:"
+
MoveInfo
.
SLog
+
",料盘已放入NG箱,发送 afterPutCut"
);
TaskData
taskData
;
string
shefId
=
"BN"
;
int
ShelfLoc
=
1
;
string
msg
=
SServerManager
.
afterPutCut
(
Name
,
shefId
,
MoveInfo
.
MoveParam
.
WareCode
,
""
,
ShelfLoc
,
out
taskData
);
if
(
String
.
IsNullOrEmpty
(
msg
).
Equals
(
false
))
{
LogUtil
.
error
(
Name
+
"【"
+
MoveInfo
.
MoveParam
.
WareCode
+
"】【"
+
shefId
+
"】【"
+
ShelfLoc
.
ToString
()
+
"】afterPutCut 结果:"
+
msg
);
taskData
=
null
;
}
afterPutCutOK
=
true
;
}
else
{
afterPutCutOK
=
true
;
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_13_ClampRelax
))
{
...
...
@@ -589,14 +569,32 @@ namespace OnlineStore.DeviceLibrary
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_15_ClampCheck
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
JM_16_ReelArrive
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
30
000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1
000
));
CylinderMove
(
null
,
IO_Type
.
HY_MoveCylinder_Give
,
IO_Type
.
HY_MoveCylinder_Take
);
afterPutCutOK
=
false
;
string
code
=
MoveInfo
.
MoveParam
.
WareCode
;
int
robotIndex
=
GetRobotIndex
();
LogUtil
.
info
(
Name
+
MoveInfo
.
SLog
+
logName
+
"送料,接驳台有料,调用arriveRobotLocation="
+
robotIndex
+
"["
+
code
+
"]"
);
string
msg
=
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
code
);
MoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
if
(
MoveInfo
.
MoveParam
.
urgentReel
)
{
LogUtil
.
info
(
Name
+
MoveInfo
.
SLog
+
logName
+
",紧急料已放入NG箱,发送 afterPutCut ["
+
code
+
"] "
);
TaskData
taskData
;
string
msg
=
SServerManager
.
afterPutCut
(
Name
,
"BN"
,
code
,
""
,
1
,
out
taskData
);
afterPutCutOK
=
true
;
}
else
if
(!
MoveInfo
.
MoveParam
.
InStoreNg
)
{
int
robotIndex
=
GetRobotIndex
();
LogUtil
.
info
(
Name
+
MoveInfo
.
SLog
+
logName
+
",工单料到达接驳台,发送 arriveRobotLocation="
+
robotIndex
+
"["
+
code
+
"]"
);
string
msg
=
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
code
);
afterPutCutOK
=
true
;
}
else
{
afterPutCutOK
=
true
;
}
TrayCanGo
();
//MoveInfo.EndMove();
//runStatus = LineRunStatus.Runing;
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_16_ReelArrive
))
{
...
...
@@ -606,16 +604,21 @@ namespace OnlineStore.DeviceLibrary
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_17_CylinderTake
))
{
string
log
=
"arriveRobotLocation"
;
if
(
IsNgPro
())
{
log
=
"afterPutCutTask"
;
}
if
(
afterPutCutOK
)
{
ClearTimeoutAlarm
(
"给服务器发送
afterPutCutTask
完成"
);
ClearTimeoutAlarm
(
"给服务器发送
"
+
log
+
"
完成"
);
MoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
OutLog
(
logName
+
MoveInfo
.
SLog
+
":结束 "
);
}
else
if
(
MoveInfo
.
IsTimeOut
(
60
))
{
MoveTimeOut
(
MoveInfo
,
"等待给服务器发送
afterPutCutTask
完成"
);
MoveTimeOut
(
MoveInfo
,
"等待给服务器发送
"
+
log
+
"
完成"
);
}
}
else
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论