Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5cee8200
由
LN
编写于
2021-07-02 17:16:38 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
夹爪修改:1:复位时清除报警同时调用停止方法。2.抓料时必须到位才能继续。
1 个父辈
1079c43d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
5 行删除
source/DeviceLibrary/assemblyLine/EquipBase.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/DeviceLibrary/assemblyLine/EquipBase.cs
查看文件 @
5cee820
...
...
@@ -556,7 +556,7 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
(
span
.
TotalMilliseconds
>=
wait
.
TimeMSeconds
);
}
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W004_ClampReached
))
{
if
(
ClampJwa
!=
null
)
if
(
(
ClampJwa
!=
null
)
&&
(
span
.
TotalSeconds
>
1
)
)
{
if
(
ClampJwa
.
IsReached
())
{
...
...
@@ -566,13 +566,24 @@ namespace OnlineStore.DeviceLibrary
wait
.
IsEnd
=
true
;
}
}
int
code
=
ClampJwa
.
GetErrorCode
();
if
(
code
>
0
)
{
string
msg
=
ClampJwa
.
config
.
Explain
+
" 错误码="
+
code
+
",运动到位="
+
ClampJwa
.
IsReached
();
LogUtil
.
error
(
Name
+
msg
,
999
,
2
);
}
}
}
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W005_WaitHasReel
))
{
if
(
ClampJwa
!=
null
)
if
(
(
ClampJwa
!=
null
)&&
(
span
.
TotalSeconds
>
1
)
)
{
wait
.
IsEnd
=
ClampJwa
.
HasReel
();
if
(
wait
.
IsEnd
&&
(
ClampJwa
.
IsReached
().
Equals
(
false
)))
{
string
msg
=
ClampJwa
.
config
.
Explain
+
" 有料,但未到达目标,不能结束抓料"
;
LogUtil
.
error
(
Name
+
msg
);
wait
.
IsEnd
=
false
;
}
if
((!
wait
.
IsEnd
)
&&
IsNoReelAlarm
()
&&
ClampEmptyMove
)
{
LogUtil
.
info
(
Name
+
" 用户点击了:忽略夹爪有料信号,继续出入库动作"
);
...
...
@@ -584,6 +595,12 @@ namespace OnlineStore.DeviceLibrary
LogUtil
.
info
(
Name
+
" 无料,但在运动中,且运动到位,认为有料"
);
wait
.
IsEnd
=
true
;
}
int
code
=
ClampJwa
.
GetErrorCode
();
if
(
code
>
0
)
{
string
msg
=
ClampJwa
.
config
.
Explain
+
" 错误码="
+
code
+
",运动到位="
+
ClampJwa
.
IsReached
();
LogUtil
.
error
(
Name
+
msg
,
999
,
2
);
}
////如果出力>=0.3,且已等待5秒
//float torque = ClampJwa.GetTorque();
//if ((!wait.IsEnd) && torque > 0.25 && span.TotalSeconds > 5)
...
...
@@ -799,11 +816,11 @@ namespace OnlineStore.DeviceLibrary
{
if
(
baseConfig
.
DType
.
Equals
(
DeviceType
.
MoveEquip
))
{
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_0
7
_WaitHasReel
))
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
InStore
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MI_0
8
_WaitHasReel
))
{
return
true
;
}
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_5
7
_WaitHasReel
))
else
if
(
MoveInfo
.
MoveType
.
Equals
(
LineMoveType
.
OutStore
)
&&
MoveInfo
.
MoveStep
.
Equals
(
LineMoveStep
.
MO_5
8
_WaitHasReel
))
{
return
true
;
}
...
...
@@ -821,5 +838,6 @@ namespace OnlineStore.DeviceLibrary
}
return
false
;
}
}
}
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
5cee820
...
...
@@ -226,6 +226,7 @@ namespace OnlineStore.DeviceLibrary
if
(
rmaxis
!=
null
&&
rmaxis
.
IsPortOpen
)
{
rmaxis
.
ResetError
();
rmaxis
.
StopAxis
();
}
}
public
int
GetErrorCode
()
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论