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