Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ba43dd79
由
LN
编写于
2019-12-07 19:28:26 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
3d8c9bd3
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
49 行删除
source/DeviceLibrary/assemblyLine/LineBean.cs
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
source/DeviceLibrary/assemblyLine/LineBean.cs
查看文件 @
ba43dd7
...
...
@@ -777,10 +777,7 @@ namespace OnlineStore.DeviceLibrary
default
:
break
;
}
SideWayTimerProcess
();
CodeProcess
();
SideWayTimerProcess
();
}
}
catch
(
Exception
ex
)
...
...
source/DeviceLibrary/assemblyLine/LineBean_Partial.cs
查看文件 @
ba43dd7
...
...
@@ -266,13 +266,7 @@ namespace OnlineStore.DeviceLibrary
}
#
endregion
#
region
扫码处理
private
void
CodeProcess
()
{
}
#
endregion
#
region
出库
...
...
@@ -407,8 +401,7 @@ namespace OnlineStore.DeviceLibrary
private
bool
SideWay41IsWait
=
false
;
private
DateTime
SideWay23Ntime
=
DateTime
.
Now
;
private
bool
SideWay23IsWait
=
false
;
private
bool
sdIsInprocess
=
false
;
private
DateTime
sdlastProTime
=
DateTime
.
Now
;
private
void
SideWayTimerProcess
()
...
...
@@ -430,9 +423,7 @@ namespace OnlineStore.DeviceLibrary
return
;
}
if
(
SW41_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
{
if
(
IOValue
(
IO_Type
.
SW4_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW1_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
TrayManager
.
CanMoveSidesWay
(
4
)
&&
TrayManager
.
CanMoveSidesWay
(
1
))
{
...
...
@@ -448,29 +439,24 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_LocationCylinder_Up
,
IO_Type
.
SW4_LocationCylinder_Down
);
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW1_LocationCylinder_Up
,
IO_Type
.
SW1_LocationCylinder_Down
);
}
else
if
(
IOValue
(
IO_Type
.
SW4_StopCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW4_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
SW1_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
TrayManager
.
CanMoveSidesWay
(
4
)
&&
TrayManager
.
CanMoveSidesWay
(
1
))
}
else
if
(
IOValue
(
IO_Type
.
SW4_StopCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW4_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
IOValue
(
IO_Type
.
SW1_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
TrayManager
.
CanMoveSidesWay
(
4
)
&&
TrayManager
.
CanMoveSidesWay
(
1
))
{
TimeSpan
span14
=
DateTime
.
Now
-
SideWay41Ntime
;
if
(
SideWay41IsWait
&&
span14
.
TotalSeconds
>
1
)
{
TimeSpan
span14
=
DateTime
.
Now
-
SideWay41Ntime
;
if
(
SideWay41IsWait
&&
span14
.
TotalSeconds
>
1
)
{
// TrayManager.UpdateSWState(4, 4);
//TrayManager.UpdateSWState(1, 4);
SW41_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW01_StopDown
);
SWLog
(
"横移轨道41:检测到SW4_StopCheck, 等待1000,定位气缸下降 "
);
IOMove
(
IO_Type
.
SW4_StopDown
,
IO_VALUE
.
HIGH
);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_LocationCylinder_Up
,
IO_Type
.
SW1_LocationCylinder_Down
);
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_LocationCylinder_Up
,
IO_Type
.
SW1_LocationCylinder_Down
);
}
else
if
(!
SideWay41IsWait
)
{
SideWay41IsWait
=
true
;
SideWay41Ntime
=
DateTime
.
Now
;
}
// TrayManager.UpdateSWState(4, 4);
//TrayManager.UpdateSWState(1, 4);
SW41_MoveInfo
.
NewMove
(
LineMoveType
.
InStore
);
SW41_MoveInfo
.
NextMoveStep
(
LineMoveStep
.
SW01_StopDown
);
SWLog
(
"横移轨道41:检测到SW4_StopCheck, 等待1000,定位气缸下降 "
);
IOMove
(
IO_Type
.
SW4_StopDown
,
IO_VALUE
.
HIGH
);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_LocationCylinder_Up
,
IO_Type
.
SW1_LocationCylinder_Down
);
CylinderMove
(
SW41_MoveInfo
,
IO_Type
.
SW4_LocationCylinder_Up
,
IO_Type
.
SW1_LocationCylinder_Down
);
}
else
if
(!
SideWay41IsWait
)
{
...
...
@@ -478,6 +464,11 @@ namespace OnlineStore.DeviceLibrary
SideWay41Ntime
=
DateTime
.
Now
;
}
}
else
if
(!
SideWay41IsWait
)
{
SideWay41IsWait
=
true
;
SideWay41Ntime
=
DateTime
.
Now
;
}
else
{
SideWay41IsWait
=
false
;
...
...
@@ -487,11 +478,9 @@ namespace OnlineStore.DeviceLibrary
{
SideWay41IsWait
=
false
;
SideWay41BusyProcess
();
}
}
if
(
SW23_MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
None
))
{
{
//检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升,
//顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过
if
(
IOValue
(
IO_Type
.
SW2_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
)
&&
IOValue
(
IO_Type
.
SW3_TrayCheck
).
Equals
(
IO_VALUE
.
LOW
)
&&
...
...
@@ -656,8 +645,7 @@ namespace OnlineStore.DeviceLibrary
}
private
bool
CheckTrayIsNeed
(
int
deviceId
)
{
//横移1对应入料1
//横移1对应入料1
if
(
FeedingEquipMap
.
ContainsKey
(
deviceId
))
{
FeedingEquip
equip
=
FeedingEquipMap
[
deviceId
];
...
...
@@ -696,7 +684,6 @@ namespace OnlineStore.DeviceLibrary
SW23_MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
1000
));
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW2_TopCylinder_Down
,
IO_Type
.
SW2_TopCylinder_Up
);
CylinderMove
(
SW23_MoveInfo
,
IO_Type
.
SW3_TopCylinder_Down
,
IO_Type
.
SW3_TopCylinder_Up
);
}
else
if
(
SW23_MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
SW03_TopCylinderUp
))
{
...
...
@@ -773,11 +760,9 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
debug
(
Name
+
msg
);
}
#
endregion
#
region
料仓出入库逻辑处理
/// <summary>--
/// BOX出入库完成事件
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论