Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
URSolderingRobot
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 85436596
由
几米阳光
编写于
2018-08-01 14:22:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
断开连接时清理上次的命令
1 个父辈
07b72b9c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
26 行增加
和
25 行删除
DeviceLibrary/Robot/soldering/WeldRobotBean_Partial.cs
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
URSolderingClient/App.config
URSolderingClient/FrmBoardInfo.Designer.cs
URSolderingClient/FrmWeldPointInfo.Designer.cs
DeviceLibrary/Robot/soldering/WeldRobotBean_Partial.cs
查看文件 @
8543659
...
...
@@ -152,11 +152,7 @@ namespace URSoldering.DeviceLibrary
{
WeldLog
(
"焊接结束,等待AOI检测"
);
WeldMoveStep
.
NextMoveStep
(
MoveStep
.
W14_AOICheck
);
int
AOIWaitSeconds
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
AOIWaitSeconds
);
if
(
AOIWaitSeconds
<=
0
)
{
AOIWaitSeconds
=
4000
;
}
int
AOIWaitSeconds
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
AOIWaitSeconds
);
WeldMoveStep
.
WaitList
.
Add
(
WaitResultInfo
.
WaitTime
(
AOIWaitSeconds
));
}
else
if
(
WeldMoveStep
.
moveStep
.
Equals
(
MoveStep
.
W14_AOICheck
))
...
...
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
查看文件 @
8543659
...
...
@@ -157,6 +157,7 @@ namespace URSoldering.DeviceLibrary
}
WarnMsg
=
""
;
IsRun
=
false
;
ClearPreCMD
();
LogUtil
.
info
(
""
+
LogName
+
"开始连接"
);
PreStartTime
=
DateTime
.
Now
;
startCount
++;
...
...
@@ -330,7 +331,6 @@ namespace URSoldering.DeviceLibrary
{
WarnMsg
=
"机器人状态["
+
msg
+
"],启动超时"
;
StopRobot
();
IsRun
=
false
;
}
}
}
...
...
@@ -370,7 +370,6 @@ namespace URSoldering.DeviceLibrary
{
WarnMsg
=
"机器人急停中["
+
msg
+
"],启动超时"
;
StopRobot
();
IsRun
=
false
;
}
}
else
...
...
@@ -430,6 +429,7 @@ namespace URSoldering.DeviceLibrary
{
try
{
ClearPreCMD
();
IsStartConnect
=
false
;
reconnectTimer
.
Enabled
=
false
;
URRobotClient
.
StopListen
();
...
...
@@ -481,19 +481,20 @@ 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)"
;
}
ClearPreCMD
();
URRobotClient
.
LastMoveCMD
=
moveCmd
;
LastSendPoint
=
point
;
}
public
static
void
ClearPreCMD
()
{
if
(!
URRobotClient
.
LastMoveCMD
.
Equals
(
""
))
{
LogUtil
.
info
(
LogName
+
",清除上次未发送指令:【"
+
URRobotClient
.
LastMoveCMD
+
"】"
+
"新坐标"
+
point
.
ToShowStr
()
);
LogUtil
.
info
(
LogName
+
",清除上次未发送指令:【"
+
URRobotClient
.
LastMoveCMD
+
"】"
);
URRobotClient
.
LastMoveCMD
=
""
;
}
else
{
//LogUtil.info(LogName + "试图移动到:" + point.ToShowStr());
}
URRobotClient
.
LastMoveCMD
=
moveCmd
;
LastSendPoint
=
point
;
}
public
static
void
MoveTo
(
URPointValue
point
)
public
static
void
MoveTo
(
URPointValue
point
)
{
MoveTo
(
point
,
false
);
}
...
...
URSolderingClient/App.config
查看文件 @
8543659
...
...
@@ -14,7 +14,7 @@
<
add
key
=
"VideoCameraName"
value
=
"[0] Integrated Camera"
/>
<
add
key
=
"AOIFileConfig"
value
=
"\RobotConfig\AOIConfig\AOIProgram.vscf"
/>
<
add
key
=
"AOICheckPointFile"
value
=
"\RobotConfig\AOIConfig\AOIPointProgram.vscf"
/>
<
add
key
=
"AOIWaitSeconds"
value
=
"
4
000"
/>
<
add
key
=
"AOIWaitSeconds"
value
=
"
1
000"
/>
<!--送丝器消除报警需要持续的秒数-->
<
add
key
=
"SendWireRecoverSeconds"
value
=
"5"
/>
<!--空闲多久需要休眠,=
0
表示不需要休眠,>
0
表示休眠秒数-->
...
...
URSolderingClient/FrmBoardInfo.Designer.cs
查看文件 @
8543659
此文件的差异被折叠,
点击展开。
URSolderingClient/FrmWeldPointInfo.Designer.cs
查看文件 @
8543659
...
...
@@ -128,48 +128,52 @@
// label17
//
this
.
label17
.
AutoSize
=
true
;
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
219
,
5
8
);
this
.
label17
.
Location
=
new
System
.
Drawing
.
Point
(
219
,
6
8
);
this
.
label17
.
Name
=
"label17"
;
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
3
2
,
17
);
this
.
label17
.
Size
=
new
System
.
Drawing
.
Size
(
9
2
,
17
);
this
.
label17
.
TabIndex
=
66
;
this
.
label17
.
Text
=
"
说明
"
;
this
.
label17
.
Text
=
"
正常焊接的焊点
"
;
this
.
label17
.
Visible
=
false
;
//
// label16
//
this
.
label16
.
AutoSize
=
true
;
this
.
label16
.
Location
=
new
System
.
Drawing
.
Point
(
215
,
9
3
);
this
.
label16
.
Location
=
new
System
.
Drawing
.
Point
(
215
,
9
8
);
this
.
label16
.
Name
=
"label16"
;
this
.
label16
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
17
);
this
.
label16
.
TabIndex
=
65
;
this
.
label16
.
Text
=
"清洗时间:"
;
this
.
label16
.
Visible
=
false
;
//
// txtClearTime
//
this
.
txtClearTime
.
Enabled
=
false
;
this
.
txtClearTime
.
Location
=
new
System
.
Drawing
.
Point
(
286
,
9
0
);
this
.
txtClearTime
.
Location
=
new
System
.
Drawing
.
Point
(
286
,
9
5
);
this
.
txtClearTime
.
Name
=
"txtClearTime"
;
this
.
txtClearTime
.
Size
=
new
System
.
Drawing
.
Size
(
66
,
23
);
this
.
txtClearTime
.
TabIndex
=
64
;
this
.
txtClearTime
.
Visible
=
false
;
//
// label15
//
this
.
label15
.
AutoSize
=
true
;
this
.
label15
.
Location
=
new
System
.
Drawing
.
Point
(
358
,
9
3
);
this
.
label15
.
Location
=
new
System
.
Drawing
.
Point
(
358
,
9
8
);
this
.
label15
.
Name
=
"label15"
;
this
.
label15
.
Size
=
new
System
.
Drawing
.
Size
(
25
,
17
);
this
.
label15
.
TabIndex
=
63
;
this
.
label15
.
Text
=
"ms"
;
this
.
label15
.
Visible
=
false
;
//
// chbClear
//
this
.
chbClear
.
AutoSize
=
true
;
this
.
chbClear
.
Location
=
new
System
.
Drawing
.
Point
(
92
,
9
1
);
this
.
chbClear
.
Location
=
new
System
.
Drawing
.
Point
(
92
,
9
6
);
this
.
chbClear
.
Name
=
"chbClear"
;
this
.
chbClear
.
Size
=
new
System
.
Drawing
.
Size
(
87
,
21
);
this
.
chbClear
.
TabIndex
=
62
;
this
.
chbClear
.
Text
=
"清洗烙铁头"
;
this
.
chbClear
.
UseVisualStyleBackColor
=
true
;
this
.
chbClear
.
Visible
=
false
;
this
.
chbClear
.
CheckedChanged
+=
new
System
.
EventHandler
(
this
.
chbClear_CheckedChanged
);
//
// cmbPointType
...
...
@@ -178,7 +182,7 @@
this
.
cmbPointType
.
FormattingEnabled
=
true
;
this
.
cmbPointType
.
Items
.
AddRange
(
new
object
[]
{
"普通焊点"
});
this
.
cmbPointType
.
Location
=
new
System
.
Drawing
.
Point
(
92
,
5
5
);
this
.
cmbPointType
.
Location
=
new
System
.
Drawing
.
Point
(
92
,
6
5
);
this
.
cmbPointType
.
Name
=
"cmbPointType"
;
this
.
cmbPointType
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
25
);
this
.
cmbPointType
.
TabIndex
=
61
;
...
...
@@ -186,7 +190,7 @@
// label2
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
43
,
5
8
);
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
43
,
6
8
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
17
);
this
.
label2
.
TabIndex
=
60
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论