Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5fda94a0
由
LN
编写于
2020-03-26 10:21:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
紧急出料修改
1 个父辈
e7361cc9
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
14 行增加
和
5 行删除
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
查看文件 @
5fda94a
...
@@ -51,7 +51,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -51,7 +51,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
,
outParam
);
MoveInfo
.
NewMove
(
LineMoveType
.
OutStore
,
outParam
);
//可以开始出库啦
//可以开始出库啦
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_211_AxisDownMove
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_211_AxisDownMove
);
int
height
=
outParam
.
PlateH
+
8
;
int
height
=
outParam
.
PlateH
+
4
;
int
targetPosition
=
BatchAxis
.
GetAclPosition
()
-
height
*
Config
.
Height_ChangeValue
;
int
targetPosition
=
BatchAxis
.
GetAclPosition
()
-
height
*
Config
.
Height_ChangeValue
;
if
(
targetPosition
<
Config
.
BatchAxisP2
)
if
(
targetPosition
<
Config
.
BatchAxisP2
)
{
{
...
@@ -373,11 +373,11 @@ namespace OnlineStore.DeviceLibrary
...
@@ -373,11 +373,11 @@ namespace OnlineStore.DeviceLibrary
{
{
//判断伺服检测信号是否亮
//判断伺服检测信号是否亮
//if (IOValue(IO_Type.SL_AxisLocationCheck).Equals(IO_VALUE.LOW) || BatchAxis.IsInPosition(Config.BatchAxisP2))
//if (IOValue(IO_Type.SL_AxisLocationCheck).Equals(IO_VALUE.LOW) || BatchAxis.IsInPosition(Config.BatchAxisP2))
if
(
IOValue
(
IO_Type
.
SL_AxisLocationCheck
).
Equals
(
IO_VALUE
.
HIGH
)
||
BatchAxis
.
IsInPosition
(
Config
.
BatchAxisP2
).
Equals
(
false
))
if
(
IOValue
(
IO_Type
.
SL_AxisLocationCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
BatchAxis
.
IsInPosition
(
Config
.
BatchAxisP2
).
Equals
(
false
))
{
{
//可以开始出库啦
//可以开始出库啦
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_211_AxisDownMove
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_211_AxisDownMove
);
int
height
=
MoveInfo
.
MoveParam
.
PlateH
+
8
;
int
height
=
MoveInfo
.
MoveParam
.
PlateH
+
4
;
int
targetPosition
=
BatchAxis
.
GetAclPosition
()
-
height
*
Config
.
Height_ChangeValue
;
int
targetPosition
=
BatchAxis
.
GetAclPosition
()
-
height
*
Config
.
Height_ChangeValue
;
if
(
targetPosition
<
Config
.
BatchAxisP2
)
if
(
targetPosition
<
Config
.
BatchAxisP2
)
{
{
...
@@ -519,9 +519,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -519,9 +519,18 @@ namespace OnlineStore.DeviceLibrary
if
(
MoveCylineIsUp
())
if
(
MoveCylineIsUp
())
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_222_CylinderTake
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_222_CylinderTake
);
OutLog
(
"紧急出料"
+
MoveInfo
.
SLog
+
":上料横移机构回到取料端,提升轴到P3"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
CylinderMove
(
MoveInfo
,
IO_Type
.
SL_MoveCylinder_Give
,
IO_Type
.
SL_MoveCylinder_Take
);
BatchAxisToP3
();
//只有提升轴位置过低时才需要到P3
int
currPosition
=
BatchAxis
.
GetAclPosition
();
if
(
currPosition
<=
(
Config
.
BatchAxisP2
+
Config
.
Height_ChangeValue
*
20
))
{
OutLog
(
"紧急出料"
+
MoveInfo
.
SLog
+
":上料横移机构回到取料端,提升轴["
+
currPosition
+
"]需要到P3"
);
BatchAxisToP3
();
}
else
{
OutLog
(
"紧急出料"
+
MoveInfo
.
SLog
+
":上料横移机构回到取料端,提升轴["
+
currPosition
+
"]不需要到P3"
);
}
}
}
else
else
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论