Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 319c1c92
由
LN
编写于
2021-01-13 17:14:30 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
去掉夹爪信号检测。
1 个父辈
cceb71b9
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
34 行增加
和
37 行删除
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
source/DeviceLibrary/assemblyLine/FeedingEquip_OutStore.cs
查看文件 @
319c1c9
...
@@ -619,13 +619,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -619,13 +619,13 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_216_CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
FO_216_CylinderUp
))
{
{
if
(
IOValue
(
IO_Type
.
SL_MoveCylinder_Tighten
).
Equals
(
IO_VALUE
.
LOW
))
//
if (IOValue(IO_Type.SL_MoveCylinder_Tighten).Equals(IO_VALUE.LOW))
{
//
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_217_ClampCheck
);
//
MoveInfo.NextMoveStep(LineMoveStep.FO_217_ClampCheck);
OutLog
(
outType
+
MoveInfo
.
SLog
+
":等待夹爪有料"
);
//
OutLog(outType + MoveInfo.SLog + ":等待夹爪有料");
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_MoveCylinder_Tighten
,
IO_VALUE
.
HIGH
));
//
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Tighten,IO_VALUE.HIGH));
}
//
}
else
//
else
{
{
FO_218_UpdownToP1
(
outType
);
FO_218_UpdownToP1
(
outType
);
}
}
...
@@ -685,13 +685,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -685,13 +685,13 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
MoveCylineIsUp
())
if
(
MoveCylineIsUp
())
{
{
if
(
IOValue
(
IO_Type
.
SL_MoveCylinder_Tighten
).
Equals
(
IO_VALUE
.
HIGH
))
//
if (IOValue(IO_Type.SL_MoveCylinder_Tighten).Equals(IO_VALUE.HIGH))
{
//
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
FO_223_ClampCheck
);
//
MoveInfo.NextMoveStep(LineMoveStep.FO_223_ClampCheck);
OutLog
(
outType
+
MoveInfo
.
SLog
+
":等待夹爪无料"
);
//
OutLog(outType + MoveInfo.SLog + ":等待夹爪无料");
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
SL_MoveCylinder_Tighten
,
IO_VALUE
.
LOW
));
//
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Tighten, IO_VALUE.LOW));
}
//
}
else
//
else
{
{
FO_224_CylinderTake
(
outType
);
FO_224_CylinderTake
(
outType
);
}
}
...
...
source/DeviceLibrary/assemblyLine/ProvidingEquip_Partial.cs
查看文件 @
319c1c9
...
@@ -504,7 +504,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -504,7 +504,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_00_CylinderAfter
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_00_CylinderAfter
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_Before
,
IO_Type
.
BeforeAfterCylinder_After
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
ClampCylinder_Slack
,
IO_VALUE
.
LOW
));
//
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Slack, IO_VALUE.LOW));
}
}
return
true
;
return
true
;
}
}
...
@@ -598,37 +598,33 @@ namespace OnlineStore.DeviceLibrary
...
@@ -598,37 +598,33 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_04_CylinderUp
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_04_CylinderUp
))
{
{
if
(
IOValue
(
IO_Type
.
ClampCylinder_Slack
).
Equals
(
IO_VALUE
.
HIGH
))
//if (IOValue(IO_Type.ClampCylinder_Slack).Equals(IO_VALUE.LOW))
//{
// MoveInfo.NextMoveStep(LineMoveStep.PO_05_ClampCheck);
// OutLog("出料:" + MoveInfo.SLog + " ,等待夹爪有料)");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Slack, IO_VALUE.HIGH));
//}
//else
{
{
PO_06_WaitBox
();
PO_07_CylinderBefore
();
}
else
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_05_ClampCheck
);
OutLog
(
"出料:"
+
MoveInfo
.
SLog
+
" ,等待夹爪有料)"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
ClampCylinder_Slack
,
IO_VALUE
.
HIGH
));
}
}
}
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_05_ClampCheck
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_05_ClampCheck
))
{
{
PO_06_WaitBox
();
PO_07_CylinderBefore
();
}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_06_WaitBox
))
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_07_CylinderBefore
);
OutLog
(
"出料:"
+
MoveInfo
.
SLog
+
" ,前后气缸前进)"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
}
}
//else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_06_WaitBox))
//{
// MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderBefore);
// OutLog("出料:" + MoveInfo.SLog + " ,前后气缸前进)");
// CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
//}
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_07_CylinderBefore
))
else
if
(
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
PO_07_CylinderBefore
))
{
{
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
))
if
(
CylinderIsOk
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
))
{
{
if
(
LineIsReady
())
if
(
LineIsReady
())
{
{
//气缸不下降,直接扔料
//MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderDown);
//OutLog("出料:" + MoveInfo.SLog + " ,上下气缸下降)");
//UpdownDownP3Move(MoveInfo.MoveParam.PlateH);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_09_CylinderRelax
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_09_CylinderRelax
);
OutLog
(
"出料:"
+
MoveInfo
.
SLog
+
",夹料气缸放松)"
);
OutLog
(
"出料:"
+
MoveInfo
.
SLog
+
",夹料气缸放松)"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
CylinderMove
(
MoveInfo
,
IO_Type
.
ClampCylinder_Slack
,
IO_Type
.
ClampCylinder_Tighten
);
...
@@ -693,12 +689,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -693,12 +689,13 @@ namespace OnlineStore.DeviceLibrary
}
}
}
}
private
void
PO_0
6_WaitBox
()
private
void
PO_0
7_CylinderBefore
()
{
{
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
string
posId
=
MoveInfo
.
MoveParam
!=
null
?
MoveInfo
.
MoveParam
.
PosId
:
""
;
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
int
num
=
MoveInfo
.
MoveParam
.
TrayNumber
;
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_06_WaitBox
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
PO_07_CylinderBefore
);
LogInfo
(
"出料 【"
+
posId
+
"】"
+
MoveInfo
.
SLog
+
" 更新托盘【"
+
num
+
"】为空"
);
LogInfo
(
"出料 【"
+
posId
+
"】"
+
MoveInfo
.
SLog
+
" 更新托盘【"
+
num
+
"】为空,前后气缸前进"
);
CylinderMove
(
MoveInfo
,
IO_Type
.
BeforeAfterCylinder_After
,
IO_Type
.
BeforeAfterCylinder_Before
);
TrayManager
.
UpdateTrayInfo
(
num
);
TrayManager
.
UpdateTrayInfo
(
num
);
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
).
Equals
(
false
)
&&
SecondMoveInfo
.
MoveStep
<
LineMoveStep
.
MO_14_TopDown
)
if
(
SecondMoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
).
Equals
(
false
)
&&
SecondMoveInfo
.
MoveStep
<
LineMoveStep
.
MO_14_TopDown
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论