Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1069_MIMO_PlUS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6e99365f
由
张东亮
编写于
2023-10-08 16:13:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
开放料盘最大厚度配置
1 个父辈
2eceb880
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
6 行删除
DeviceLibrary/theMachine/MainMachine_String.cs
DeviceLibrary/theMachine/MainMachine_String.cs
查看文件 @
6e99365
...
@@ -245,11 +245,13 @@ namespace DeviceLibrary
...
@@ -245,11 +245,13 @@ namespace DeviceLibrary
{
{
tpos2
=
0
;
tpos2
=
0
;
}
}
if
(
StringState
==
StringStateE
.
OutStore
&&
tpos2
-
Config
.
Batch_PoToMM
*
60
<
0
)
int
maxReelHeight
=
ConfigHelper
.
Config
.
Get
(
"ReelMaxHeightMM"
,
60
);
int
minPos1
=
tpos2
-
Config
.
Batch_PoToMM
*
maxReelHeight
;
if
(
StringState
==
StringStateE
.
OutStore
&&
minPos1
<
0
)
{
{
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringState
=
StringStateE
.
Full
;
StringState
=
StringStateE
.
Full
;
StringMoveInfo
.
log
(
$
"料串已满可以送出"
);
StringMoveInfo
.
log
(
$
"料串已满可以送出
,提升轴当前={Batch_Axis.GetAclPosition()},最小脉冲值={minPos1}
"
);
}
}
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
tpos2
,
Config
.
Batch_P1_speed
);
Batch_Axis
.
AbsMove
(
StringMoveInfo
,
tpos2
,
Config
.
Batch_P1_speed
);
break
;
break
;
...
@@ -331,6 +333,7 @@ namespace DeviceLibrary
...
@@ -331,6 +333,7 @@ namespace DeviceLibrary
var
tpos
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
(
StringMoveInfo
.
MoveParam
.
PlateH
+
Config
.
Batch_OutPlateDownMM
);
var
tpos
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
(
StringMoveInfo
.
MoveParam
.
PlateH
+
Config
.
Batch_OutPlateDownMM
);
if
(
tpos
<
0
)
if
(
tpos
<
0
)
tpos
=
0
;
tpos
=
0
;
maxReelHeight
=
ConfigHelper
.
Config
.
Get
(
"ReelMaxHeightMM"
,
60
);
if
(
tpos
<
Config
.
Batch_P2
*
0.3
&&
!
downCheck1
)
if
(
tpos
<
Config
.
Batch_P2
*
0.3
&&
!
downCheck1
)
{
{
StringMoveInfo
.
log
(
$
"料串下降到30%位置,重新上升"
);
StringMoveInfo
.
log
(
$
"料串下降到30%位置,重新上升"
);
...
@@ -343,7 +346,7 @@ namespace DeviceLibrary
...
@@ -343,7 +346,7 @@ namespace DeviceLibrary
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringReelPut_01
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringReelPut_01
);
downCheck2
=
true
;
downCheck2
=
true
;
}
}
else
if
(
tpos
>
Config
.
Batch_P1
+
Config
.
Batch_PoToMM
*
60
)
else
if
(
tpos
>
Config
.
Batch_P1
+
Config
.
Batch_PoToMM
*
maxReelHeight
)
{
{
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringReadyPut
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringReadyPut
);
StringMoveInfo
.
log
(
$
"料盘放入料串,下降{StringMoveInfo.MoveParam.PlateH}+{3}cm"
);
StringMoveInfo
.
log
(
$
"料盘放入料串,下降{StringMoveInfo.MoveParam.PlateH}+{3}cm"
);
...
@@ -359,7 +362,7 @@ namespace DeviceLibrary
...
@@ -359,7 +362,7 @@ namespace DeviceLibrary
{
{
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringOut_01
);
StringState
=
StringStateE
.
Full
;
StringState
=
StringStateE
.
Full
;
StringMoveInfo
.
log
(
$
"料串已满可以送出"
);
StringMoveInfo
.
log
(
$
"料串已满可以送出
,提升轴当前位置={Batch_Axis.GetAclPosition()},最小脉冲值={tpos}
"
);
}
}
break
;
break
;
case
MoveStep
.
StringReelPut_01
:
case
MoveStep
.
StringReelPut_01
:
...
@@ -389,11 +392,11 @@ namespace DeviceLibrary
...
@@ -389,11 +392,11 @@ namespace DeviceLibrary
break
;
break
;
case
MoveStep
.
StringReelPut_05
:
case
MoveStep
.
StringReelPut_05
:
LastOutDownPosition
=
Batch_Axis
.
GetAclPosition
();
LastOutDownPosition
=
Batch_Axis
.
GetAclPosition
();
int
maxReelHeight
=
ConfigHelper
.
Config
.
Get
(
"ReelMaxHeightMM"
,
60
);
maxReelHeight
=
ConfigHelper
.
Config
.
Get
(
"ReelMaxHeightMM"
,
60
);
var
tpos3
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
Config
.
Batch_OutPlateDownMM
;
var
tpos3
=
Batch_Axis
.
GetAclPosition
()
-
Config
.
Batch_PoToMM
*
Config
.
Batch_OutPlateDownMM
;
if
(
tpos3
<
0
)
if
(
tpos3
<
0
)
tpos3
=
0
;
tpos3
=
0
;
int
minPos
=
Config
.
Batch_P1
+
Config
.
Batch_PoToMM
*
maxReelHeight
;
int
minPos
=
Config
.
Batch_P1
+
Config
.
Batch_PoToMM
*
maxReelHeight
;
if
(
tpos3
>
minPos
)
//料盘最大高度
if
(
tpos3
>
minPos
)
//料盘最大高度
{
{
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringLoad_04b
);
StringMoveInfo
.
NextMoveStep
(
MoveStep
.
StringLoad_04b
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论