Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
URSolderingRobot
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7c5fbe23
由
几米阳光
编写于
2018-09-27 16:26:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
最低Z轴功能
1 个父辈
5b8bfa55
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
17 行删除
DeviceLibrary/bean/RobotBean.cs
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
URSolderingClient/FrmBoardInfo.cs
URSolderingClient/FrmSetting.Designer.cs
URSolderingClient/FrmSetting.cs
DeviceLibrary/bean/RobotBean.cs
查看文件 @
7c5fbe2
...
@@ -131,9 +131,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -131,9 +131,7 @@ namespace URSoldering.DeviceLibrary
{
{
//连接上IO模块后,夹具夹紧
//连接上IO模块后,夹具夹紧
KNDIOMove
(
IO_Type
.
Fixture_Clamp
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Fixture_Clamp
,
IO_VALUE
.
HIGH
);
KNDIOMove
(
IO_Type
.
Fixture_Relax
,
IO_VALUE
.
LOW
);
KNDIOMove
(
IO_Type
.
Fixture_Relax
,
IO_VALUE
.
LOW
);
}
}
public
static
bool
IsFixtureClamp
()
public
static
bool
IsFixtureClamp
()
{
{
...
...
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
查看文件 @
7c5fbe2
...
@@ -224,9 +224,10 @@ namespace URSoldering.DeviceLibrary
...
@@ -224,9 +224,10 @@ namespace URSoldering.DeviceLibrary
if
(!
URRobotClient
.
IsConnected
())
if
(!
URRobotClient
.
IsConnected
())
{
{
URRobotClient
.
StartListen
(
RobotIp
);
URRobotClient
.
StartListen
(
RobotIp
);
}
else
if
(
URRobotClient
.
IsTimeOut
())
}
else
if
(
URRobotClient
.
IsTimeOut
())
{
{
LogUtil
.
URSError
(
URRobotClient
.
LogName
+
"接收数据超时,断开后重连"
);
LogUtil
.
URSError
(
URRobotClient
.
LogName
+
"接收数据超时,断开后重连"
);
URRobotClient
.
StopListen
();
URRobotClient
.
StopListen
();
URRobotClient
.
StartListen
(
RobotIp
);
URRobotClient
.
StartListen
(
RobotIp
);
}
}
...
@@ -322,7 +323,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -322,7 +323,7 @@ namespace URSoldering.DeviceLibrary
LogUtil
.
URSInfo
(
LogName
+
" 当前状态:"
+
msg
+
",机器人连接成功!"
);
LogUtil
.
URSInfo
(
LogName
+
" 当前状态:"
+
msg
+
",机器人连接成功!"
);
LogUtil
.
info
(
LogName
+
" 当前状态:"
+
msg
+
",机器人连接成功!"
);
LogUtil
.
info
(
LogName
+
" 当前状态:"
+
msg
+
",机器人连接成功!"
);
IsRun
=
true
;
IsRun
=
true
;
reconnectTimer
.
Enabled
=
true
;
reconnectTimer
.
Enabled
=
true
;
}
}
else
else
{
{
...
@@ -336,7 +337,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -336,7 +337,7 @@ namespace URSoldering.DeviceLibrary
WarnMsg
=
"机器人状态["
+
msg
+
"],启动超时"
;
WarnMsg
=
"机器人状态["
+
msg
+
"],启动超时"
;
StopRobot
();
StopRobot
();
}
}
}
}
}
}
private
static
void
SafetyProcess
(
string
message
)
private
static
void
SafetyProcess
(
string
message
)
...
@@ -566,9 +567,8 @@ namespace URSoldering.DeviceLibrary
...
@@ -566,9 +567,8 @@ namespace URSoldering.DeviceLibrary
/// </summary>
/// </summary>
/// <param name="z"></param>
/// <param name="z"></param>
/// <returns></returns>
/// <returns></returns>
public
static
bool
IsValidZ
(
double
z
)
public
static
bool
IsValidZ
(
double
z
)
{
{
return
true
;
if
(
z
>=
Robot_LIM_Z
)
if
(
z
>=
Robot_LIM_Z
)
{
{
return
true
;
return
true
;
...
...
URSolderingClient/FrmBoardInfo.cs
查看文件 @
7c5fbe2
...
@@ -609,7 +609,11 @@ namespace URSoldering.Client
...
@@ -609,7 +609,11 @@ namespace URSoldering.Client
}
}
if
(
isNew
.
Equals
(
false
))
if
(
isNew
.
Equals
(
false
))
{
{
if
(!
board
.
imgName
.
Contains
(
board
.
boardName
))
if
(
board
.
imgName
==
null
)
{
LogUtil
.
error
(
"没有配置图片"
);
}
else
if
(!
board
.
imgName
.
Contains
(
board
.
boardName
))
{
{
try
try
{
{
...
...
URSolderingClient/FrmSetting.Designer.cs
查看文件 @
7c5fbe2
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
this
.
gbEpsonSetting
.
Size
=
new
System
.
Drawing
.
Size
(
276
,
80
);
this
.
gbEpsonSetting
.
Size
=
new
System
.
Drawing
.
Size
(
276
,
80
);
this
.
gbEpsonSetting
.
TabIndex
=
1
;
this
.
gbEpsonSetting
.
TabIndex
=
1
;
this
.
gbEpsonSetting
.
TabStop
=
false
;
this
.
gbEpsonSetting
.
TabStop
=
false
;
this
.
gbEpsonSetting
.
Text
=
"
焊接机器人抬起高度
"
;
this
.
gbEpsonSetting
.
Text
=
"
机器人Z轴最低点
"
;
//
//
// txtLimZ
// txtLimZ
//
//
...
...
URSolderingClient/FrmSetting.cs
查看文件 @
7c5fbe2
...
@@ -75,26 +75,26 @@ namespace URSoldering.Client
...
@@ -75,26 +75,26 @@ namespace URSoldering.Client
URPointValue
homeP
=
homeControl
.
GetPoint
();
URPointValue
homeP
=
homeControl
.
GetPoint
();
//判断原点的Z轴
//判断原点的Z轴
if
(
homeP
.
Z
>
limz
)
if
(
homeP
.
Z
<
limz
)
{
{
MessageBox
.
Show
(
"待机点Z坐标不能
高于最高
Z点!"
);
MessageBox
.
Show
(
"待机点Z坐标不能
低于最低
Z点!"
);
homeControl
.
Focus
();
homeControl
.
Focus
();
return
;
return
;
}
}
URPointValue
clear1P
=
clear1Control
.
GetPoint
();
URPointValue
clear1P
=
clear1Control
.
GetPoint
();
//判断原点的Z轴
//判断原点的Z轴
if
(
clear1P
.
Z
>
limz
)
if
(
clear1P
.
Z
<
limz
)
{
{
MessageBox
.
Show
(
"清洗点1的Z坐标不能
高于最高
Z点!"
);
MessageBox
.
Show
(
"清洗点1的Z坐标不能
低于最低
Z点!"
);
clear1Control
.
Focus
();
clear1Control
.
Focus
();
return
;
return
;
}
}
URPointValue
clear2P
=
clear2Control
.
GetPoint
();
URPointValue
clear2P
=
clear2Control
.
GetPoint
();
//判断原点的Z轴
//判断原点的Z轴
if
(
clear2P
.
Z
>
limz
)
if
(
clear2P
.
Z
<
limz
)
{
{
MessageBox
.
Show
(
"清洗点2的Z坐标不能
高于最高
Z点!"
);
MessageBox
.
Show
(
"清洗点2的Z坐标不能
低于最低
Z点!"
);
clear2Control
.
Focus
();
clear2Control
.
Focus
();
return
;
return
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论