Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 244838bf
由
张东亮
编写于
2023-10-13 08:45:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
开放出库料盘厚度检测参数
1 个父辈
9734331e
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
3 行删除
Common/Setting_Init.cs
DeviceLibrary/theMachine/MainMachine_String.cs
Common/Setting_Init.cs
查看文件 @
244838b
...
@@ -47,7 +47,7 @@ namespace OnlineStore.Common
...
@@ -47,7 +47,7 @@ namespace OnlineStore.Common
#
region
料盘高度计算参数
#
region
料盘高度计算参数
[
MyConfigComment
(
"启用自定义厚度计算策略"
)]
[
MyConfigComment
(
"启用自定义厚度计算策略"
)]
public
static
MyConfig
<
bool
>
Switch_UseCustHeightList
=
tru
e
;
public
static
MyConfig
<
bool
>
Switch_UseCustHeightList
=
fals
e
;
/// <summary>
/// <summary>
/// 宽度15料盘,厚度自减mm
/// 宽度15料盘,厚度自减mm
/// </summary>
/// </summary>
...
@@ -63,5 +63,12 @@ namespace OnlineStore.Common
...
@@ -63,5 +63,12 @@ namespace OnlineStore.Common
[
MyConfigComment
(
"自定义厚度列表"
)]
[
MyConfigComment
(
"自定义厚度列表"
)]
public
static
MyConfig
<
string
[
]>
Param_CalHeight_HeightList
=
new
string
[]
{
"12=12#16"
,
"16=16#24"
,
"24=24#32"
,
"32=32#44"
,
"44=44#56"
,
"56=56#60"
};
public
static
MyConfig
<
string
[
]>
Param_CalHeight_HeightList
=
new
string
[]
{
"12=12#16"
,
"16=16#24"
,
"24=24#32"
,
"32=32#44"
,
"44=44#56"
,
"56=56#60"
};
#
endregion
#
endregion
[
MyConfigComment
(
"出库厚度检测下偏差的值"
)]
public
static
MyConfig
<
int
>
OutstoreHeightCheckLowerDeviation
=
5
;
[
MyConfigComment
(
"出库厚度检测上偏差的值"
)]
public
static
MyConfig
<
int
>
OutstoreHeightCheckUpperDeviation
=
3
;
[
MyConfigComment
(
"出库料盘定位信号对射触发位置高度偏差"
)]
public
static
MyConfig
<
int
>
ReelCheckTriggerDeviation
=
5
;
}
}
}
}
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
244838b
...
@@ -387,12 +387,14 @@ namespace DeviceLibrary
...
@@ -387,12 +387,14 @@ namespace DeviceLibrary
var
heightcheck
=
(
LastOutDownPosition
-
Batch_Axis
.
GetAclPosition
())
/
Config
.
Batch_PoToMM
;
var
heightcheck
=
(
LastOutDownPosition
-
Batch_Axis
.
GetAclPosition
())
/
Config
.
Batch_PoToMM
;
StringMoveInfo
.
log
(
$
"LastOutDownPosition={LastOutDownPosition},CurrentPosition={Batch_Axis.GetAclPosition()},heightcheck={heightcheck}"
);
StringMoveInfo
.
log
(
$
"LastOutDownPosition={LastOutDownPosition},CurrentPosition={Batch_Axis.GetAclPosition()},heightcheck={heightcheck}"
);
int
height
=
StringMoveInfo
.
MoveParam
.
PlateH
+
3
;
int
height
=
StringMoveInfo
.
MoveParam
.
PlateH
+
3
;
if
(
heightcheck
<=
5
)
int
outstoreHeightCheckLowDevia
=
Setting_Init
.
OutstoreHeightCheckLowerDeviation
;
int
outstoreHeightCheckUpDevia
=
Setting_Init
.
OutstoreHeightCheckUpperDeviation
;
if
(
heightcheck
<=
Setting_Init
.
ReelCheckTriggerDeviation
)
{
{
Msg
.
add
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
),
MsgLevel
.
alarm
);
Msg
.
add
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
),
MsgLevel
.
alarm
);
RobotManage
.
UserPause
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
));
RobotManage
.
UserPause
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
));
}
}
else
if
((
heightcheck
<
height
-
3
)
||
(
heightcheck
>
height
+
3
))
else
if
((
heightcheck
<
height
-
outstoreHeightCheckLowDevia
)
||
(
heightcheck
>
height
+
outstoreHeightCheckUpDevia
))
//
{
{
Msg
.
add
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
),
MsgLevel
.
alarm
);
Msg
.
add
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
),
MsgLevel
.
alarm
);
RobotManage
.
UserPause
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
));
RobotManage
.
UserPause
(
crc
.
GetString
(
L
.
outstore_abnormal_reel
,
"出库时料盘未成功放入料串,请检查"
));
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论