Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a991502d
由
LN
编写于
2020-07-22 17:16:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
ac07da79
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
27 行删除
source/DeviceLibrary/assemblyLine/LineBean_Shunt.cs
source/DeviceLibrary/assemblyLine/LineBean_Shunt.cs
查看文件 @
a991502
...
@@ -147,18 +147,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -147,18 +147,18 @@ namespace OnlineStore.DeviceLibrary
if
(
Shunt_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
if
(
Shunt_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
{
if
(
IOValue
(
IO_Type
.
Shunt_Check1_Front
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOValue
(
IO_Type
.
Shunt_Check1_Front
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
Shunt_Check2_Middle
).
Equals
(
IO_VALUE
.
HIGH
)
)
{
{
if
(
TrayManager
.
checkWatch
(
ShuntCheck1Watch
,
5
00
,
true
))
if
(
TrayManager
.
checkWatch
(
ShuntCheck1Watch
,
4
00
,
true
))
{
{
Shunt_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
Shunt_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt01_WaitTime
);
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt01_WaitTime
);
UpateShuntTrayNum
();
UpateShuntTrayNum
();
ShuntLog
(
"分流横移:等待阻挡1亮,阻挡2亮,阻挡1上升,升降1下降 "
);
ShuntLog
(
"分流横移:等待阻挡1亮,阻挡2亮,阻挡1上升,升降1下降 "
);
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check1_Front
,
IO_VALUE
.
HIGH
));
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check2_Middle
,
IO_VALUE
.
HIGH
));
CylinderMove
(
Shunt_MoveInfo
,
IO_Type
.
Shunt_TopCylinder_Up1
,
IO_Type
.
Shunt_TopCylinder_Down1
,
true
);
CylinderMove
(
Shunt_MoveInfo
,
IO_Type
.
Shunt_TopCylinder_Up1
,
IO_Type
.
Shunt_TopCylinder_Down1
,
true
);
CheckAndMove
(
IO_Type
.
Shunt_StopDown1_Front
,
IO_VALUE
.
LOW
);
CheckAndMove
(
IO_Type
.
Shunt_StopDown1_Front
,
IO_VALUE
.
LOW
);
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check1_Front
,
IO_VALUE
.
HIGH
));
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check2_Middle
,
IO_VALUE
.
HIGH
));
}
}
}
}
else
else
...
@@ -211,36 +211,25 @@ namespace OnlineStore.DeviceLibrary
...
@@ -211,36 +211,25 @@ namespace OnlineStore.DeviceLibrary
if
(
Shunt_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
Shunt01_WaitTime
))
if
(
Shunt_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
Shunt01_WaitTime
))
{
{
if
(
IOValue
(
IO_Type
.
Shunt_Check1_Front
).
Equals
(
IO_VALUE
.
HIGH
))
string
msg
=
""
;
if
(
TrayNeedShunt
(
ShuntTrayNum
,
out
msg
))
{
{
string
msg
=
""
;
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt05_Top1Up
);
if
(
TrayNeedShunt
(
ShuntTrayNum
,
out
msg
))
LogUtil
.
info
(
Name
+
"["
+
ShuntTrayNum
+
"]"
+
"分流横移:"
+
msg
+
" 需要分流,阻挡1上升,升降1上升 ,等待升降2是否可上升 "
);
{
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt05_Top1Up
);
LogUtil
.
info
(
Name
+
"["
+
ShuntTrayNum
+
"]"
+
"分流横移:"
+
msg
+
" 需要分流,阻挡1上升,升降1上升 ,等待升降2是否可上升 "
);
CylinderMove
(
Shunt_MoveInfo
,
IO_Type
.
Shunt_TopCylinder_Down1
,
IO_Type
.
Shunt_TopCylinder_Up1
);
CylinderMove
(
Shunt_MoveInfo
,
IO_Type
.
Shunt_TopCylinder_Down1
,
IO_Type
.
Shunt_TopCylinder_Up1
);
if
(
Shunt_Updown2CanUp
())
if
(
Shunt_Updown2CanUp
())
{
CylinderMove
(
null
,
IO_Type
.
Shunt_TopCylinder_Down2
,
IO_Type
.
Shunt_TopCylinder_Up2
);
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_TopCylinder_Down2
,
IO_VALUE
.
LOW
));
}
}
else
{
{
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt02_Stop1Down
);
CylinderMove
(
null
,
IO_Type
.
Shunt_TopCylinder_Down2
,
IO_Type
.
Shunt_TopCylinder_Up2
);
LogUtil
.
info
(
Name
+
"["
+
ShuntTrayNum
+
"]"
+
"分流横移: 不需要分流,直接放行,Shunt_StopDown1_Front 下降1200 "
);
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_TopCylinder_Down2
,
IO_VALUE
.
LOW
));
IOMove
(
IO_Type
.
Shunt_StopDown1_Front
,
IO_VALUE
.
HIGH
,
1200
);
}
}
}
}
else
else
{
{
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt01_WaitTime
);
Shunt_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
Shunt02_Stop1Down
);
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check1_Front
,
IO_VALUE
.
HIGH
));
LogUtil
.
info
(
Name
+
"["
+
ShuntTrayNum
+
"]"
+
"分流横移: 不需要分流,直接放行,Shunt_StopDown1_Front 下降1200 "
);
Shunt_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
Shunt_Check2_Middle
,
IO_VALUE
.
HIGH
));
IOMove
(
IO_Type
.
Shunt_StopDown1_Front
,
IO_VALUE
.
HIGH
,
1200
);
CylinderMove
(
Shunt_MoveInfo
,
IO_Type
.
Shunt_TopCylinder_Up1
,
IO_Type
.
Shunt_TopCylinder_Down1
,
true
);
}
CheckAndMove
(
IO_Type
.
Shunt_StopDown1_Front
,
IO_VALUE
.
LOW
);
}
}
}
else
if
(
Shunt_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
Shunt02_Stop1Down
))
else
if
(
Shunt_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
Shunt02_Stop1Down
))
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论