Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
1053_CycleLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 612feae2
由
刘韬
编写于
2022-12-23 09:51:26 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
63494615
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
28 行增加
和
11 行删除
DeviceLibrary/theMachine/sub/TransplantMove.cs
DeviceLibrary/theMachine/sub/TrayStop.cs
DeviceLibrary/theMachine/sub/TransplantMove.cs
查看文件 @
612feae
...
...
@@ -244,10 +244,14 @@ namespace DeviceLibrary
break
;
case
MoveStep
.
TransplantMove_11
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TransplantMove_12
);
var
AMH_TS_P2
=
DeviceGroup
.
p2
-
(
MoveInfo
.
MoveParam
.
PlateH
-
70
)
*
Config
.
AMH_TS_PoToMM
+
MetrialGetRetry
*
2
*
Config
.
AMH_TS_PoToMM
;
int
ReelHeight
=
MoveInfo
.
MoveParam
.
PlateH
;
if
(
FixtureConfig
.
GetFixtureHeight
(
MoveInfo
.
MoveParam
.
PlateW
,
MoveInfo
.
MoveParam
.
PlateH
,
out
int
actualheight1
))
ReelHeight
=
actualheight1
;
var
AMH_TS_P2
=
DeviceGroup
.
p2
-
(
ReelHeight
-
70
)
*
Config
.
AMH_TS_PoToMM
+
MetrialGetRetry
*
2
*
Config
.
AMH_TS_PoToMM
;
axis
.
AbsMove
(
MoveInfo
,
AMH_TS_P2
,
Config
.
AMH_TS_P1_speed
);
IOMove
(
IO_Type
.
AMH_Sucker
,
IO_VALUE
.
HIGH
);
MoveInfo
.
log
(
$
"PlateH:{MoveInfo.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2},MetrialGetRetry:{MetrialGetRetry}"
);
MoveInfo
.
log
(
$
"PlateH:{MoveInfo.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2},
ReelHeight:{ReelHeight},
MetrialGetRetry:{MetrialGetRetry}"
);
break
;
case
MoveStep
.
TransplantMove_12
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TransplantMove_13
);
...
...
@@ -304,12 +308,15 @@ namespace DeviceLibrary
break
;
case
MoveStep
.
TransplantMove_21
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TransplantMove_22
);
AMH_TS_P2
=
DeviceGroup
.
p3
-
(
MoveInfo
.
MoveParam
.
PlateH
-
70
)
*
Config
.
AMH_TS_PoToMM
+
(
MetrialGetRetry
*
2
*
Config
.
AMH_TS_PoToMM
);
ReelHeight
=
MoveInfo
.
MoveParam
.
PlateH
;
if
(
FixtureConfig
.
GetFixtureHeight
(
MoveInfo
.
MoveParam
.
PlateW
,
MoveInfo
.
MoveParam
.
PlateH
,
out
actualheight1
))
ReelHeight
=
actualheight1
;
AMH_TS_P2
=
DeviceGroup
.
p3
-
(
ReelHeight
-
70
)
*
Config
.
AMH_TS_PoToMM
+
(
MetrialGetRetry
*
2
*
Config
.
AMH_TS_PoToMM
);
axis
.
AbsMove
(
MoveInfo
,
AMH_TS_P2
,
Config
.
AMH_TS_P1_speed
);
IOMove
(
IO_Type
.
AMH_Sucker
,
IO_VALUE
.
HIGH
);
MoveInfo
.
log
(
$
"PlateH:{MoveInfo.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2},MetrialGetRetry:{MetrialGetRetry}"
);
MoveInfo
.
log
(
$
"PlateH:{MoveInfo.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2},
ReelHeight:{ReelHeight},
MetrialGetRetry:{MetrialGetRetry}"
);
break
;
case
MoveStep
.
TransplantMove_22
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TransplantMove_23
);
axis
.
AbsMove
(
MoveInfo
,
Config
.
AMH_TS_P1
,
Config
.
AMH_TS_P1_speed
);
...
...
@@ -360,9 +367,12 @@ namespace DeviceLibrary
break
;
case
MoveStep
.
TransplantMove_25
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TransplantMove_26
);
AMH_TS_P2
=
DeviceGroup
.
p2
-
(
MoveInfo
.
MoveParam
.
PlateH
-
70
)
*
Config
.
AMH_TS_PoToMM
;
ReelHeight
=
MoveInfo
.
MoveParam
.
PlateH
;
if
(
FixtureConfig
.
GetFixtureHeight
(
MoveInfo
.
MoveParam
.
PlateW
,
MoveInfo
.
MoveParam
.
PlateH
,
out
actualheight1
))
ReelHeight
=
actualheight1
;
AMH_TS_P2
=
DeviceGroup
.
p2
-
(
ReelHeight
-
70
)
*
Config
.
AMH_TS_PoToMM
;
axis
.
AbsMove
(
MoveInfo
,
AMH_TS_P2
,
Config
.
AMH_TS_P2_speed
);
MoveInfo
.
log
(
$
"PlateH:{MoveInfo.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2}"
);
MoveInfo
.
log
(
$
"PlateH:{MoveInfo.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2}
,ReelHeight:{ReelHeight}
"
);
break
;
case
MoveStep
.
TransplantMove_26
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TransplantMove_27
);
...
...
@@ -410,9 +420,12 @@ namespace DeviceLibrary
break
;
case
MoveStep
.
TransplantMove_02
:
MoveInfo2
.
NextMoveStep
(
MoveStep
.
TransplantMove_03
);
var
AMH_TS_P2
=
DeviceGroup
.
p3
-
(
MoveInfo2
.
MoveParam
.
PlateH
-
70
)
*
Config
.
AMH_TS_PoToMM
;
int
ReelHeight
=
MoveInfo
.
MoveParam
.
PlateH
;
if
(
FixtureConfig
.
GetFixtureHeight
(
MoveInfo
.
MoveParam
.
PlateW
,
MoveInfo
.
MoveParam
.
PlateH
,
out
int
actualheight1
))
ReelHeight
=
actualheight1
;
var
AMH_TS_P2
=
DeviceGroup
.
p3
-
(
ReelHeight
-
70
)
*
Config
.
AMH_TS_PoToMM
;
axis
.
AbsMove
(
MoveInfo2
,
AMH_TS_P2
,
Config
.
AMH_TS_P2_speed
);
MoveInfo2
.
log
(
$
"PlateH:{MoveInfo2.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2}"
);
MoveInfo2
.
log
(
$
"PlateH:{MoveInfo2.MoveParam.PlateH},AMH_TS_P2:{AMH_TS_P2}
,ReelHeight:{ReelHeight}
"
);
break
;
case
MoveStep
.
TransplantMove_03
:
MoveInfo2
.
NextMoveStep
(
MoveStep
.
TransplantMove_04
);
...
...
DeviceLibrary/theMachine/sub/TrayStop.cs
查看文件 @
612feae
...
...
@@ -129,7 +129,7 @@ namespace DeviceLibrary
if
(
stop
&&
!
trayInfo
.
HasLoad
&&
IOValue
(
IO_Type
.
MI_Reel_Check
).
Equals
(
IO_VALUE
.
LOW
))
{
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_
WaitLoadProcess
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_
07
);
RemoteLoad
remoteLoad
=
new
RemoteLoad
();
remoteLoad
.
Action
=
"TrayReady"
;
remoteLoad
.
RequestLoadInfo
=
new
RequestLoadInfo
();
...
...
@@ -147,7 +147,7 @@ namespace DeviceLibrary
}
else
if
(
trayInfo
.
DestinationAddr
==
DeviceGroup
.
addr_1
&&
trayInfo
.
HasLoad
&&
IOValue
(
IO_Type
.
MI_Reel_Check
).
Equals
(
IO_VALUE
.
HIGH
))
{
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_
WaitLoadProcess
);
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_
07
);
RemoteLoad
remoteLoad
=
new
RemoteLoad
();
remoteLoad
.
Action
=
"TrayReady"
;
remoteLoad
.
RequestLoadInfo
=
new
RequestLoadInfo
();
...
...
@@ -205,6 +205,10 @@ namespace DeviceLibrary
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_04
);
}
break
;
case
MoveStep
.
TrayStop_07
:
MoveInfo
.
NextMoveStep
(
MoveStep
.
TrayStop_WaitLoadProcess
);
Location
.
ToHigh
(
MoveInfo
);
break
;
case
MoveStep
.
TrayStop_WaitLoadProcess
:
Msg
.
add
(
"等待处理载荷"
,
MsgLevel
.
info
);
break
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论