Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
URSolderingRobot
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ecba5851
由
几米阳光
编写于
2018-10-12 11:02:57 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
移动到高位,调试状态增加判断
1 个父辈
08566aa2
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
11 行删除
DeviceLibrary/Robot/soldering/WeldRobotBean_Partial.cs
DeviceLibrary/bean/RobotBean.cs
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
DeviceLibrary/Robot/soldering/WeldRobotBean_Partial.cs
查看文件 @
ecba585
...
...
@@ -198,16 +198,21 @@ namespace URSoldering.DeviceLibrary
}
if
(
WeldMoveStep
.
CurrPoint
.
pointType
.
Equals
(
0
))
{
//普通焊点先移动至高位
WeldMoveStep
.
NextMoveStep
(
MoveStep
.
W01_RobotToHighPoint
);
LogUtil
.
info
(
" 新"
+
WeldMoveStep
.
CurrPoint
.
TypeValue
+
"【"
+
WeldMoveStep
.
CurrPoint
.
pointName
+
"】移动至焊点高处"
);
MoveToHighPoint
(
WeldMoveStep
.
CurrPoint
);
if
(
ZUpLiftValue
>
0
)
{
//普通焊点先移动至高位
WeldMoveStep
.
NextMoveStep
(
MoveStep
.
W01_RobotToHighPoint
);
LogUtil
.
info
(
" 新"
+
WeldMoveStep
.
CurrPoint
.
TypeValue
+
"【"
+
WeldMoveStep
.
CurrPoint
.
pointName
+
"】移动至焊点高处"
);
MoveToHighPoint
(
WeldMoveStep
.
CurrPoint
);
}
else
{
LogUtil
.
info
(
" 新"
+
WeldMoveStep
.
CurrPoint
.
TypeValue
+
"【"
+
WeldMoveStep
.
CurrPoint
.
pointName
+
"】预热"
+
WeldMoveStep
.
CurrPoint
.
preheatTemperature
+
"度,送丝下降,移动机械臂"
);
MoveToPoint
(
WeldMoveStep
.
CurrPoint
);
WeldMoveStep
.
IsSlowSendWire
=
true
;
SlowSendWire
();
}
WorkCountManager
.
AddWeldPint
();
//LogUtil.info(" 新" + WeldMoveStep.CurrPoint.TypeValue + "【" + WeldMoveStep.CurrPoint.pointName + "】预热" + WeldMoveStep.CurrPoint.preheatTemperature + "度,送丝下降,移动机械臂");
//MoveToPoint(WeldMoveStep.CurrPoint, false);
//WorkCountManager.AddWeldPint();
//WeldMoveStep.IsSlowSendWire = true;
//SlowSendWire();
}
else
if
(
WeldMoveStep
.
CurrPoint
.
pointType
.
Equals
(
2
))
{
...
...
DeviceLibrary/bean/RobotBean.cs
查看文件 @
ecba585
...
...
@@ -135,7 +135,10 @@ namespace URSoldering.DeviceLibrary
}
public
static
bool
IsFixtureClamp
()
{
return
true
;
if
(
ConfigAppSettings
.
GetBoolValue
(
Setting_Init
.
ISDebug
))
{
return
true
;
}
if
(
KNDIOValue
(
IO_Type
.
Fixture_Clamp
).
Equals
(
IO_VALUE
.
HIGH
)
&&
KNDIOValue
(
IO_Type
.
Fixture_Relax
).
Equals
(
IO_VALUE
.
LOW
))
{
return
true
;
...
...
@@ -148,7 +151,10 @@ namespace URSoldering.DeviceLibrary
}
public
static
bool
ShuddenOK
()
{
return
true
;
if
(
ConfigAppSettings
.
GetBoolValue
(
Setting_Init
.
ISDebug
))
{
return
true
;
}
if
(!
baseConfig
.
RobotDIList
.
ContainsKey
(
IO_Type
.
SuddenStop_Single
))
{
return
false
;
...
...
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
查看文件 @
ecba585
...
...
@@ -502,6 +502,11 @@ namespace URSoldering.DeviceLibrary
{
moveCmd
=
"movep(p["
+
x
+
spiltStr
+
y
+
spiltStr
+
z
+
spiltStr
+
point
.
RX
+
spiltStr
+
point
.
RY
+
spiltStr
+
point
.
RZ
+
"],a=1.0, v=1.0, r=0)"
;
}
//string moveCmd = "movel(p[" + x + spiltStr + y + spiltStr + z + spiltStr + point.RX + spiltStr + point.RY + spiltStr + point.RZ + "],a=0.1, v=0.1,t=0, r=0)";
//if (isHigh)
//{
// moveCmd = "movel(p[" + x + spiltStr + y + spiltStr + z + spiltStr + point.RX + spiltStr + point.RY + spiltStr + point.RZ + "],a=1.0, v=1.0,t=0, r=0)";
//}
ClearPreCMD
();
URRobotClient
.
LastMoveCMD
=
moveCmd
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论