Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e1f23496
由
LN
编写于
2021-05-17 10:30:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.入料最后一盘补充高度改为可配置。
2.宽度检测错误BUG修改。 3.夹爪先改回原来的,脆盘不验证是否夹到料。
1 个父辈
4098afb9
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
32 行增加
和
14 行删除
source/AssemblyLineClient/记录.txt
source/DeviceLibrary/LineConfig/Config_FeedingEquip_1.csv
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
source/DeviceLibrary/assemblymanager/ALineManager.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/LoadCVSLibrary/storeConfig/config/FeedingEquip_Config.cs
source/AssemblyLineClient/记录.txt
查看文件 @
e1f2349
20210510
20210515
1.入料最后一盘补充高度改为可配置。
PRO,0,最后一盘料补充高度(mm),LastReel_AHeight,1,,,,,
2.宽度检测错误BUG修改。
3.夹爪先改回原来的,脆盘不验证是否夹到料。
20210510
夹爪脆盘和普通料盘参数分开配置
夹爪脆盘和普通料盘参数分开配置
20200428
20200428
...
...
source/DeviceLibrary/LineConfig/Config_FeedingEquip_1.csv
查看文件 @
e1f2349
...
@@ -16,6 +16,7 @@ PRO,0,提升上料轴P2速度,BatchAxis_P2Speed,70000,,,,,,,,,,,,
...
@@ -16,6 +16,7 @@ PRO,0,提升上料轴P2速度,BatchAxis_P2Speed,70000,,,,,,,,,,,,
PRO,0,提升上料轴P3速度,BatchAxis_P3Speed,5000,,,,,,,,,,,,
PRO,0,提升上料轴P3速度,BatchAxis_P3Speed,5000,,,,,,,,,,,,
PRO,0,提升上料轴P4速度/料盘拿走后提升轴下降速度,BatchAxis_P4Speed,5000,,,,,,,,,,,,
PRO,0,提升上料轴P4速度/料盘拿走后提升轴下降速度,BatchAxis_P4Speed,5000,,,,,,,,,,,,
PRO,0,提升上料轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,804,,,,,,,,,,,,
PRO,0,提升上料轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,804,,,,,,,,,,,,
PRO,0,最后一盘料补充高度(mm),LastReel_AHeight,1,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
AXIS,0,轴二移栽上下轴,UpDown_Axis,6,HC,,800000,1500000,1500000,1200,8000,30000,10,100,0,0
AXIS,0,轴二移栽上下轴,UpDown_Axis,6,HC,,800000,1500000,1500000,1200,8000,30000,10,100,0,0
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,100,,,,,,,,,,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,100,,,,,,,,,,,,
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip_InStore.cs
查看文件 @
e1f2349
using
Asa
;
using
Asa
;
using
OnlineStore.Common
;
using
OnlineStore.Common
;
using
OnlineStore.LoadCSVLibrary
;
using
OnlineStore.LoadCSVLibrary
;
using
System
;
using
System
;
...
@@ -419,15 +420,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -419,15 +420,14 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
FI_26_BatchAxisToP3
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
FI_26_BatchAxisToP3
))
{
{
FI_27_SaveSize
();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_28_CylinderGive
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_28_CylinderGive
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移气缸放料SOL"
);
InLog
(
"料盘移栽"
+
MoveInfo
.
SLog
+
":上料横移气缸放料SOL"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Take
,
IO_Type
.
SL_MoveCylinder_Give
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
//
LastHeight = GetHeight();
LastHeight
=
GetHeight
();
//
MoveInfo.MoveParam.PlateH = LastHeight;
MoveInfo
.
MoveParam
.
PlateH
=
LastHeight
;
FI_31_GetPosID
();
//
FI_31_GetPosID();
//判断是否还有料盘
//判断是否还有料盘
if
(
IOValue
(
IO_Type
.
SL_AxisLocationCheck
).
Equals
(
IO_VALUE
.
LOW
))
if
(
IOValue
(
IO_Type
.
SL_AxisLocationCheck
).
Equals
(
IO_VALUE
.
LOW
))
{
{
...
@@ -459,6 +459,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -459,6 +459,7 @@ namespace OnlineStore.DeviceLibrary
//}
//}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
FI_28_CylinderGive
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
FI_28_CylinderGive
))
{
{
FI_27_SaveSize
();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_29_BatchAxisDown
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_29_BatchAxisDown
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
...
@@ -466,6 +467,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -466,6 +467,7 @@ namespace OnlineStore.DeviceLibrary
{
{
FI_BatchAxisDown
();
FI_BatchAxisDown
();
}
}
FI_31_GetPosID
();
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
FI_29_BatchAxisDown
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
FI_29_BatchAxisDown
))
{
{
...
@@ -732,7 +734,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -732,7 +734,7 @@ namespace OnlineStore.DeviceLibrary
{
{
MoveInfo
.
MoveParam
.
PlateH
=
LastHeight
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_27_SaveSize
);
MoveInfo
.
MoveParam
.
PlateH
=
LastHeight
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FI_27_SaveSize
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
LastHeight
=
GetHeight
();
//
LastHeight = GetHeight();
LastWidth
=
GetWidth
();
LastWidth
=
GetWidth
();
MoveInfo
.
MoveParam
.
PlateW
=
LastWidth
;
MoveInfo
.
MoveParam
.
PlateW
=
LastWidth
;
...
@@ -1067,10 +1069,15 @@ namespace OnlineStore.DeviceLibrary
...
@@ -1067,10 +1069,15 @@ namespace OnlineStore.DeviceLibrary
}
}
float
height
=
(
float
)
Math
.
Ceiling
(
1F
*
Math
.
Abs
(
EndMovePosition
-
StartMovePosition
)
/
AxisChangeValue
);
float
height
=
(
float
)
Math
.
Ceiling
(
1F
*
Math
.
Abs
(
EndMovePosition
-
StartMovePosition
)
/
AxisChangeValue
);
string
buchongStr
=
""
;
string
buchongStr
=
""
;
int
lastadd
=
Config
.
LastReel_AHeight
;
if
(
lastadd
<=
0
)
{
lastadd
=
1
;
}
if
(
isLast
)
if
(
isLast
)
{
{
buchongStr
=
"(最后一盘料已补充
1
)"
;
buchongStr
=
"(最后一盘料已补充
"
+
lastadd
+
"
)"
;
height
+=
1
;
height
+=
lastadd
;
}
}
////如果检测出<=15,都按照8计算
////如果检测出<=15,都按照8计算
...
...
source/DeviceLibrary/assemblymanager/ALineManager.cs
查看文件 @
e1f2349
...
@@ -368,8 +368,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -368,8 +368,8 @@ namespace OnlineStore.DeviceLibrary
}
}
public
static
bool
NeedWaitHassReel
(
params
string
[]
codes
)
public
static
bool
NeedWaitHassReel
(
params
string
[]
codes
)
{
{
return
true
;
//
return true;
//
return !IsCrispReel(codes);
return
!
IsCrispReel
(
codes
);
}
}
}
}
}
}
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
e1f2349
...
@@ -76,8 +76,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -76,8 +76,8 @@ namespace OnlineStore.DeviceLibrary
if
(
moveInfo
!=
null
)
if
(
moveInfo
!=
null
)
{
{
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampReached
((
int
)
distance
));
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampReached
((
int
)
distance
));
if
(
checkHasReel
)
//
if (checkHasReel )
//if (checkHasReel && LineManager.NeedWaitHassReel(code
))
if
(
checkHasReel
&&
(!
iscrisp
))
{
{
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
moveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitClampHasReel
());
//有一个到位就算到位
//有一个到位就算到位
...
...
source/LoadCVSLibrary/storeConfig/config/FeedingEquip_Config.cs
查看文件 @
e1f2349
...
@@ -109,7 +109,11 @@ namespace OnlineStore.LoadCSVLibrary
...
@@ -109,7 +109,11 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
/// </summary>
[
ConfigProAttribute
(
"Height_ChangeValue"
,
true
)]
[
ConfigProAttribute
(
"Height_ChangeValue"
,
true
)]
public
int
Height_ChangeValue
{
get
;
set
;
}
public
int
Height_ChangeValue
{
get
;
set
;
}
/// <summary>
///PRO,0,最后一盘料补充高度(mm),LastReel_AHeight,1,,,,,
/// </summary>
[
ConfigProAttribute
(
"LastReel_AHeight"
,
false
)]
public
int
LastReel_AHeight
{
get
;
set
;
}
/// <summary>
/// <summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论