Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 26d8f298
由
LN
编写于
2021-06-09 13:31:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加预扫码超时判断
1 个父辈
2e06d2a8
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
49 行增加
和
40 行删除
dll/eyemLib.dll
dll/libdecode.dll
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/eyemLib.dll
source/DeviceLibrary/libdecode.dll
dll/eyemLib.dll
查看文件 @
26d8f29
此文件类型无法预览
dll/libdecode.dll
查看文件 @
26d8f29
此文件类型无法预览
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
26d8f29
...
...
@@ -846,10 +846,11 @@ namespace OnlineStore.DeviceLibrary
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":提升轴下降到料盘不溢出("
+
(
currPositon
-
Config
.
Height_ChangeValue
*
30
)
+
"):"
+
targetPosition
+
",速度"
+
Config
.
BatchAxis_P4Speed
);
BatchAxis
.
AbsMove
(
MoveInfo
,
targetPosition
,
Config
.
BatchAxis_P4Speed
);
}
private
Task
YuScanTask
=
null
;
private
void
YuScanCode
()
{
bool
isScan
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
NeedScanCode
).
Equals
(
1
);
YuScanTask
=
null
;
//TODO 此处需要等待空托盘
if
(
MoveInfo
.
ShelfNoTray
.
Equals
(
false
)
&&
isScan
)
{
...
...
@@ -859,8 +860,8 @@ namespace OnlineStore.DeviceLibrary
List
<
string
>
bijiaoList
=
new
List
<
string
>(
LastCodeList
);
try
{
Task
<
List
<
string
>>
s
canTask
=
Task
.
Factory
.
StartNew
(
delegate
{
YuS
canTask
=
Task
.
Factory
.
StartNew
(
delegate
{
Thread
.
Sleep
(
100
);
NextCodeList
=
CodeManager
.
CameraScan
(
Config
.
GetCameraList
(),
Name
.
Trim
()+
"预扫码"
);
bool
isCanUse
=
true
;
...
...
@@ -916,53 +917,61 @@ namespace OnlineStore.DeviceLibrary
{
if
(
CylinderIsOk
(
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_18_ScanCode
);
bool
isScan
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
NeedScanCode
).
Equals
(
1
);
if
(
YuScanTask
==
null
||
YuScanTask
.
IsCompleted
)
{
ClearTimeoutAlarm
(
"预扫码结束超时"
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_18_ScanCode
);
bool
isScan
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
NeedScanCode
).
Equals
(
1
);
LastCodeList
=
new
List
<
string
>();
LastCodeList
=
new
List
<
string
>();
ScanCodeTask
=
null
;
if
(
NextCodeList
.
Count
>
0
)
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":开始扫码:使用预扫码"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
LastCodeList
=
new
List
<
string
>(
NextCodeList
);
NextCodeList
=
new
List
<
string
>();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_21_CylinderTake
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移取料端"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
}
else
if
(
isScan
)
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":开始扫码"
);
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitFeedScanCode
());
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
7000
));
try
ScanCodeTask
=
null
;
if
(
NextCodeList
.
Count
>
0
)
{
ScanCodeTask
=
Task
.
Factory
.
StartNew
(
delegate
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":开始扫码:使用预扫码"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
300
));
LastCodeList
=
new
List
<
string
>(
NextCodeList
);
NextCodeList
=
new
List
<
string
>();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_21_CylinderTake
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移取料端"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
}
else
if
(
isScan
)
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":开始扫码"
);
MoveInfo
.
OneWaitCanEndStep
=
true
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitFeedScanCode
());
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
7000
));
try
{
LastCodeList
=
CodeManager
.
CameraScan
(
Config
.
GetCameraList
(),
Name
);
bool
hasRightCode
=
CodeManager
.
HasRightCode
(
LastCodeList
.
ToArray
());
if
(!
hasRightCode
)
ScanCodeTask
=
Task
.
Factory
.
StartNew
(
delegate
{
LastCodeList
=
CodeManager
.
CameraScan
(
Config
.
GetCameraList
(),
Name
,
false
,
3000
);
}
return
LastCodeList
;
});
LastCodeList
=
CodeManager
.
CameraScan
(
Config
.
GetCameraList
(),
Name
);
bool
hasRightCode
=
CodeManager
.
HasRightCode
(
LastCodeList
.
ToArray
());
if
(!
hasRightCode
)
{
LastCodeList
=
CodeManager
.
CameraScan
(
Config
.
GetCameraList
(),
Name
,
false
,
3000
);
}
return
LastCodeList
;
});
}
catch
(
Exception
ex
)
{
LogUtil
.
error
(
""
+
MoveInfo
.
SLog
+
":扫码出错:"
,
ex
);
}
//finally
//{
// MoveInfo.EndStepWait();
//}
}
catch
(
Exception
ex
)
else
{
LogUtil
.
error
(
""
+
MoveInfo
.
SLog
+
":扫码出错:"
,
ex
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":不需要扫码"
);
}
//finally
//{
// MoveInfo.EndStepWait();
//}
}
else
else
if
(
MoveInfo
.
IsTimeOut
(
60
))
{
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":不需要扫码
"
);
MoveTimeOut
(
MoveInfo
,
"预扫码结束超时
"
);
}
}
else
...
...
source/DeviceLibrary/eyemLib.dll
查看文件 @
26d8f29
此文件类型无法预览
source/DeviceLibrary/libdecode.dll
查看文件 @
26d8f29
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论