Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c6188c94
由
张东亮
编写于
2023-12-07 09:56:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
横移7、14短线体放行问题
1 个父辈
baca3254
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
29 行增加
和
19 行删除
source/DeviceLibrary/assemblyLine/HY/HY_OutLine.cs
source/DeviceLibrary/assemblyLine/HY/HY_OutLine.cs
查看文件 @
c6188c9
...
@@ -14,10 +14,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -14,10 +14,10 @@ namespace OnlineStore.DeviceLibrary
{
{
public
HY_OutLine
(
string
cid
,
HYEquip_Config
config
)
:
base
(
cid
,
config
)
public
HY_OutLine
(
string
cid
,
HYEquip_Config
config
)
:
base
(
cid
,
config
)
{
{
Name
=
(
" "
+
config
.
LineName
+
"HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
" "
).
ToUpper
();
Name
=
(
" "
+
config
.
LineName
+
"HY"
+
(
DeviceID
%
100
).
ToString
().
PadLeft
(
2
,
'0'
)
+
" "
).
ToUpper
();
MoveInfo
.
Name
=
Name
;
MoveInfo
.
Name
=
Name
;
SecondMoveInfo
.
Name
=
Name
;
SecondMoveInfo
.
Name
=
Name
;
}
}
public
override
bool
StartRun
(
bool
isDebug
=
false
)
public
override
bool
StartRun
(
bool
isDebug
=
false
)
{
{
if
(
CanStartRun
().
Equals
(
false
))
if
(
CanStartRun
().
Equals
(
false
))
...
@@ -26,7 +26,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -26,7 +26,7 @@ namespace OnlineStore.DeviceLibrary
}
}
//mainTimer.Enabled = false;
//mainTimer.Enabled = false;
mainStop
();
mainStop
();
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
runStatus
=
LineRunStatus
.
HomeMoving
;
runStatus
=
LineRunStatus
.
HomeMoving
;
MoveInfo
.
NewMove
(
LineMoveType
.
RHome
);
MoveInfo
.
NewMove
(
LineMoveType
.
RHome
);
StartReset
();
StartReset
();
...
@@ -40,7 +40,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -40,7 +40,7 @@ namespace OnlineStore.DeviceLibrary
public
override
bool
Reset
()
public
override
bool
Reset
()
{
{
StopMove
();
StopMove
();
runStatus
=
LineRunStatus
.
Reset
;
runStatus
=
LineRunStatus
.
Reset
;
MoveInfo
.
NewMove
(
LineMoveType
.
Reset
);
MoveInfo
.
NewMove
(
LineMoveType
.
Reset
);
StartReset
();
StartReset
();
return
true
;
return
true
;
...
@@ -48,7 +48,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -48,7 +48,7 @@ namespace OnlineStore.DeviceLibrary
private
void
StartReset
()
private
void
StartReset
()
{
{
ResetClearData
();
ResetClearData
();
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
HY_R_01StopMove
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
HY_R_01StopMove
);
LogInfo
(
"开始"
+
MoveInfo
.
MoveType
+
": 线体停止,顶升下降,阻挡上升 "
);
LogInfo
(
"开始"
+
MoveInfo
.
MoveType
+
": 线体停止,顶升下降,阻挡上升 "
);
...
@@ -73,10 +73,10 @@ namespace OnlineStore.DeviceLibrary
...
@@ -73,10 +73,10 @@ namespace OnlineStore.DeviceLibrary
{
{
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
HY_R_01StopMove
))
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
HY_R_01StopMove
))
{
{
LogInfo
(
MoveInfo
.
MoveType
+
" 完成!"
);
LogInfo
(
MoveInfo
.
MoveType
+
" 完成!"
);
runStatus
=
LineRunStatus
.
Runing
;
runStatus
=
LineRunStatus
.
Runing
;
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
}
}
}
}
}
}
...
@@ -84,7 +84,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -84,7 +84,7 @@ namespace OnlineStore.DeviceLibrary
internal
override
void
StopMove
(
string
stopDes
=
""
)
internal
override
void
StopMove
(
string
stopDes
=
""
)
{
{
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
SecondMoveInfo
.
EndMove
();
LogInfo
(
"停止运动:关闭所有DO "
);
LogInfo
(
"停止运动:关闭所有DO "
);
CloseAllDO
();
CloseAllDO
();
...
@@ -273,25 +273,30 @@ namespace OnlineStore.DeviceLibrary
...
@@ -273,25 +273,30 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
OHY05_TrayCheck
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
OHY05_TrayCheck
))
{
{
if
(
IOValue
(
IO_Type
.
HY_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
if
(
IOValue
(
IO_Type
.
HY_TrayCheck
).
Equals
(
IO_VALUE
.
HIGH
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
OHY21_WaitTrayLeave
);
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
OHY21_WaitTrayLeave
);
CheckLog
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 等待托盘离开"
);
CheckLog
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 等待托盘离开"
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_TrayCheck
,
IO_VALUE
.
LOW
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitIO
(
IO_Type
.
HY_TrayCheck
,
IO_VALUE
.
LOW
));
}
}
else
if
(
IOValue
(
IO_Type
.
HY_LongL_StopCheck
).
Equals
(
IO_VALUE
.
LOW
))
{
LogInfo
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 长线前阻挡未检测到托盘,结束处理"
);
MoveInfo
.
EndMove
();
}
else
if
(
MoveInfo
.
IsTimeOut
())
else
if
(
MoveInfo
.
IsTimeOut
())
{
{
LogInfo
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 60秒超时,自动复位"
);
LogInfo
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 60秒超时,自动复位"
);
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
Reset
();
Reset
();
}
}
else
if
(
MoveInfo
.
IsTimeOut
(
15
))
else
if
(
MoveInfo
.
IsTimeOut
(
15
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
OHY05_TrayCheck
);
//
MoveInfo.NextMoveStep(LineMoveStep.OHY05_TrayCheck);
LogInfo
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 15秒超时,长线体阻挡下降1200"
);
LogInfo
(
"出料线横移(长线)"
+
MoveInfo
.
SLog
+
" 15秒超时,长线体阻挡下降1200"
);
IOMove
(
IO_Type
.
HY_LongL_StopDown
,
IO_VALUE
.
HIGH
,
1200
);
IOMove
(
IO_Type
.
HY_LongL_StopDown
,
IO_VALUE
.
HIGH
,
1200
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
0
));
}
}
}
}
#
endregion
#
endregion
...
@@ -338,18 +343,23 @@ namespace OnlineStore.DeviceLibrary
...
@@ -338,18 +343,23 @@ namespace OnlineStore.DeviceLibrary
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
CylinderMove
(
MoveInfo
,
IO_Type
.
HY_TopCylinder_Up
,
IO_Type
.
HY_TopCylinder_Down
);
LineStop
(
MoveInfo
);
LineStop
(
MoveInfo
);
}
}
else
if
(
IOValue
(
IO_Type
.
HY_ShortL_StopCheck
).
Equals
(
IO_VALUE
.
LOW
))
{
LogInfo
(
"出料线横移(短线)"
+
MoveInfo
.
SLog
+
" 短线前阻挡未检测到托盘,结束处理"
);
MoveInfo
.
EndMove
();
}
else
if
(
MoveInfo
.
IsTimeOut
())
else
if
(
MoveInfo
.
IsTimeOut
())
{
{
LogInfo
(
"出料线横移(短线)"
+
MoveInfo
.
SLog
+
" 60秒超时,自动复位"
);
LogInfo
(
"出料线横移(短线)"
+
MoveInfo
.
SLog
+
" 60秒超时,自动复位"
);
MoveInfo
.
EndMove
();
MoveInfo
.
EndMove
();
Reset
();
Reset
();
}
}
else
if
(
MoveInfo
.
IsTimeOut
(
15
))
else
if
(
MoveInfo
.
IsTimeOut
(
15
))
{
{
MoveInfo
.
NextMoveStep
(
LineMoveStep
.
OHY15_TrayCheck
);
//
MoveInfo.NextMoveStep(LineMoveStep.OHY15_TrayCheck);
LogInfo
(
"出料线横移(短线)"
+
MoveInfo
.
SLog
+
" 15秒超时,短线阻挡下降1200"
);
LogInfo
(
"出料线横移(短线)"
+
MoveInfo
.
SLog
+
" 15秒超时,短线阻挡下降1200"
);
IOMove
(
IO_Type
.
HY_ShortL_StopDown
,
IO_VALUE
.
HIGH
,
1200
);
IOMove
(
IO_Type
.
HY_ShortL_StopDown
,
IO_VALUE
.
HIGH
,
1200
);
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
));
MoveInfo
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
500
0
));
}
}
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
OHY16_TopDown
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
OHY16_TopDown
))
...
@@ -375,8 +385,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -375,8 +385,8 @@ namespace OnlineStore.DeviceLibrary
{
{
LogUtil
.
error
(
Name
+
"FixtureProcess 未找到["
+
MoveInfo
.
MoveType
+
"]["
+
MoveInfo
.
MoveStep
+
"]的处理"
);
LogUtil
.
error
(
Name
+
"FixtureProcess 未找到["
+
MoveInfo
.
MoveType
+
"]["
+
MoveInfo
.
MoveStep
+
"]的处理"
);
}
}
#
endregion
#
endregion
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论