Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d6ec23b5
由
LN
编写于
2020-12-29 15:58:30 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
停止运动时关闭所有DO
1 个父辈
102ee5fd
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
76 行增加
和
47 行删除
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor.cs
source/DeviceLibrary/assemblyLine/HY/HY_OutLine.cs
source/DeviceLibrary/assemblyLine/MoveEquip.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
d6ec23b
...
@@ -68,7 +68,22 @@ namespace OnlineStore.DeviceLibrary
...
@@ -68,7 +68,22 @@ namespace OnlineStore.DeviceLibrary
{
{
}
}
protected
virtual
void
CloseAllDO
()
{
List
<
string
>
doList
=
new
List
<
string
>(
baseConfig
.
DOList
.
Keys
);
foreach
(
string
doType
in
doList
)
{
if
(
doType
.
Equals
(
IO_Type
.
SL_AlarmLed
)
||
doType
.
Equals
(
IO_Type
.
SL_HddLed
))
{
continue
;
}
if
(
IOValue
(
doType
).
Equals
(
IO_VALUE
.
HIGH
))
{
IOMove
(
doType
,
IO_VALUE
.
LOW
);
}
}
}
private
DateTime
lastProTimer
=
DateTime
.
Now
;
private
DateTime
lastProTimer
=
DateTime
.
Now
;
protected
int
TimerMaxSeconds
=
3
;
protected
int
TimerMaxSeconds
=
3
;
...
...
source/DeviceLibrary/assemblyLine/FeedingEquip.cs
查看文件 @
d6ec23b
...
@@ -314,13 +314,13 @@ namespace OnlineStore.DeviceLibrary
...
@@ -314,13 +314,13 @@ namespace OnlineStore.DeviceLibrary
CloseAxis
(
BatchAxis
);
CloseAxis
(
BatchAxis
);
CloseAxis
(
UpdownAxis
);
CloseAxis
(
UpdownAxis
);
//AllLineMove(IO_VALUE.LOW);
AllLineMove
(
IO_VALUE
.
LOW
);
//CheckAndMove(IO_Type.SL_Entry_StopDown,
IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
SL_Entry
_StopDown
,
IO_VALUE
.
LOW
);
//CheckAndMove(IO_Type.SL_Buffer
_StopDown, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
SL_Buffer
_StopDown
,
IO_VALUE
.
LOW
);
//CheckAndMove(IO_Type.SL_Out
_StopDown, IO_VALUE.LOW);
C
heckAndMove
(
IO_Type
.
SL_Out_StopDown
,
IO_VALUE
.
LOW
);
C
loseAllDO
(
);
}
}
public
override
void
StopRun
()
public
override
void
StopRun
()
{
{
runStatus
=
LineRunStatus
.
Wait
;
runStatus
=
LineRunStatus
.
Wait
;
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
查看文件 @
d6ec23b
...
@@ -107,8 +107,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -107,8 +107,9 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
runStatus
=
LineRunStatus
.
Runing
;
LogInfo
(
"停止运动:横移线体停止,阻挡上升,顶升气缸下降,定位气缸下降 "
);
LogInfo
(
"停止运动:关闭所有DO "
);
LineStop
();
//LineStop();
CloseAllDO
();
if
(
IsDebug
)
if
(
IsDebug
)
{
{
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
HIGH
);
...
@@ -119,8 +120,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -119,8 +120,8 @@ namespace OnlineStore.DeviceLibrary
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
HY_StopDown
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
HY_StopDown
,
IO_VALUE
.
LOW
);
}
}
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
//
CylinderMove(null, IO_Type.HY_TopCylinder_Up, IO_Type.HY_TopCylinder_Down);
HY_StopCylinderDown
(
null
);
//
HY_StopCylinderDown(null);
//LocationCylinderDown(null);
//LocationCylinderDown(null);
}
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_C1_SLStation.cs
查看文件 @
d6ec23b
...
@@ -107,8 +107,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -107,8 +107,9 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
Runing
;
runStatus
=
LineRunStatus
.
Runing
;
LogInfo
(
"停止运动:
横移线体停止,阻挡上升,顶升气缸下降,定位气缸下降
"
);
LogInfo
(
"停止运动:
关闭所有DO
"
);
CloseAllDO
();
if
(
IsDebug
)
if
(
IsDebug
)
{
{
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
HIGH
);
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
HIGH
);
...
@@ -117,9 +118,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -117,9 +118,9 @@ namespace OnlineStore.DeviceLibrary
{
{
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
LOW
);
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
LOW
);
}
}
LineStop
();
//
LineStop();
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
//
CylinderMove( null , IO_Type.HY_TopCylinder_Up, IO_Type.HY_TopCylinder_Down);
LocationCylinderDown
(
null
);
//
LocationCylinderDown(null);
}
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor.cs
查看文件 @
d6ec23b
...
@@ -129,14 +129,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -129,14 +129,19 @@ namespace OnlineStore.DeviceLibrary
}
}
internal
override
void
StopMove
()
internal
override
void
StopMove
()
{
{
LogInfo
(
"停止运动:
电机停止,阻挡上升,定位气缸下降,顶升气缸下降
"
);
LogInfo
(
"停止运动:
关闭所有DO
"
);
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
if
(
UpdownAxis
!=
null
)
LineStop
();
{
IOMove
(
IO_Type
.
HY_FrontStopDown
,
IO_VALUE
.
LOW
);
UpdownAxis
.
SuddenStop
();
CylinderMove
(
null
,
IO_Type
.
HY_LocationCylinder_Up
,
IO_Type
.
HY_LocationCylinder_Down
);
CloseAxis
(
UpdownAxis
);
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
}
CloseAllDO
();
//LineStop();
//IOMove(IO_Type.HY_FrontStopDown, IO_VALUE.LOW);
//CylinderMove(null, IO_Type.HY_LocationCylinder_Up, IO_Type.HY_LocationCylinder_Down);
//CylinderMove(null, IO_Type.HY_TopCylinder_Up, IO_Type.HY_TopCylinder_Down);
}
}
public
override
void
StopRun
()
public
override
void
StopRun
()
{
{
...
@@ -145,8 +150,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -145,8 +150,8 @@ namespace OnlineStore.DeviceLibrary
mainTimer
.
Enabled
=
false
;
mainTimer
.
Enabled
=
false
;
}
}
StopMove
();
StopMove
();
CheckAndMove
(
IO_Type
.
HY_ClampCylinder_Work
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.HY_ClampCylinder_Work, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
HY_ClampCylinder_Relax
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.HY_ClampCylinder_Relax, IO_VALUE.LOW);
runStatus
=
LineRunStatus
.
Wait
;
runStatus
=
LineRunStatus
.
Wait
;
}
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_OutLine.cs
查看文件 @
d6ec23b
...
@@ -82,13 +82,14 @@ namespace OnlineStore.DeviceLibrary
...
@@ -82,13 +82,14 @@ namespace OnlineStore.DeviceLibrary
internal
override
void
StopMove
()
internal
override
void
StopMove
()
{
{
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
LogInfo
(
"停止运动:关闭所有DO "
);
CloseAllDO
();
LogInfo
(
"停止运动:横移线体停止,阻挡上升,顶升气缸下降,定位气缸下降 "
);
//LineStop();
LineStop
();
//IOMove(IO_Type.HY_ShortL_StopDown, IO_VALUE.LOW);
IOMove
(
IO_Type
.
HY_ShortL_StopDown
,
IO_VALUE
.
LOW
);
//IOMove(IO_Type.HY_LongL_StopDown, IO_VALUE.LOW);
IOMove
(
IO_Type
.
HY_LongL_StopDown
,
IO_VALUE
.
LOW
);
//CylinderMove(null, IO_Type.HY_TopCylinder_Up, IO_Type.HY_TopCylinder_Down);
CylinderMove
(
null
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
}
}
...
...
source/DeviceLibrary/assemblyLine/MoveEquip.cs
查看文件 @
d6ec23b
...
@@ -180,12 +180,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -180,12 +180,18 @@ namespace OnlineStore.DeviceLibrary
runStatus
=
LineRunStatus
.
Busy
;
runStatus
=
LineRunStatus
.
Busy
;
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
LogInfo
(
"停止运动:
上下气缸上升端,阻挡气缸上升
"
);
LogInfo
(
"停止运动:
关闭所有DO
"
);
UpdownUpMove
();
//UpdownUpMove();
CylinderMove
(
MoveInfo
,
IO_Type
.
TopCylinder_Up
,
IO_Type
.
TopCylinder_Down
);
//CylinderMove(MoveInfo, IO_Type.TopCylinder_Up, IO_Type.TopCylinder_Down);
IOMove
(
IO_Type
.
StopDown1
,
IO_VALUE
.
LOW
);
//IOMove(IO_Type.StopDown1, IO_VALUE.LOW);
IOMove
(
IO_Type
.
StopDown2
,
IO_VALUE
.
LOW
);
//IOMove(IO_Type.StopDown2, IO_VALUE.LOW);
if
(
UseAxis
)
{
UpdownAxis
.
SuddenStop
();
CloseAxis
(
UpdownAxis
);
}
CloseAllDO
();
}
}
...
@@ -197,19 +203,19 @@ namespace OnlineStore.DeviceLibrary
...
@@ -197,19 +203,19 @@ namespace OnlineStore.DeviceLibrary
}
}
StopMove
();
StopMove
();
//停止运行时,把所有IO 置零
//停止运行时,把所有IO 置零
CheckAndMove
(
IO_Type
.
StopDown1
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.StopDown1, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
StopDown2
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.StopDown2, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
TopCylinder_Up
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.TopCylinder_Up, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
TopCylinder_Down
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
BeforeAfterCylinder_Before
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.BeforeAfterCylinder_Before, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
BeforeAfterCylinder_After
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.BeforeAfterCylinder_After, IO_VALUE.LOW);
if
(
UseAxis
.
Equals
(
false
))
//
if (UseAxis.Equals(false))
{
//
{
CheckAndMove
(
IO_Type
.
UpDownCylinder_Up
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
UpDownCylinder_Down
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
}
//
}
CheckAndMove
(
IO_Type
.
ClampCylinder_Work
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.ClampCylinder_Work, IO_VALUE.LOW);
CheckAndMove
(
IO_Type
.
ClampCylinder_Relax
,
IO_VALUE
.
LOW
);
//
CheckAndMove(IO_Type.ClampCylinder_Relax, IO_VALUE.LOW);
runStatus
=
LineRunStatus
.
Wait
;
runStatus
=
LineRunStatus
.
Wait
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论