Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 628cea4c
由
LN
编写于
2021-04-27 16:28:44 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
是否有正确条码逻辑修改。夹爪夹料时超时报警时间修改
1 个父辈
fda93fd3
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
24 行增加
和
6 行删除
source/AssemblyLineClient/记录.txt
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
source/DeviceLibrary/assemblymanager/ALineManager.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
source/DeviceLibrary/model/LineMoveInfo.cs
source/AssemblyLineClient/记录.txt
查看文件 @
628cea4
20200426
1,出料机构的料架rfid上传到环形线。
2,环形线增加夹爪忽略的料号配置,此类料盘夹爪不检测是否有料
夹爪后续调整
夹爪后续调整
1.用自带软件连接后,PID调节改大,改为9或者10
1.用自带软件连接后,PID调节改大,改为9或者10
2.大料速度改小,目标20,先改成100试下
2.大料速度改小,目标20,先改成100试下
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
628cea4
...
@@ -390,6 +390,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -390,6 +390,7 @@ namespace OnlineStore.DeviceLibrary
if
(
UpdownIsInP1
())
if
(
UpdownIsInP1
())
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_25_CheckTray
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_25_CheckTray
);
MoveInfo
.
TimeOutSeconds
=
5
;
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_AxisLocationCheck
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_AxisLocationCheck
,
IO_VALUE
.
LOW
));
if
(
LineManager
.
NeedWaitHassReel
(
lastcode
))
if
(
LineManager
.
NeedWaitHassReel
(
lastcode
))
{
{
...
...
source/DeviceLibrary/assemblyLine/MoveEquip_Partial.cs
查看文件 @
628cea4
...
@@ -371,6 +371,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -371,6 +371,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_57_WaitHasReel
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MO_57_WaitHasReel
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 等待夹爪有料"
,
1
);
OutLog
(
"出库 "
+
MoveInfo
.
SLog
+
": 等待夹爪有料"
,
1
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
MoveInfo
.
TimeOutSeconds
=
5
;
}
}
}
}
}
}
...
@@ -597,6 +598,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -597,6 +598,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_07_WaitHasReel
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
MI_07_WaitHasReel
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 等待夹爪有料"
);
InLog
(
"入库 "
+
MoveInfo
.
SLog
+
": 等待夹爪有料"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
MoveInfo
.
TimeOutSeconds
=
5
;
}
}
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_07_WaitHasReel
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
MI_07_WaitHasReel
))
...
...
source/DeviceLibrary/assemblymanager/ALineManager.cs
查看文件 @
628cea4
...
@@ -289,6 +289,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -289,6 +289,7 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
PnList
==
null
)
if
(
PnList
==
null
)
{
{
PnList
=
new
List
<
string
>();
string
config
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
PNList
);
string
config
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
PNList
);
string
[]
array
=
config
.
Split
(
'#'
);
string
[]
array
=
config
.
Split
(
'#'
);
foreach
(
string
s
in
array
)
foreach
(
string
s
in
array
)
...
...
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
628cea4
...
@@ -64,6 +64,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -64,6 +64,7 @@ namespace OnlineStore.DeviceLibrary
//有一个到位就算到位
//有一个到位就算到位
moveInfo
.
OneWaitCanEndStep
=
true
;
moveInfo
.
OneWaitCanEndStep
=
true
;
}
}
moveInfo
.
TimeOutSeconds
=
5
;
}
}
}
}
...
...
source/DeviceLibrary/deviceLibrary/halcon/CodeManager.cs
查看文件 @
628cea4
...
@@ -289,20 +289,24 @@ namespace OnlineStore.DeviceLibrary
...
@@ -289,20 +289,24 @@ namespace OnlineStore.DeviceLibrary
public
static
bool
HasRightCode
(
params
string
[]
codes
)
public
static
bool
HasRightCode
(
params
string
[]
codes
)
{
{
//640104 * 3331001202 * 210417624 * 600 * 0011
//分号分割后长度=4,L,E,B,R
//分号分割后长度=4,L,E,B,R
try
try
{
{
foreach
(
string
code
in
codes
)
foreach
(
string
code
in
codes
)
{
{
string
[]
strarray
=
code
.
Split
(
'
;
'
);
string
[]
strarray
=
code
.
Split
(
'
*
'
);
if
(
strarray
.
Length
==
4
)
if
(
strarray
.
Length
==
5
)
{
{
if
(
strarray
[
0
].
StartsWith
(
"L"
)
&&
try
strarray
[
1
].
StartsWith
(
"E"
)
&&
strarray
[
2
].
StartsWith
(
"B"
))
{
{
int
num
=
Convert
.
ToInt32
(
strarray
[
3
].
Trim
());
return
true
;
return
true
;
}
catch
(
Exception
ex
)
{
return
false
;
}
}
}
}
}
}
}
}
...
...
source/DeviceLibrary/model/LineMoveInfo.cs
查看文件 @
628cea4
...
@@ -106,6 +106,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -106,6 +106,7 @@ namespace OnlineStore.DeviceLibrary
}
}
public
void
NextMoveStep
(
LineMoveStep
step
)
public
void
NextMoveStep
(
LineMoveStep
step
)
{
{
TimeOutSeconds
=
60
;
PreMoveStep
=
moveStep
;
PreMoveStep
=
moveStep
;
moveStep
=
step
;
moveStep
=
step
;
LastSetpTime
=
DateTime
.
Now
;
LastSetpTime
=
DateTime
.
Now
;
...
@@ -126,6 +127,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -126,6 +127,7 @@ namespace OnlineStore.DeviceLibrary
}
}
public
void
NewMove
(
LineMoveType
type
)
public
void
NewMove
(
LineMoveType
type
)
{
{
TimeOutSeconds
=
60
;
moveStep
=
LineMoveStep
.
Wait
;
moveStep
=
LineMoveStep
.
Wait
;
this
.
moveType
=
type
;
this
.
moveType
=
type
;
LastSetpTime
=
DateTime
.
Now
;
LastSetpTime
=
DateTime
.
Now
;
...
@@ -135,6 +137,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -135,6 +137,7 @@ namespace OnlineStore.DeviceLibrary
}
}
public
void
NewMove
(
LineMoveType
type
,
InOutParam
param
)
public
void
NewMove
(
LineMoveType
type
,
InOutParam
param
)
{
{
TimeOutSeconds
=
60
;
moveStep
=
LineMoveStep
.
Wait
;
moveStep
=
LineMoveStep
.
Wait
;
this
.
moveType
=
type
;
this
.
moveType
=
type
;
this
.
MoveParam
=
param
;
this
.
MoveParam
=
param
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论