Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
URSolderingRobot
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 447e2211
由
几米阳光
编写于
2018-07-28 16:43:52 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
机器人调试,日志分开打印
1 个父辈
1dcf046d
显示空白字符变更
内嵌
并排
正在显示
24 个修改的文件
包含
416 行增加
和
413 行删除
Common/Setting_Init.cs
Common/logs/LogUtil.cs
Common/util/TcpClient.cs
Common/util/URTcpClient.cs
DeviceLibrary/DeviceLibrary.csproj
DeviceLibrary/Robot/LineSolderingRobot_Partial.cs
DeviceLibrary/RobotConfig/config/boardData.txt
DeviceLibrary/RobotConfig/config/solderingWorkCount.json
DeviceLibrary/RobotConfig/solderingConfig/SolderingRobotConfig.csv
DeviceLibrary/bean/BoardManager.cs
DeviceLibrary/bean/RobotBean.cs
DeviceLibrary/deviceLibrary/urRobot/URRobotManager.cs → DeviceLibrary/deviceLibrary/urRobot/URRobotClient.cs
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
URSolderingClient/App.config
URSolderingClient/FrmBoardInfo.cs
URSolderingClient/FrmMenu.Designer.cs
URSolderingClient/FrmMenu.cs
URSolderingClient/FrmOrgConfig.Designer.cs
URSolderingClient/FrmOrgConfig.cs
URSolderingClient/FrmOrgConfig.resx
URSolderingClient/FrmSolderingSetting.cs
UserFromControl/URRobotSControl.Designer.cs
dll/URToolKit.dll
doc/设备IP地址分配.xlsx
Common/Setting_Init.cs
查看文件 @
447e221
...
@@ -106,13 +106,8 @@ namespace URSoldering.Common
...
@@ -106,13 +106,8 @@ namespace URSoldering.Common
/// 配置文件路径 Data Matrix ECC 200.dcm
/// 配置文件路径 Data Matrix ECC 200.dcm
/// </summary>
/// </summary>
public
static
string
CodeParamPath
=
"CodeParamPath"
;
public
static
string
CodeParamPath
=
"CodeParamPath"
;
/// <summary>
/// 是否需要连接Mes,1=需要,0不需要
/// </summary>
//public static string Mes_IsConnect = "Mes_IsConnect";
public
static
string
VideoCameraName
=
"VideoCameraName"
;
public
static
string
VideoCameraName
=
"VideoCameraName"
;
//public static string CodeCameraName = "CodeCameraName";
#
endregion
#
endregion
public
static
string
AOIWaitSeconds
=
"AOIWaitSeconds"
;
public
static
string
AOIWaitSeconds
=
"AOIWaitSeconds"
;
...
...
Common/logs/LogUtil.cs
查看文件 @
447e221
...
@@ -168,39 +168,29 @@ namespace URSoldering.Common
...
@@ -168,39 +168,29 @@ namespace URSoldering.Common
}
}
}
}
private
static
readonly
ILog
solderingLog
=
LogManager
.
GetLogger
(
"weldInfo
Appender"
);
private
static
readonly
ILog
urStatusLog
=
LogManager
.
GetLogger
(
"RobotStatusLog
Appender"
);
private
static
string
split
=
","
;
private
static
string
split
=
","
;
//public static void SoldPoint(string boardName, string pointName, DateTime startPreTime,DateTime endPreTime,DateTime startWeldTime,
public
static
void
URSInfo
(
string
msg
)
// DateTime endWeldTime)
//{
// solderingLog.Info(DateTime.Now.ToString() + split + boardName + split + pointName + split + startPreTime.ToString()+split+
// endPreTime.ToString()+split+startWeldTime.ToString()+split+endWeldTime.ToString());
//}
public
static
void
SoldPoint
(
string
boardName
,
string
pointName
,
DateTime
startPreTime
,
DateTime
endPreTime
,
DateTime
startWeldTime
,
DateTime
endWeldTime
,
int
preTemp
,
double
preTime
,
int
weldTemp
,
double
weldTime
,
double
ssendSpeed
,
double
ssendTime
,
double
sendSpeed
,
double
sendTime
)
{
{
solderingLog
.
Info
(
DateTime
.
Now
.
ToString
()
+
split
+
boardName
+
split
+
pointName
+
split
+
startPreTime
.
ToString
()
+
split
+
urStatusLog
.
Info
(
msg
);
endPreTime
.
ToString
()
+
split
+
startWeldTime
.
ToString
()
+
split
+
endWeldTime
.
ToString
()+
split
+
preTemp
+
split
+
preTime
+
split
+
weldTemp
+
split
+
weldTime
+
split
+
ssendSpeed
+
split
+
ssendTime
+
split
+
sendSpeed
+
split
+
sendTime
);
}
}
private
static
readonly
ILog
tempLog
=
LogManager
.
GetLogger
(
"tempAppender"
);
public
static
void
URSError
(
string
msg
)
public
static
void
TempLog
(
string
msg
)
{
{
if
(
msg
.
Equals
(
"--"
))
urStatusLog
.
Error
(
msg
);
{
return
;
}
}
tempLog
.
Info
(
DateTime
.
Now
.
ToString
()
+
split
+
msg
);
private
static
readonly
ILog
urListenLog
=
LogManager
.
GetLogger
(
"RobotListenLogAppender"
);
public
static
void
URLInfo
(
string
msg
)
{
urListenLog
.
Info
(
msg
);
}
}
public
static
void
URLError
(
string
msg
)
private
static
readonly
ILog
boardSoldLog
=
LogManager
.
GetLogger
(
"boardSoldAppender"
);
public
static
void
BoardSolderingLog
(
string
boardName
,
DateTime
startTime
,
DateTime
endTime
)
{
{
boardSoldLog
.
Info
(
DateTime
.
Now
.
ToString
()
+
split
+
boardName
+
split
+
startTime
+
split
+
endTime
);
urListenLog
.
Error
(
msg
);
}
}
/// <summary>
/// <summary>
/// 获取写文件的时间
/// 获取写文件的时间
/// </summary>
/// </summary>
...
...
Common/util/TcpClient.cs
查看文件 @
447e221
...
@@ -225,7 +225,7 @@ namespace URSoldering.Common
...
@@ -225,7 +225,7 @@ namespace URSoldering.Common
}
}
else
else
{
{
LogUtil
.
info
(
LOGGER
,
"发送数据:"
+
strSendData
);
LogUtil
.
debug
(
LOGGER
,
"发送数据:"
+
strSendData
);
}
}
strSendData
=
strSendData
+
"\r\n"
;
strSendData
=
strSendData
+
"\r\n"
;
...
...
Common/util/URTcpClient.cs
查看文件 @
447e221
...
@@ -19,9 +19,9 @@ namespace URSoldering.Common
...
@@ -19,9 +19,9 @@ namespace URSoldering.Common
public
delegate
void
ByteHandleMessage
(
byte
[]
data
);
public
delegate
void
ByteHandleMessage
(
byte
[]
data
);
public
int
DefaultDataLength
=
1024
;
public
int
DefaultDataLength
=
1024
;
public
int
ReviceSleepMS
=
100
;
public
int
ReviceSleepMS
=
100
;
private
Socket
m_clientSocket
=
null
;
private
Socket
m_clientSocket
=
null
;
private
byte
[]
m_receiveBuffer
=
new
byte
[
10
24
];
private
byte
[]
m_receiveBuffer
=
new
byte
[
10
78
];
private
string
LogName
=
""
;
private
ByteHandleMessage
byteOnReceived
;
private
ByteHandleMessage
byteOnReceived
;
public
int
TimeOutTime
=
0
;
public
int
TimeOutTime
=
0
;
...
@@ -39,14 +39,7 @@ namespace URSoldering.Common
...
@@ -39,14 +39,7 @@ namespace URSoldering.Common
{
{
return
true
;
return
true
;
}
}
#
region
remarks
/********************************************************************************************
* 当Socket.Conneted为false时, 如果您需要确定连接的当前状态,请进行非阻塞、零字节的 Send 调用。
* 如果该调用成功返回或引发 WAEWOULDBLOCK 错误代码 (10035),则该套接字仍然处于连接状态;
* 否则,该套接字不再处于连接状态。
* Depending on http://msdn.microsoft.com/zh-cn/library/system.net.sockets.socket.connected.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2
********************************************************************************************/
#
endregion
try
try
{
{
#
region
过程
#
region
过程
...
@@ -82,13 +75,12 @@ namespace URSoldering.Common
...
@@ -82,13 +75,12 @@ namespace URSoldering.Common
}
}
}
}
//Console.WriteLine("Connected: {0}", client.Connected);
return
connectState
;
return
connectState
;
#
endregion
#
endregion
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
LOGGER
,
"出错啦"
+
ex
.
ToString
());
LogUtil
.
debug
(
LOGGER
,
"出错啦"
+
ex
.
ToString
());
return
false
;
return
false
;
}
}
}
}
...
@@ -98,6 +90,7 @@ namespace URSoldering.Common
...
@@ -98,6 +90,7 @@ namespace URSoldering.Common
/// </summary>
/// </summary>
public
bool
connect
(
string
serverIP
,
int
serverPort
,
ByteHandleMessage
byteHandle
)
public
bool
connect
(
string
serverIP
,
int
serverPort
,
ByteHandleMessage
byteHandle
)
{
{
LogName
=
"【"
+
serverIP
+
" ,"
+
serverPort
+
"】"
;
m_receiveBuffer
=
new
byte
[
DefaultDataLength
];
m_receiveBuffer
=
new
byte
[
DefaultDataLength
];
m_clientSocket
=
new
Socket
(
AddressFamily
.
InterNetwork
,
SocketType
.
Stream
,
ProtocolType
.
Tcp
);
m_clientSocket
=
new
Socket
(
AddressFamily
.
InterNetwork
,
SocketType
.
Stream
,
ProtocolType
.
Tcp
);
if
(
TimeOutTime
<=
0
)
if
(
TimeOutTime
<=
0
)
...
@@ -113,21 +106,18 @@ namespace URSoldering.Common
...
@@ -113,21 +106,18 @@ namespace URSoldering.Common
if
(
m_clientSocket
.
Connected
)
if
(
m_clientSocket
.
Connected
)
{
{
m_clientSocket
.
BeginReceive
(
m_receiveBuffer
,
0
,
m_receiveBuffer
.
Length
,
0
,
new
AsyncCallback
(
ReceiveCallBack
),
null
);
m_clientSocket
.
BeginReceive
(
m_receiveBuffer
,
0
,
m_receiveBuffer
.
Length
,
0
,
new
AsyncCallback
(
ReceiveCallBack
),
null
);
byteOnReceived
=
byteHandle
;
byteOnReceived
=
byteHandle
;
LogUtil
.
URLInfo
(
"Connect to "
+
LogName
+
" success"
);
LogUtil
.
info
(
LOGGER
,
"Connect to "
+
serverIP
+
":"
+
serverPort
+
" success!"
);
return
true
;
return
true
;
}
}
else
else
{
{
LogUtil
.
info
(
LOGGER
,
"Connect to "
+
serverIP
+
":"
+
serverPort
+
" fail!
"
);
LogUtil
.
URLInfo
(
"Connect to "
+
LogName
+
" fail
"
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
LOGGER
,
"Connect to "
+
serverIP
+
":"
+
serverPort
+
" fail!"
+
ex
.
ToString
(),
3
);
LogUtil
.
URLError
(
"Connect to "
+
LogName
+
" error :"
+
ex
.
ToString
()
);
//m_clientSocket = null;
//m_clientSocket = null;
}
}
}
}
...
@@ -139,7 +129,7 @@ namespace URSoldering.Common
...
@@ -139,7 +129,7 @@ namespace URSoldering.Common
connResult
.
AsyncWaitHandle
.
WaitOne
(
this
.
TimeOutTime
,
true
);
//等待2秒
connResult
.
AsyncWaitHandle
.
WaitOne
(
this
.
TimeOutTime
,
true
);
//等待2秒
if
(!
connResult
.
IsCompleted
||
(!
m_clientSocket
.
Connected
))
if
(!
connResult
.
IsCompleted
||
(!
m_clientSocket
.
Connected
))
{
{
LogUtil
.
info
(
LOGGER
,
"Connect to "
+
serverIP
+
":"
+
serverPort
+
" fail!
"
);
LogUtil
.
URLInfo
(
"Connect to "
+
LogName
+
" fail
"
);
m_clientSocket
.
Close
();
m_clientSocket
.
Close
();
//处理连接不成功的动作
//处理连接不成功的动作
return
false
;
return
false
;
...
@@ -153,7 +143,7 @@ namespace URSoldering.Common
...
@@ -153,7 +143,7 @@ namespace URSoldering.Common
{
{
byteOnReceived
=
byteHandle
;
byteOnReceived
=
byteHandle
;
}
}
LogUtil
.
info
(
LOGGER
,
"Connect to "
+
serverIP
+
":"
+
serverPort
+
" success!
"
);
LogUtil
.
URLInfo
(
"Connect to "
+
LogName
+
" success
"
);
return
true
;
return
true
;
}
}
}
}
...
@@ -167,20 +157,20 @@ namespace URSoldering.Common
...
@@ -167,20 +157,20 @@ namespace URSoldering.Common
{
{
try
try
{
{
if
(
m_clientSocket
!=
null
&&
m_clientSocket
.
Connected
)
if
(
m_clientSocket
!=
null
&&
m_clientSocket
.
Connected
)
{
{
m_clientSocket
.
Shutdown
(
SocketShutdown
.
Both
);
m_clientSocket
.
Shutdown
(
SocketShutdown
.
Both
);
m_clientSocket
.
Close
();
m_clientSocket
.
Close
();
LogUtil
.
info
(
LOGGER
,
"Socket closed!"
);
LogUtil
.
URLInfo
(
LogName
+
"Socket closed!"
);
}
}
else
else
{
{
LogUtil
.
error
(
LOGGER
,
"No socket is running!"
);
LogUtil
.
URLInfo
(
LogName
+
"No socket is running!"
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
LOGGER
,
"close error :"
+
ex
.
ToString
());
LogUtil
.
URLError
(
LogName
+
"close error :"
+
ex
.
ToString
());
}
}
}
}
...
@@ -203,19 +193,10 @@ namespace URSoldering.Common
...
@@ -203,19 +193,10 @@ namespace URSoldering.Common
/// </summary>
/// </summary>
public
void
sendLine
(
string
strSendData
)
public
void
sendLine
(
string
strSendData
)
{
{
if
(
strSendData
.
StartsWith
(
"save"
))
LogUtil
.
info
(
LOGGER
,
LogName
+
"发送数据:"
+
strSendData
);
{
LogUtil
.
debug
(
LOGGER
,
"发送数据:"
+
strSendData
);
}
else
{
LogUtil
.
debug
(
LOGGER
,
"发送数据:"
+
strSendData
);
}
strSendData
=
strSendData
+
"\r\n"
;
strSendData
=
strSendData
+
"\r\n"
;
byte
[]
sendBuffer
=
new
byte
[
DefaultDataLength
];
byte
[]
sendBuffer
=
new
byte
[
DefaultDataLength
];
sendBuffer
=
Encoding
.
UTF8
.
GetBytes
(
strSendData
);
sendBuffer
=
Encoding
.
UTF8
.
GetBytes
(
strSendData
);
if
(
m_clientSocket
!=
null
&&
m_clientSocket
.
Connected
)
if
(
m_clientSocket
!=
null
&&
m_clientSocket
.
Connected
)
{
{
m_clientSocket
.
Send
(
sendBuffer
);
m_clientSocket
.
Send
(
sendBuffer
);
...
@@ -230,9 +211,10 @@ namespace URSoldering.Common
...
@@ -230,9 +211,10 @@ namespace URSoldering.Common
/// <param name="connId">每个客户的会话ID</param>
/// <param name="connId">每个客户的会话ID</param>
/// <param name="bytes">缓冲区数据</param>
/// <param name="bytes">缓冲区数据</param>
/// <returns></returns>
/// <returns></returns>
private
int
OnReceive
(
byte
[]
bytes
)
private
int
OnReceive
(
byte
[]
bytes
)
{
try
{
{
try
{
//bytes 为系统缓冲区数据
//bytes 为系统缓冲区数据
//bytesRead为系统缓冲区长度
//bytesRead为系统缓冲区长度
int
bytesRead
=
bytes
.
Length
;
int
bytesRead
=
bytes
.
Length
;
...
@@ -270,7 +252,7 @@ namespace URSoldering.Common
...
@@ -270,7 +252,7 @@ namespace URSoldering.Common
int
bodySize
=
BitConverter
.
ToInt32
(
headByte
,
0
);
//从包头里面分析出包体的长度
int
bodySize
=
BitConverter
.
ToInt32
(
headByte
,
0
);
//从包头里面分析出包体的长度
if
(
bodySize
<=
0
)
if
(
bodySize
<=
0
)
{
{
LogUtil
.
error
(
"解析错误:长度:"
+
bodySize
);
LogUtil
.
error
(
"解析错误:长度:"
+
bodySize
);
}
}
//这里的 haveRead=等于N个数据包的长度 从0开始;0,1,2,3....N
//这里的 haveRead=等于N个数据包的长度 从0开始;0,1,2,3....N
//如果自定义缓冲区拆解N个包后的长度 大于 总长度,说最后一段数据不够一个完整的包了,拆出来保存
//如果自定义缓冲区拆解N个包后的长度 大于 总长度,说最后一段数据不够一个完整的包了,拆出来保存
...
@@ -284,14 +266,14 @@ namespace URSoldering.Common
...
@@ -284,14 +266,14 @@ namespace URSoldering.Common
else
else
{
{
//挨个分解每个包,解析成实际文字
//挨个分解每个包,解析成实际文字
byte
[]
endArray
=
surplusBuffer
.
Skip
(
haveRead
).
Take
(
bodySize
).
ToArray
();
//
byte
[]
endArray
=
surplusBuffer
.
Skip
(
haveRead
).
Take
(
bodySize
).
ToArray
();
//
Task
.
Factory
.
StartNew
(
delegate
()
Task
.
Factory
.
StartNew
(
delegate
()
{
{
byteOnReceived
?.
Invoke
(
endArray
);
byteOnReceived
?.
Invoke
(
endArray
);
});
});
//依次累加当前的数据包的长度
//依次累加当前的数据包的长度
haveRead
=
haveRead
+
bodySize
;
haveRead
=
haveRead
+
bodySize
;
if
(
bodySize
==
bytesRead
)
//如果当前接收的数据包长度正好等于缓冲区长度,则待拼接的不规则数据长度归0
if
(
bodySize
==
bytesRead
)
//如果当前接收的数据包长度正好等于缓冲区长度,则待拼接的不规则数据长度归0
{
{
surplusBuffer
=
null
;
//设置空 回到原始状态
surplusBuffer
=
null
;
//设置空 回到原始状态
totalLen
=
0
;
//清0
totalLen
=
0
;
//清0
...
@@ -314,11 +296,11 @@ namespace URSoldering.Common
...
@@ -314,11 +296,11 @@ namespace URSoldering.Common
if
(
m_clientSocket
!=
null
&&
m_clientSocket
.
Connected
)
if
(
m_clientSocket
!=
null
&&
m_clientSocket
.
Connected
)
{
{
int
REnd
=
m_clientSocket
.
EndReceive
(
ar
);
int
REnd
=
m_clientSocket
.
EndReceive
(
ar
);
OnReceive
(
m_receiveBuffer
);
//
OnReceive(m_receiveBuffer);
//
Task.Factory.StartNew(delegate ()
Task
.
Factory
.
StartNew
(
delegate
()
//
{
{
//
byteOnReceived(m_receiveBuffer);
byteOnReceived
(
m_receiveBuffer
);
//
});
});
Thread
.
Sleep
(
ReviceSleepMS
);
Thread
.
Sleep
(
ReviceSleepMS
);
//LOGGER.Debug("m_clientSocket:" + m_clientSocket + "\n m_receiveBuffer" + m_receiveBuffer);
//LOGGER.Debug("m_clientSocket:" + m_clientSocket + "\n m_receiveBuffer" + m_receiveBuffer);
//Task.Factory.StartNew(delegate ()
//Task.Factory.StartNew(delegate ()
...
@@ -329,7 +311,7 @@ namespace URSoldering.Common
...
@@ -329,7 +311,7 @@ namespace URSoldering.Common
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
LOGGER
,
"socket received error:"
+
ex
.
ToString
(),
4
);
LogUtil
.
URLError
(
LogName
+
" socket received error:"
+
ex
.
ToString
()
);
}
}
}
}
}
}
...
...
DeviceLibrary/DeviceLibrary.csproj
查看文件 @
447e221
...
@@ -80,6 +80,9 @@
...
@@ -80,6 +80,9 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml" />
<Reference Include="URToolKit">
<HintPath>..\dll\URToolKit.dll</HintPath>
</Reference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile Include="bean\BoardInfo.cs" />
<Compile Include="bean\BoardInfo.cs" />
...
@@ -94,7 +97,7 @@
...
@@ -94,7 +97,7 @@
<Compile Include="deviceLibrary\kangnaide\KNDManager.cs" />
<Compile Include="deviceLibrary\kangnaide\KNDManager.cs" />
<Compile Include="deviceLibrary\kangnaide\MasterTcpClient.cs" />
<Compile Include="deviceLibrary\kangnaide\MasterTcpClient.cs" />
<Compile Include="deviceLibrary\urRobot\URRobotControl.cs" />
<Compile Include="deviceLibrary\urRobot\URRobotControl.cs" />
<Compile Include="deviceLibrary\urRobot\URRobot
Manager
.cs" />
<Compile Include="deviceLibrary\urRobot\URRobot
Client
.cs" />
<Compile Include="Robot\MoveType.cs" />
<Compile Include="Robot\MoveType.cs" />
<Compile Include="Robot\soldering\AlarmType.cs" />
<Compile Include="Robot\soldering\AlarmType.cs" />
<Compile Include="bean\BoardManager.cs" />
<Compile Include="bean\BoardManager.cs" />
...
...
DeviceLibrary/Robot/LineSolderingRobot_Partial.cs
查看文件 @
447e221
...
@@ -13,10 +13,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -13,10 +13,7 @@ namespace URSoldering.DeviceLibrary
public
event
GetCode
GetCodeFun
;
public
event
GetCode
GetCodeFun
;
public
bool
IsAutoRun
=
false
;
public
bool
IsAutoRun
=
false
;
private
void
LineLog
(
string
msg
)
{
LogUtil
.
debug
(
RobotName
+
msg
);
}
private
void
BusyProcess
()
private
void
BusyProcess
()
{
{
if
(
LineStep
.
moveStep
.
Equals
(
MoveStep
.
BUSY01_Weld
))
if
(
LineStep
.
moveStep
.
Equals
(
MoveStep
.
BUSY01_Weld
))
...
...
DeviceLibrary/RobotConfig/config/boardData.txt
查看文件 @
447e221
{"
myImage":null,"boardId":56,"WareCode":"hanjietest","ZHighValue":-20.0,"StationNum":0,"PartNumber":"보쌈꿎桿","boardName":"보쌈꿎桿","boardWidth":115,"boardLength":180,"pointList":[{"pointNum":1,"pointName":"P1","PositionX":-139.107,"PositionY":264.566,"PositionU":32.2339,"PositionZ":-105.762,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":1.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":2,"pointName":"P2","PositionX":-137.652,"PositionY":215.817,"PositionU":32.9741,"PositionZ":-105.762,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":1.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":3,"pointName":"P3","PositionX":-142.84,"PositionY":163.777,"PositionU":77.6469,"PositionZ":-98.8411,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":4,"pointName":"P4","PositionX":-154.846,"PositionY":271.558,"PositionU":36.3087,"PositionZ":-116.111,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":5,"pointName":"P5","PositionX":-155.533,"PositionY":224.878,"PositionU":37.3001,"PositionZ":-116.115,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":6,"pointName":"P6","PositionX":-154.178,"PositionY":174.523,"PositionU":40.7436,"PositionZ":-116.116,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":7,"pointName":"P7","PositionX":-146.152,"PositionY":148.147,"PositionU":42.3167,"PositionZ":-116.117,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":8,"pointName":"P8","PositionX":-180.554,"PositionY":259.323,"PositionU":41.3738,"PositionZ":-116.143,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":9,"pointName":"P9","PositionX":-177.282,"PositionY":162.491,"PositionU":46.8716,"PositionZ":-116.143,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"
}],"originX":-64.1489,"originY":119.404,"imgName":"보쌈꿎桿.jpg","planNeedTime":0.0,"orgType":1,"solderingCount":0,"solderingTime":0.0,"solderCount":0,"solderTime":0.0}
{"
WeldTime":"00:00:00","myImage":null,"boardId":56,"WareCode":"hanjietest","ZHighValue":-20.0,"StationNum":0,"PartNumber":"보쌈꿎桿","boardName":"보쌈꿎桿","boardWidth":115,"boardLength":180,"pointList":[{"pointNum":1,"pointName":"P1","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":1.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":2,"pointName":"P2","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":1.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":3,"pointName":"P3","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":4,"pointName":"P4","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":5,"pointName":"P5","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":6,"pointName":"P6","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":7,"pointName":"P7","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":8,"pointName":"P8","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":9,"pointName":"P9","RobotX":0.0,"RoobtY":0.0,"RobotZ":0.0,"RobotRX":0.0,"RobotRY":0.0,"RobotRZ":0.0,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":1.0,"startSendWireTime":0.0,"sendWireSpeed":10.0,"sendWireTime":0.0,"pointType":0,"isNeedClear":false,"ClearTime":3000
}],"originX":-64.1489,"originY":119.404,"imgName":"보쌈꿎桿.jpg","planNeedTime":0.0,"orgType":1,"solderingCount":0,"solderingTime":0.0,"solderCount":0,"solderTime":0.0}
{"
myImage":null,"boardId":57,"WareCode":"test","ZHighValue":-20.0,"StationNum":0,"PartNumber":"TEST","boardName":"TEST","boardWidth":115,"boardLength":180,"pointList":[{"pointNum":1,"pointName":"P1","PositionX":-154.178,"PositionY":174.523,"PositionU":40.7436,"PositionZ":-116.116,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":5.0,"startSendWireTime":2.0,"sendWireSpeed":20.0,"sendWireTime":2.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"},{"pointNum":2,"pointName":"P2","PositionX":-146.152,"PositionY":148.147,"PositionU":42.3167,"PositionZ":-116.117,"HandDirection":2,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":5.0,"startSendWireTime":3.0,"sendWireSpeed":20.0,"sendWireTime":2.0,"pointType":0,"isNeedClear":false,"ClearTime":3000,"HandValue":"璘글"
}],"originX":-64.1489,"originY":119.404,"imgName":"TEST.jpg","planNeedTime":0.0,"orgType":1,"solderingCount":0,"solderingTime":0.0,"solderCount":0,"solderTime":0.0}
{"
WeldTime":"00:00:00","myImage":null,"boardId":57,"WareCode":"test","ZHighValue":-20.0,"StationNum":0,"PartNumber":"TEST","boardName":"TEST","boardWidth":115,"boardLength":180,"pointList":[{"pointNum":1,"pointName":"P1","RobotX":-75.1,"RoobtY":-345.67,"RobotZ":134.52,"RobotRX":3.112,"RobotRY":0.0649,"RobotRZ":0.0376,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":5.0,"startSendWireTime":2.0,"sendWireSpeed":20.0,"sendWireTime":2.0,"pointType":0,"isNeedClear":false,"ClearTime":3000},{"pointNum":2,"pointName":"P2","RobotX":-67.29,"RoobtY":-436.62,"RobotZ":293.68,"RobotRX":2.7394,"RobotRY":0.0599,"RobotRZ":0.0708,"preheatTemperature":360,"preheatTemperatureMax":380,"preheatTemperatureMin":340,"preheatTime":1.0,"weldTemperature":360,"weldTemperatureMax":380,"weldTemperatureMin":340,"weldTime":1.0,"startSendWireSpeed":5.0,"startSendWireTime":3.0,"sendWireSpeed":20.0,"sendWireTime":2.0,"pointType":0,"isNeedClear":false,"ClearTime":3000
}],"originX":-64.1489,"originY":119.404,"imgName":"TEST.jpg","planNeedTime":0.0,"orgType":1,"solderingCount":0,"solderingTime":0.0,"solderCount":0,"solderTime":0.0}
DeviceLibrary/RobotConfig/config/solderingWorkCount.json
0 → 100644
查看文件 @
447e221
{
"WorkLogList"
:[{
"WeldCount"
:
0
,
"WeldPointCount"
:
0
,
"DayTime"
:
"2018-07-17T23:59:59"
},{
"WeldCount"
:
152
,
"WeldPointCount"
:
652
,
"DayTime"
:
"2018-07-16T23:59:59"
},{
"WeldCount"
:
208
,
"WeldPointCount"
:
663
,
"DayTime"
:
"2018-07-15T23:59:59"
},{
"WeldCount"
:
170
,
"WeldPointCount"
:
710
,
"DayTime"
:
"2018-07-14T23:59:59"
},{
"WeldCount"
:
211
,
"WeldPointCount"
:
662
,
"DayTime"
:
"2018-07-13T23:59:59"
},{
"WeldCount"
:
106
,
"WeldPointCount"
:
520
,
"DayTime"
:
"2018-07-12T23:59:59"
},{
"WeldCount"
:
150
,
"WeldPointCount"
:
594
,
"DayTime"
:
"2018-07-11T23:59:59"
},{
"WeldCount"
:
117
,
"WeldPointCount"
:
597
,
"DayTime"
:
"2018-07-10T23:59:59"
},{
"WeldCount"
:
201
,
"WeldPointCount"
:
505
,
"DayTime"
:
"2018-07-09T23:59:59"
},{
"WeldCount"
:
146
,
"WeldPointCount"
:
636
,
"DayTime"
:
"2018-07-08T23:59:59"
},{
"WeldCount"
:
234
,
"WeldPointCount"
:
526
,
"DayTime"
:
"2018-07-07T23:59:59"
},{
"WeldCount"
:
163
,
"WeldPointCount"
:
604
,
"DayTime"
:
"2018-07-06T23:59:59"
},{
"WeldCount"
:
232
,
"WeldPointCount"
:
612
,
"DayTime"
:
"2018-07-05T23:59:59"
},{
"WeldCount"
:
195
,
"WeldPointCount"
:
569
,
"DayTime"
:
"2018-07-04T23:59:59"
},{
"WeldCount"
:
184
,
"WeldPointCount"
:
514
,
"DayTime"
:
"2018-07-03T23:59:59"
},{
"WeldCount"
:
147
,
"WeldPointCount"
:
648
,
"DayTime"
:
"2018-07-02T23:59:59"
},{
"WeldCount"
:
106
,
"WeldPointCount"
:
686
,
"DayTime"
:
"2018-07-01T23:59:59"
},{
"WeldCount"
:
147
,
"WeldPointCount"
:
524
,
"DayTime"
:
"2018-06-30T23:59:59"
},{
"WeldCount"
:
244
,
"WeldPointCount"
:
712
,
"DayTime"
:
"2018-06-29T23:59:59"
},{
"WeldCount"
:
240
,
"WeldPointCount"
:
688
,
"DayTime"
:
"2018-06-28T23:59:59"
},{
"WeldCount"
:
116
,
"WeldPointCount"
:
583
,
"DayTime"
:
"2018-06-27T23:59:59"
},{
"WeldCount"
:
231
,
"WeldPointCount"
:
743
,
"DayTime"
:
"2018-06-26T23:59:59"
},{
"WeldCount"
:
161
,
"WeldPointCount"
:
620
,
"DayTime"
:
"2018-06-25T23:59:59"
},{
"WeldCount"
:
181
,
"WeldPointCount"
:
556
,
"DayTime"
:
"2018-06-24T23:59:59"
},{
"WeldCount"
:
187
,
"WeldPointCount"
:
595
,
"DayTime"
:
"2018-06-23T23:59:59"
},{
"WeldCount"
:
120
,
"WeldPointCount"
:
616
,
"DayTime"
:
"2018-06-22T23:59:59"
},{
"WeldCount"
:
151
,
"WeldPointCount"
:
587
,
"DayTime"
:
"2018-06-21T23:59:59"
},{
"WeldCount"
:
204
,
"WeldPointCount"
:
619
,
"DayTime"
:
"2018-06-20T23:59:59"
},{
"WeldCount"
:
149
,
"WeldPointCount"
:
685
,
"DayTime"
:
"2018-06-19T23:59:59"
},{
"WeldCount"
:
175
,
"WeldPointCount"
:
662
,
"DayTime"
:
"2018-06-18T23:59:59"
},{
"WeldCount"
:
207
,
"WeldPointCount"
:
617
,
"DayTime"
:
"2018-06-17T23:59:59"
},{
"WeldCount"
:
205
,
"WeldPointCount"
:
796
,
"DayTime"
:
"2018-06-16T23:59:59"
},{
"WeldCount"
:
216
,
"WeldPointCount"
:
572
,
"DayTime"
:
"2018-06-15T23:59:59"
},{
"WeldCount"
:
109
,
"WeldPointCount"
:
705
,
"DayTime"
:
"2018-06-14T23:59:59"
},{
"WeldCount"
:
223
,
"WeldPointCount"
:
687
,
"DayTime"
:
"2018-06-13T23:59:59"
},{
"WeldCount"
:
168
,
"WeldPointCount"
:
506
,
"DayTime"
:
"2018-06-12T23:59:59"
},{
"WeldCount"
:
203
,
"WeldPointCount"
:
542
,
"DayTime"
:
"2018-06-11T23:59:59"
},{
"WeldCount"
:
211
,
"WeldPointCount"
:
547
,
"DayTime"
:
"2018-06-10T23:59:59"
},{
"WeldCount"
:
233
,
"WeldPointCount"
:
532
,
"DayTime"
:
"2018-06-09T23:59:59"
},{
"WeldCount"
:
152
,
"WeldPointCount"
:
705
,
"DayTime"
:
"2018-06-08T23:59:59"
},{
"WeldCount"
:
228
,
"WeldPointCount"
:
797
,
"DayTime"
:
"2018-06-07T23:59:59"
},{
"WeldCount"
:
229
,
"WeldPointCount"
:
635
,
"DayTime"
:
"2018-06-06T23:59:59"
},{
"WeldCount"
:
231
,
"WeldPointCount"
:
640
,
"DayTime"
:
"2018-06-05T23:59:59"
},{
"WeldCount"
:
152
,
"WeldPointCount"
:
727
,
"DayTime"
:
"2018-06-04T23:59:59"
},{
"WeldCount"
:
185
,
"WeldPointCount"
:
558
,
"DayTime"
:
"2018-06-03T23:59:59"
},{
"WeldCount"
:
175
,
"WeldPointCount"
:
776
,
"DayTime"
:
"2018-06-02T23:59:59"
},{
"WeldCount"
:
146
,
"WeldPointCount"
:
592
,
"DayTime"
:
"2018-06-01T23:59:59"
},{
"WeldCount"
:
244
,
"WeldPointCount"
:
524
,
"DayTime"
:
"2018-05-31T23:59:59"
},{
"WeldCount"
:
202
,
"WeldPointCount"
:
602
,
"DayTime"
:
"2018-05-30T23:59:59"
},{
"WeldCount"
:
196
,
"WeldPointCount"
:
645
,
"DayTime"
:
"2018-05-29T23:59:59"
},{
"WeldCount"
:
225
,
"WeldPointCount"
:
704
,
"DayTime"
:
"2018-05-28T23:59:59"
},{
"WeldCount"
:
210
,
"WeldPointCount"
:
761
,
"DayTime"
:
"2018-05-27T23:59:59"
},{
"WeldCount"
:
209
,
"WeldPointCount"
:
725
,
"DayTime"
:
"2018-05-26T23:59:59"
},{
"WeldCount"
:
170
,
"WeldPointCount"
:
719
,
"DayTime"
:
"2018-05-25T23:59:59"
},{
"WeldCount"
:
191
,
"WeldPointCount"
:
590
,
"DayTime"
:
"2018-05-24T23:59:59"
},{
"WeldCount"
:
232
,
"WeldPointCount"
:
788
,
"DayTime"
:
"2018-05-23T23:59:59"
},{
"WeldCount"
:
164
,
"WeldPointCount"
:
629
,
"DayTime"
:
"2018-05-22T23:59:59"
},{
"WeldCount"
:
184
,
"WeldPointCount"
:
701
,
"DayTime"
:
"2018-05-21T23:59:59"
},{
"WeldCount"
:
172
,
"WeldPointCount"
:
519
,
"DayTime"
:
"2018-05-20T23:59:59"
},{
"WeldCount"
:
206
,
"WeldPointCount"
:
572
,
"DayTime"
:
"2018-05-19T23:59:59"
},{
"WeldCount"
:
135
,
"WeldPointCount"
:
787
,
"DayTime"
:
"2018-05-18T23:59:59"
},{
"WeldCount"
:
189
,
"WeldPointCount"
:
593
,
"DayTime"
:
"2018-05-17T23:59:59"
},{
"WeldCount"
:
121
,
"WeldPointCount"
:
785
,
"DayTime"
:
"2018-05-16T23:59:59"
},{
"WeldCount"
:
236
,
"WeldPointCount"
:
573
,
"DayTime"
:
"2018-05-15T23:59:59"
},{
"WeldCount"
:
142
,
"WeldPointCount"
:
632
,
"DayTime"
:
"2018-05-14T23:59:59"
},{
"WeldCount"
:
228
,
"WeldPointCount"
:
559
,
"DayTime"
:
"2018-05-13T23:59:59"
},{
"WeldCount"
:
148
,
"WeldPointCount"
:
517
,
"DayTime"
:
"2018-05-12T23:59:59"
},{
"WeldCount"
:
196
,
"WeldPointCount"
:
781
,
"DayTime"
:
"2018-05-11T23:59:59"
},{
"WeldCount"
:
112
,
"WeldPointCount"
:
715
,
"DayTime"
:
"2018-05-10T23:59:59"
},{
"WeldCount"
:
142
,
"WeldPointCount"
:
694
,
"DayTime"
:
"2018-05-09T23:59:59"
},{
"WeldCount"
:
170
,
"WeldPointCount"
:
594
,
"DayTime"
:
"2018-05-08T23:59:59"
},{
"WeldCount"
:
191
,
"WeldPointCount"
:
693
,
"DayTime"
:
"2018-05-07T23:59:59"
},{
"WeldCount"
:
145
,
"WeldPointCount"
:
559
,
"DayTime"
:
"2018-05-06T23:59:59"
},{
"WeldCount"
:
154
,
"WeldPointCount"
:
680
,
"DayTime"
:
"2018-05-05T23:59:59"
},{
"WeldCount"
:
218
,
"WeldPointCount"
:
611
,
"DayTime"
:
"2018-05-04T23:59:59"
},{
"WeldCount"
:
219
,
"WeldPointCount"
:
767
,
"DayTime"
:
"2018-05-03T23:59:59"
},{
"WeldCount"
:
208
,
"WeldPointCount"
:
527
,
"DayTime"
:
"2018-05-02T23:59:59"
},{
"WeldCount"
:
241
,
"WeldPointCount"
:
670
,
"DayTime"
:
"2018-05-01T23:59:59"
},{
"WeldCount"
:
165
,
"WeldPointCount"
:
600
,
"DayTime"
:
"2018-04-30T23:59:59"
},{
"WeldCount"
:
164
,
"WeldPointCount"
:
659
,
"DayTime"
:
"2018-04-29T23:59:59"
},{
"WeldCount"
:
170
,
"WeldPointCount"
:
606
,
"DayTime"
:
"2018-04-28T23:59:59"
},{
"WeldCount"
:
248
,
"WeldPointCount"
:
517
,
"DayTime"
:
"2018-04-27T23:59:59"
},{
"WeldCount"
:
216
,
"WeldPointCount"
:
728
,
"DayTime"
:
"2018-04-26T23:59:59"
},{
"WeldCount"
:
239
,
"WeldPointCount"
:
540
,
"DayTime"
:
"2018-04-25T23:59:59"
},{
"WeldCount"
:
172
,
"WeldPointCount"
:
797
,
"DayTime"
:
"2018-04-24T23:59:59"
},{
"WeldCount"
:
192
,
"WeldPointCount"
:
727
,
"DayTime"
:
"2018-04-23T23:59:59"
},{
"WeldCount"
:
182
,
"WeldPointCount"
:
602
,
"DayTime"
:
"2018-04-22T23:59:59"
},{
"WeldCount"
:
135
,
"WeldPointCount"
:
651
,
"DayTime"
:
"2018-04-21T23:59:59"
},{
"WeldCount"
:
227
,
"WeldPointCount"
:
782
,
"DayTime"
:
"2018-04-20T23:59:59"
},{
"WeldCount"
:
225
,
"WeldPointCount"
:
662
,
"DayTime"
:
"2018-04-19T23:59:59"
},{
"WeldCount"
:
169
,
"WeldPointCount"
:
624
,
"DayTime"
:
"2018-04-18T23:59:59"
},{
"WeldCount"
:
249
,
"WeldPointCount"
:
706
,
"DayTime"
:
"2018-04-17T23:59:59"
},{
"WeldCount"
:
142
,
"WeldPointCount"
:
714
,
"DayTime"
:
"2018-04-16T23:59:59"
},{
"WeldCount"
:
195
,
"WeldPointCount"
:
508
,
"DayTime"
:
"2018-04-15T23:59:59"
},{
"WeldCount"
:
220
,
"WeldPointCount"
:
781
,
"DayTime"
:
"2018-04-14T23:59:59"
},{
"WeldCount"
:
202
,
"WeldPointCount"
:
675
,
"DayTime"
:
"2018-04-13T23:59:59"
},{
"WeldCount"
:
216
,
"WeldPointCount"
:
687
,
"DayTime"
:
"2018-04-12T23:59:59"
},{
"WeldCount"
:
201
,
"WeldPointCount"
:
608
,
"DayTime"
:
"2018-04-11T23:59:59"
},{
"WeldCount"
:
238
,
"WeldPointCount"
:
798
,
"DayTime"
:
"2018-04-10T23:59:59"
},{
"WeldCount"
:
162
,
"WeldPointCount"
:
716
,
"DayTime"
:
"2018-04-09T23:59:59"
}],
"OKCount"
:
0
,
"NGCount"
:
0
,
"StartTime"
:
"2018-07-17T17:04:19.0187074+08:00"
,
"TodayOKCount"
:
0
,
"TodayNGCount"
:
0
,
"TodayTime"
:
"2018-07-17T17:04:19.0197072+08:00"
,
"WeldStartTime"
:
"2018-07-17T17:04:19.0207121+08:00"
,
"WeldPointCount"
:
0
,
"AlarmCount"
:
600000
}
DeviceLibrary/RobotConfig/solderingConfig/SolderingRobotConfig.csv
查看文件 @
447e221
类型,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义,SlaveID
类型,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义,SlaveID
DI,急停,SuddenStop_Single,200,192.168.
20
0.11,0,急停,X01,DI-01,0
DI,急停,SuddenStop_Single,200,192.168.
1
0.11,0,急停,X01,DI-01,0
DI,气压检测,AirCheck_Single,201,192.168.
20
0.11,0,气压检测,X02,DI-02,0
DI,气压检测,AirCheck_Single,201,192.168.
1
0.11,0,气压检测,X02,DI-02,0
DI,自动夹具夹紧端,Fixture_Clamp,202,192.168.
20
0.11,0,自动夹具夹紧端,X03,DI-03,0
DI,自动夹具夹紧端,Fixture_Clamp,202,192.168.
1
0.11,0,自动夹具夹紧端,X03,DI-03,0
DI,自动夹具放松端,Fixture_Relax,203,192.168.
20
0.11,0,自动夹具放松端,X04,DI-04,0
DI,自动夹具放松端,Fixture_Relax,203,192.168.
1
0.11,0,自动夹具放松端,X04,DI-04,0
DI,送丝气缸工作端,SendWire_Work,204,192.168.
20
0.11,0,送丝气缸工作端,X05,DI-05,0
DI,送丝气缸工作端,SendWire_Work,204,192.168.
1
0.11,0,送丝气缸工作端,X05,DI-05,0
DI,送丝气缸清洗端,SendWire_Clear,205,192.168.
20
0.11,0,送丝气缸清洗端,X06,DI-06,0
DI,送丝气缸清洗端,SendWire_Clear,205,192.168.
1
0.11,0,送丝气缸清洗端,X06,DI-06,0
DI,烙铁气缸上升端,Soldering_Up,206,192.168.
20
0.11,0,烙铁气缸上升端,X07,DI-07,0
DI,烙铁气缸上升端,Soldering_Up,206,192.168.
1
0.11,0,烙铁气缸上升端,X07,DI-07,0
DI,烙铁气缸下降端,Soldering_Down,207,192.168.
20
0.11,0,烙铁气缸下降端,X08,DI-08,0
DI,烙铁气缸下降端,Soldering_Down,207,192.168.
1
0.11,0,烙铁气缸下降端,X08,DI-08,0
,,,208,192.168.
20
0.11,0,,X09,DI-09,0
,,,208,192.168.
1
0.11,0,,X09,DI-09,0
,,,209,192.168.
20
0.11,0,,X10,DI-10,0
,,,209,192.168.
1
0.11,0,,X10,DI-10,0
,,,210,192.168.
20
0.11,0,,X11,DI-11,0
,,,210,192.168.
1
0.11,0,,X11,DI-11,0
,,,211,192.168.
20
0.11,0,,X12,DI-12,0
,,,211,192.168.
1
0.11,0,,X12,DI-12,0
,,,212,192.168.
20
0.11,0,,X13,DI-13,0
,,,212,192.168.
1
0.11,0,,X13,DI-13,0
,,,213,192.168.
20
0.11,0,,X14,DI-14,0
,,,213,192.168.
1
0.11,0,,X14,DI-14,0
,,,214,192.168.
20
0.11,0,,X15,DI-15,0
,,,214,192.168.
1
0.11,0,,X15,DI-15,0
,,,215,192.168.
20
0.11,0,,X16,DI-16,0
,,,215,192.168.
1
0.11,0,,X16,DI-16,0
DO,自动夹具夹紧SOL,Fixture_Clamp,100,192.168.
20
0.11,0,自动夹具夹紧SOL,Y01,DO-01,0
DO,自动夹具夹紧SOL,Fixture_Clamp,100,192.168.
1
0.11,0,自动夹具夹紧SOL,Y01,DO-01,0
DO,自动夹具放松SOL,Fixture_Relax,101,192.168.
20
0.11,0,自动夹具放松SOL,Y02,DO-02,0
DO,自动夹具放松SOL,Fixture_Relax,101,192.168.
1
0.11,0,自动夹具放松SOL,Y02,DO-02,0
DO,送丝气缸工作SOL,SendWire_Work,102,192.168.
20
0.11,0,送丝气缸工作SOL,Y03,DO-03,0
DO,送丝气缸工作SOL,SendWire_Work,102,192.168.
1
0.11,0,送丝气缸工作SOL,Y03,DO-03,0
DO,送丝气缸清洗SOL,SendWire_Clear,103,192.168.
20
0.11,0,送丝气缸清洗SOL,Y04,DO-04,0
DO,送丝气缸清洗SOL,SendWire_Clear,103,192.168.
1
0.11,0,送丝气缸清洗SOL,Y04,DO-04,0
DO,烙铁气缸上升SOL,Soldering_Up,104,192.168.
20
0.11,0,烙铁气缸上升SOL,Y05,DO-05,0
DO,烙铁气缸上升SOL,Soldering_Up,104,192.168.
1
0.11,0,烙铁气缸上升SOL,Y05,DO-05,0
DO,烙铁气缸下降SOL,Soldering_Down,105,192.168.
20
0.11,0,烙铁气缸下降SOL,Y06,DO-06,0
DO,烙铁气缸下降SOL,Soldering_Down,105,192.168.
1
0.11,0,烙铁气缸下降SOL,Y06,DO-06,0
DO,送丝电机启动,SendWireStart,106,192.168.
20
0.11,0,送丝电机启动,Y07,DO-07,0
DO,送丝电机启动,SendWireStart,106,192.168.
1
0.11,0,送丝电机启动,Y07,DO-07,0
,,,107,192.168.
20
0.11,0,,Y08,DO-08,0
,,,107,192.168.
1
0.11,0,,Y08,DO-08,0
,,,108,192.168.
20
0.11,0,,Y09,DO-09,0
,,,108,192.168.
1
0.11,0,,Y09,DO-09,0
,,,109,192.168.
20
0.11,0,,Y10,DO-10,0
,,,109,192.168.
1
0.11,0,,Y10,DO-10,0
,,,110,192.168.
20
0.11,0,,Y11,DO-11,0
,,,110,192.168.
1
0.11,0,,Y11,DO-11,0
,,,111,192.168.
20
0.11,0,,Y12,DO-12,0
,,,111,192.168.
1
0.11,0,,Y12,DO-12,0
,,,112,192.168.
20
0.11,0,,Y13,DO-13,0
,,,112,192.168.
1
0.11,0,,Y13,DO-13,0
,自动指示灯(绿色),AutoRunSingle,113,192.168.
20
0.11,0,自动指示灯(绿色),Y14,DO-14,0
,自动指示灯(绿色),AutoRunSingle,113,192.168.
1
0.11,0,自动指示灯(绿色),Y14,DO-14,0
,待机指示灯(黄色),WaitSingle,114,192.168.
20
0.11,0,待机指示灯(黄色),Y15,DO-15,0
,待机指示灯(黄色),WaitSingle,114,192.168.
1
0.11,0,待机指示灯(黄色),Y15,DO-15,0
,故障指示灯(红色),AlarmSingle,115,192.168.
20
0.11,0,故障指示灯(红色),Y16,DO-16,0
,故障指示灯(红色),AlarmSingle,115,192.168.
1
0.11,0,故障指示灯(红色),Y16,DO-16,0
,,,,,,,,,
,,,,,,,,,
PRO,尤傲机器人IP,UR_IP,192.168.
20
0.13,,,,,,
PRO,尤傲机器人IP,UR_IP,192.168.
1
0.13,,,,,,
PRO,焊接多少块板子后,清洗烙铁,ClearCount,1,,,,,,
PRO,焊接多少块板子后,清洗烙铁,ClearCount,1,,,,,,
PRO,清洗IO的毫秒数,ClearMSenconds,3000,,,,,,
PRO,清洗IO的毫秒数,ClearMSenconds,3000,,,,,,
PRO,JBC烙铁端口号,JBC_Soldering_Port,COM4,,,,,,
PRO,JBC烙铁端口号,JBC_Soldering_Port,COM4,,,,,,
...
...
DeviceLibrary/bean/BoardManager.cs
查看文件 @
447e221
...
@@ -256,30 +256,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -256,30 +256,7 @@ namespace URSoldering.DeviceLibrary
}
return
null
;
}
return
null
;
}
}
public
static
void
UpdateTime
(
BoardInfo
board
,
DateTime
startTime
,
DateTime
endTime
)
{
LogUtil
.
BoardSolderingLog
(
board
.
boardName
,
startTime
,
endTime
);
int
index
=
0
;
foreach
(
BoardInfo
bo
in
boardList
)
{
if
(
bo
.
boardId
.
Equals
(
board
.
boardId
))
{
boardList
[
index
].
solderingCount
++;
double
addtime
=
(
endTime
-
startTime
).
TotalSeconds
;
boardList
[
index
].
solderingTime
+=
addtime
;
boardList
[
index
].
solderTime
+=
addtime
;
boardList
[
index
].
solderCount
++;
double
value
=
boardList
[
index
].
solderingTime
/
boardList
[
index
].
solderingCount
;
value
=
Math
.
Round
(
value
,
1
,
MidpointRounding
.
AwayFromZero
);
boardList
[
index
].
planNeedTime
=
value
;
LogUtil
.
info
(
"电路板:"
+
board
.
boardName
+
",总时间"
+
boardList
[
index
].
solderingTime
+
",总次数"
+
boardList
[
index
].
solderingCount
+
",本次焊接时间"
+
addtime
+
",平均焊接时间:"
+
boardList
[
index
].
planNeedTime
);
break
;
}
index
++;
}
SaveListToFile
(
boardList
);
}
public
static
Dictionary
<
int
,
BoardInfo
>
GetBoardMapByPartNum
(
string
partNum
)
public
static
Dictionary
<
int
,
BoardInfo
>
GetBoardMapByPartNum
(
string
partNum
)
{
{
...
...
DeviceLibrary/bean/RobotBean.cs
查看文件 @
447e221
...
@@ -126,12 +126,13 @@ namespace URSoldering.DeviceLibrary
...
@@ -126,12 +126,13 @@ 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
ShuddenOK
()
public
static
bool
ShuddenOK
()
{
{
return
true
;
if
(!
baseConfig
.
RobotDIList
.
ContainsKey
(
IO_Type
.
SuddenStop_Single
))
if
(!
baseConfig
.
RobotDIList
.
ContainsKey
(
IO_Type
.
SuddenStop_Single
))
{
{
return
false
;
return
false
;
...
...
DeviceLibrary/deviceLibrary/urRobot/URRobot
Manager
.cs
→
DeviceLibrary/deviceLibrary/urRobot/URRobot
Client
.cs
查看文件 @
447e221
...
@@ -7,20 +7,17 @@ using URSoldering.Common;
...
@@ -7,20 +7,17 @@ using URSoldering.Common;
namespace
URSoldering.DeviceLibrary
namespace
URSoldering.DeviceLibrary
{
{
public
class
URRobot
Manager
public
class
URRobot
Client
{
{
private
static
URTcpClient
listenClient
=
null
;
private
static
URTcpClient
listenClient
=
null
;
private
static
int
Port
=
30003
;
public
static
double
Robot_LIM_Z
{
get
;
set
;
}
public
static
string
LastMoveCMD
=
""
;
public
static
bool
IsRun
{
get
;
set
;
}
public
static
void
StartListen
(
string
ip
)
public
static
void
StartListen
()
{
{
listenClient
=
new
URTcpClient
();
listenClient
=
new
URTcpClient
();
listenClient
.
DefaultDataLength
=
10
24
;
listenClient
.
DefaultDataLength
=
10
78
;
listenClient
.
ReviceSleepMS
=
5
;
listenClient
.
ReviceSleepMS
=
5
;
listenClient
.
connect
(
"192.168.10.10"
,
30003
,
HandleMessage
);
listenClient
.
connect
(
ip
,
Port
,
HandleMessage
);
}
}
public
static
void
StopListen
()
public
static
void
StopListen
()
{
{
...
@@ -29,6 +26,17 @@ namespace URSoldering.DeviceLibrary
...
@@ -29,6 +26,17 @@ namespace URSoldering.DeviceLibrary
listenClient
.
close
();
listenClient
.
close
();
}
}
}
}
public
static
bool
IsConnected
()
{
if
(
listenClient
!=
null
)
{
return
listenClient
.
IsConnected
();
}
return
false
;
}
public
static
string
LogName
{
get
{
return
"【UR端口:"
+
Port
+
"】"
;
}
}
private
static
double
BitToDouble
(
byte
[]
data
)
private
static
double
BitToDouble
(
byte
[]
data
)
{
{
double
f
=
BitConverter
.
ToDouble
(
data
,
0
);
double
f
=
BitConverter
.
ToDouble
(
data
,
0
);
...
@@ -58,8 +66,11 @@ namespace URSoldering.DeviceLibrary
...
@@ -58,8 +66,11 @@ namespace URSoldering.DeviceLibrary
private
static
void
HandleMessage
(
byte
[]
reviceData
)
private
static
void
HandleMessage
(
byte
[]
reviceData
)
{
{
if
(
LastMoveCMD
.
Equals
(
""
).
Equals
(
false
))
//StopListen();
{
listenClient
.
sendLine
(
LastMoveCMD
);
}
StopListen
();
try
try
{
{
//string reviceMsg = ByteToStr(reviceData);
//string reviceMsg = ByteToStr(reviceData);
...
@@ -75,8 +86,12 @@ namespace URSoldering.DeviceLibrary
...
@@ -75,8 +86,12 @@ namespace URSoldering.DeviceLibrary
int
maxdouble
=
(
messageSize
-
4
)
/
8
;
int
maxdouble
=
(
messageSize
-
4
)
/
8
;
List
<
double
>
doubleList
=
new
List
<
double
>();
List
<
double
>
doubleList
=
new
List
<
double
>();
doubleList
.
Add
(
messageSize
);
doubleList
.
Add
(
messageSize
);
if
(
maxdouble
>
61
)
{
for
(
int
i
=
0
;
i
<
maxdouble
;
i
++)
for
(
int
i
=
0
;
i
<
maxdouble
;
i
++)
{
{
if
(
i
>=
55
&&
i
<=
61
)
{
if
(
reviceData
.
Length
>=
(
12
+
i
*
8
))
if
(
reviceData
.
Length
>=
(
12
+
i
*
8
))
{
{
byte
[]
data
=
reviceData
.
Skip
(
4
+
i
*
8
).
Take
(
8
).
ToArray
().
Reverse
<
byte
>().
ToArray
();
byte
[]
data
=
reviceData
.
Skip
(
4
+
i
*
8
).
Take
(
8
).
ToArray
().
Reverse
<
byte
>().
ToArray
();
...
@@ -89,7 +104,12 @@ namespace URSoldering.DeviceLibrary
...
@@ -89,7 +104,12 @@ namespace URSoldering.DeviceLibrary
break
;
break
;
}
}
}
}
if
(
doubleList
.
Count
>
100
)
else
{
doubleList
.
Add
(
0
);
}
}
if
(
doubleList
.
Count
>
61
)
{
{
string
spilt
=
","
;
string
spilt
=
","
;
double
x
=
doubleList
[
56
]
*
1000
;
double
x
=
doubleList
[
56
]
*
1000
;
...
@@ -98,18 +118,23 @@ namespace URSoldering.DeviceLibrary
...
@@ -98,18 +118,23 @@ namespace URSoldering.DeviceLibrary
double
rx
=
doubleList
[
59
]
*
1
;
double
rx
=
doubleList
[
59
]
*
1
;
double
ry
=
doubleList
[
60
]
*
1
;
double
ry
=
doubleList
[
60
]
*
1
;
double
rz
=
doubleList
[
61
]
*
1
;
double
rz
=
doubleList
[
61
]
*
1
;
URPointValue
newp
=
new
URPointValue
(
x
,
y
,
z
,
rx
,
ry
,
rz
);
LogUtil
.
info
(
"数据长度:"
+
messageSize
+
",data长度:"
+
reviceData
.
Length
+
"。实际坐标:"
+
x
+
spilt
+
y
+
spilt
+
z
+
spilt
+
rx
+
spilt
+
ry
+
spilt
+
rz
+
spilt
);
URRobotControl
.
LastPoint
=
newp
;
string
reviceMsg
=
ByteToStr
(
reviceData
);
//LogUtil.info("Read data:【" + reviceMsg + "】 ");
LogUtil
.
URLInfo
(
LogName
+
"length["
+
messageSize
+
"],data长["
+
reviceData
.
Length
+
"]坐标"
+
newp
.
ToShowStr
());
}
}
}
else
else
{
{
string
reviceMsg
=
ByteToStr
(
reviceData
);
string
reviceMsg
=
ByteToStr
(
reviceData
);
LogUtil
.
info
(
"Read data:【"
+
reviceMsg
+
"】 "
);
LogUtil
.
URLError
(
LogName
+
"Read data:【"
+
reviceMsg
+
"】 "
);
LogUtil
.
info
(
"无法获取坐标,数据长度不正确"
);
LogUtil
.
URLError
(
LogName
+
"无法获取坐标,数据长度不正确"
);
}
}
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"出错:"
+
ex
.
ToString
());
LogUtil
.
URLError
(
LogName
+
"HandleMessage出错:"
+
ex
.
ToString
());
StopListen
();
}
}
}
}
...
...
DeviceLibrary/deviceLibrary/urRobot/URRobotControl.cs
查看文件 @
447e221
...
@@ -7,17 +7,19 @@ using System.Reflection;
...
@@ -7,17 +7,19 @@ using System.Reflection;
using
System.Text
;
using
System.Text
;
using
System.Threading
;
using
System.Threading
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
URToolKit
;
namespace
URSoldering.DeviceLibrary
namespace
URSoldering.DeviceLibrary
{
{
public
class
URRobotControl
public
class
URRobotControl
{
{
private
static
string
spiltStr
=
","
;
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
readonly
ILog
LOGGER
=
LogManager
.
GetLogger
(
MethodBase
.
GetCurrentMethod
().
DeclaringType
);
public
static
TcpClient
controlTcp
=
new
TcpClient
();
public
static
TcpClient
controlTcp
=
new
TcpClient
();
public
static
URPointValue
LastPoint
=
new
URPointValue
();
public
static
string
RobotIp
=
""
;
public
static
string
RobotIp
=
"192.168.1.120"
;
public
static
int
ControlPort
=
29999
;
public
static
int
ControlPort
=
29999
;
public
static
double
Robot_LIM_Z
=
(
double
)
ConfigAppSettings
.
GetNumValue
(
Setting_Init
.
Soldering_LIM_Z
);
public
static
double
Robot_LIM_Z
=
(
double
)
ConfigAppSettings
.
GetNumValue
(
Setting_Init
.
Soldering_LIM_Z
);
...
@@ -26,9 +28,12 @@ namespace URSoldering.DeviceLibrary
...
@@ -26,9 +28,12 @@ namespace URSoldering.DeviceLibrary
private
static
string
CMD_powerOff
=
"power off"
;
private
static
string
CMD_powerOff
=
"power off"
;
private
static
string
CMD_robotMode
=
"robotmode"
;
private
static
string
CMD_robotMode
=
"robotmode"
;
private
static
string
CMD_brakeRelease
=
"brake release"
;
private
static
string
CMD_brakeRelease
=
"brake release"
;
private
static
string
CMD_Safetymode
=
"Safetymode"
;
private
static
string
REV_PowerOn
=
"powering on"
;
private
static
string
REV_BrakeRelease
=
"brake releasing"
;
private
static
string
REV_RobotMode
=
"robotmode"
;
private
static
string
REV_SafetyMode
=
"safetymode"
;
/// <summary>
/// <summary>
/// 记录最后一次收到OK的时间
/// 记录最后一次收到OK的时间
/// </summary>
/// </summary>
...
@@ -52,12 +57,21 @@ namespace URSoldering.DeviceLibrary
...
@@ -52,12 +57,21 @@ namespace URSoldering.DeviceLibrary
private
static
int
StartTimeOutSeconds
=
10000
;
private
static
int
StartTimeOutSeconds
=
10000
;
public
static
string
WarnMsg
=
""
;
public
static
string
WarnMsg
=
""
;
private
static
System
.
Timers
.
Timer
reconnectTimer
=
n
ew
System
.
Timers
.
Timer
()
;
private
static
System
.
Timers
.
Timer
reconnectTimer
=
n
ull
;
public
static
void
InitConfig
(
string
ip
)
public
static
void
InitConfig
(
string
ip
)
{
{
RobotIp
=
ip
;
RobotIp
=
ip
;
}
}
public
static
string
LogName
{
get
{
return
"【"
+
RobotIp
+
" ,"
+
ControlPort
+
"】"
;
}
}
public
static
void
Test
()
{
URWithOutTP
a
=
new
URWithOutTP
();
//创建对象
a
.
restartURControl
(
RobotIp
);
//重置UR控制器,然后可以利用dashboard,poweron,brake release
}
/// <summary>
/// <summary>
/// 开始启动连接机器人
/// 开始启动连接机器人
/// </summary>
/// </summary>
...
@@ -68,7 +82,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -68,7 +82,7 @@ namespace URSoldering.DeviceLibrary
{
{
reconnectTimer
=
new
System
.
Timers
.
Timer
();
reconnectTimer
=
new
System
.
Timers
.
Timer
();
reconnectTimer
.
AutoReset
=
true
;
reconnectTimer
.
AutoReset
=
true
;
reconnectTimer
.
Interval
=
30
000
;
reconnectTimer
.
Interval
=
1
000
;
reconnectTimer
.
Elapsed
+=
reconnectTimer_Elapsed
;
reconnectTimer
.
Elapsed
+=
reconnectTimer_Elapsed
;
reconnectTimer
.
Enabled
=
false
;
reconnectTimer
.
Enabled
=
false
;
}
}
...
@@ -80,12 +94,10 @@ namespace URSoldering.DeviceLibrary
...
@@ -80,12 +94,10 @@ namespace URSoldering.DeviceLibrary
return
StartConnect
();
return
StartConnect
();
}
}
private
static
bool
StartConnect
()
private
static
bool
StartConnect
()
{
{
try
try
{
{
WarnMsg
=
""
;
if
(
RobotIp
.
Equals
(
""
))
if
(
RobotIp
.
Equals
(
""
))
{
{
LogUtil
.
info
(
"未初始化UR机械臂的IP地址"
);
LogUtil
.
info
(
"未初始化UR机械臂的IP地址"
);
...
@@ -96,15 +108,16 @@ namespace URSoldering.DeviceLibrary
...
@@ -96,15 +108,16 @@ namespace URSoldering.DeviceLibrary
TimeSpan
span
=
DateTime
.
Now
-
PreStartTime
;
TimeSpan
span
=
DateTime
.
Now
-
PreStartTime
;
if
(
span
.
TotalMilliseconds
<
StartTimeOutSeconds
)
if
(
span
.
TotalMilliseconds
<
StartTimeOutSeconds
)
{
{
LogUtil
.
info
(
"
UR机械臂
正在连接中,不需要重连"
);
LogUtil
.
info
(
"
"
+
LogName
+
"
正在连接中,不需要重连"
);
return
true
;
return
true
;
}
}
else
else
{
{
LogUtil
.
info
(
"
UR机械臂
距离上次启动已经超过10秒,重新开始连接"
);
LogUtil
.
info
(
"
"
+
LogName
+
"
距离上次启动已经超过10秒,重新开始连接"
);
StopRobot
();
StopRobot
();
}
}
}
}
WarnMsg
=
""
;
PreStartTime
=
DateTime
.
Now
;
PreStartTime
=
DateTime
.
Now
;
startCount
++;
startCount
++;
...
@@ -113,27 +126,42 @@ namespace URSoldering.DeviceLibrary
...
@@ -113,27 +126,42 @@ namespace URSoldering.DeviceLibrary
bool
result
=
controlTcp
.
connect
(
RobotIp
,
ControlPort
,
new
TcpClient
.
HandleMessage
(
OnControlRevice
));
bool
result
=
controlTcp
.
connect
(
RobotIp
,
ControlPort
,
new
TcpClient
.
HandleMessage
(
OnControlRevice
));
if
(!
result
)
if
(!
result
)
{
{
LogUtil
.
error
(
LOGGER
,
"连接
【"
+
RobotIp
+
"】【"
+
ControlPort
+
"】
失败"
);
LogUtil
.
error
(
LOGGER
,
"连接
"
+
LogName
+
"
失败"
);
return
false
;
return
false
;
}
}
else
else
{
{
LogUtil
.
info
(
LOGGER
,
"连接
【"
+
RobotIp
+
"】【"
+
ControlPort
+
"】
成功"
);
LogUtil
.
info
(
LOGGER
,
"连接
"
+
LogName
+
"
成功"
);
}
}
//发送
//发送
controlTcp
.
sendLine
(
CMD_robotMode
);
controlTcp
.
sendLine
(
CMD_Safetymode
);
//controlTcp.sendLine(CMD_robotMode);
preCheckTime
=
DateTime
.
Now
;
return
true
;
return
true
;
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"starttcp error:"
+
ex
.
ToString
());
LogUtil
.
error
(
"
"
+
LogName
+
"
starttcp error:"
+
ex
.
ToString
());
return
false
;
return
false
;
}
}
}
}
private
static
DateTime
preCheckTime
=
DateTime
.
Now
;
private
static
bool
IsInPorcess
=
false
;
private
static
void
reconnectTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
private
static
void
reconnectTimer_Elapsed
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
{
if
(
IsInPorcess
)
{
return
;
}
IsInPorcess
=
true
;
try
{
if
(
IsStartConnect
)
if
(
IsStartConnect
)
{
{
TimeSpan
span
=
DateTime
.
Now
-
preCheckTime
;
if
(
span
.
TotalSeconds
>
30
)
{
preCheckTime
=
DateTime
.
Now
;
//判断500在连接上,则获取状态
//判断500在连接上,则获取状态
if
(
controlTcp
.
IsConnected
())
if
(
controlTcp
.
IsConnected
())
{
{
...
@@ -141,16 +169,32 @@ namespace URSoldering.DeviceLibrary
...
@@ -141,16 +169,32 @@ namespace URSoldering.DeviceLibrary
}
}
else
else
{
{
LogUtil
.
error
(
"reconnectTimer_Elapsed检测到UR
机械臂已经断开,需要重连!"
);
LogUtil
.
error
(
""
+
LogName
+
"reconnectTimer_Elapsed检测到
机械臂已经断开,需要重连!"
);
stopTcp
();
stopTcp
();
StartConnect
();
StartConnect
();
}
}
}
}
}
}
if
(
IsRun
)
{
//如果监听的断开,直接重新连接
if
(!
URRobotClient
.
IsConnected
())
{
URRobotClient
.
StartListen
(
RobotIp
);
}
}
}
catch
(
Exception
ex
)
{
LOGGER
.
Error
(
""
+
LogName
+
" 定时器出错:"
+
ex
.
ToString
());
}
IsInPorcess
=
false
;
}
public
static
bool
SendCMD
(
string
cmd
,
int
msendons
)
public
static
bool
SendCMD
(
string
cmd
,
int
msendons
)
{
{
try
try
{
{
LogUtil
.
URSInfo
(
LogName
+
"将于【"
+
msendons
+
"】后发送数据:"
+
cmd
);
if
(
msendons
>
0
)
if
(
msendons
>
0
)
{
{
Task
.
Factory
.
StartNew
(
delegate
()
Task
.
Factory
.
StartNew
(
delegate
()
...
@@ -166,7 +210,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -166,7 +210,7 @@ namespace URSoldering.DeviceLibrary
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
LOGGER
,
"SendCMD出错啦cmd["
+
cmd
+
"]msendons["
+
msendons
+
"]"
+
ex
.
ToString
());
LogUtil
.
URSError
(
""
+
LogName
+
"SendCMD出错啦cmd["
+
cmd
+
"]msendons["
+
msendons
+
"]"
+
ex
.
ToString
());
}
}
return
true
;
return
true
;
}
}
...
@@ -184,45 +228,94 @@ namespace URSoldering.DeviceLibrary
...
@@ -184,45 +228,94 @@ namespace URSoldering.DeviceLibrary
}
}
try
try
{
{
LogUtil
.
info
(
LOGGER
,
"【"
+
RobotIp
+
"】【"
+
ControlPort
+
"】收到数据:"
+
message
);
//Connected: Universal Robots Dashboard Server
if
(
message
.
ToLower
().
IndexOf
(
"powering on"
)
>=
0
)
message
=
message
.
Replace
(
"\n"
,
""
);
LogUtil
.
URSInfo
(
LogName
+
"收到数据:"
+
message
);
if
(
message
.
ToLower
().
IndexOf
(
REV_PowerOn
)
>=
0
)
{
{
SendCMD
(
CMD_brakeRelease
,
1000
);
SendCMD
(
CMD_brakeRelease
,
1000
);
}
}
else
if
(
message
.
ToLower
().
IndexOf
(
"brake releasing"
)
>=
0
)
else
if
(
message
.
ToLower
().
IndexOf
(
REV_BrakeRelease
)
>=
0
)
{
{
SendCMD
(
CMD_robotMode
,
2000
);
SendCMD
(
CMD_robotMode
,
2000
);
}
}
else
if
(
message
.
ToLower
().
IndexOf
(
"robotmode"
)
>=
0
)
else
if
(
message
.
ToLower
().
IndexOf
(
REV_RobotMode
)
>=
0
)
{
SafetymodeProcess
(
message
);
}
else
if
(
message
.
ToLower
().
IndexOf
(
REV_SafetyMode
)
>=
0
)
{
{
StatusProcess
(
message
);
StatusProcess
(
message
);
}
}
else
{
//急停模式
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
LOGGER
,
"
出错啦"
+
ex
.
ToString
());
LogUtil
.
URSError
(
LogName
+
" OnControlRevice
出错啦"
+
ex
.
ToString
());
}
}
}
}
private
static
void
SafetymodeProcess
(
string
message
)
private
static
void
StatusProcess
(
string
message
)
{
{
string
msg
=
message
.
ToLower
().
Replace
(
"robotmode
: "
,
""
).
ToUpper
().
Trim
();
string
msg
=
message
.
ToLower
().
Replace
(
REV_RobotMode
+
"
: "
,
""
).
ToUpper
().
Trim
();
//LogUtil.info("收到机器人状态:"+message);
if
(
msg
.
Equals
(
URStatus
.
POWER_ON
))
if
(
msg
.
Equals
(
URStatus
.
POWER_ON
))
{
{
SendCMD
(
CMD_brakeRelease
,
1000
);
SendCMD
(
CMD_brakeRelease
,
1000
);
}
}
else
if
(
msg
.
Equals
(
URStatus
.
RUNNING
)
||
msg
.
Equals
(
URStatus
.
IDLE
))
else
if
(
msg
.
Equals
(
URStatus
.
RUNNING
)
||
msg
.
Equals
(
URStatus
.
IDLE
))
{
{
LogUtil
.
info
(
"优傲机器人当前状态:"
+
msg
+
",机器人连接成功!"
);
WarnMsg
=
""
;
LogUtil
.
URSInfo
(
LogName
+
" 当前状态:"
+
msg
+
",机器人连接成功!"
);
LogUtil
.
info
(
LogName
+
" 当前状态:"
+
msg
+
",机器人连接成功!"
);
IsRun
=
true
;
IsRun
=
true
;
reconnectTimer
.
Enabled
=
true
;
}
}
else
else
{
{
LogUtil
.
info
(
"优傲机器人当前状态:"
+
msg
+
",发送打开命令"
+
CMD_powerOn
);
if
(!
IsTimeOut
(
message
))
{
LogUtil
.
URSInfo
(
LogName
+
"当前状态:"
+
msg
+
",发送打开命令"
+
CMD_powerOn
);
SendCMD
(
CMD_powerOn
,
1000
);
SendCMD
(
CMD_powerOn
,
1000
);
}
}
}
}
}
private
static
void
StatusProcess
(
string
message
)
{
string
msg
=
message
.
ToLower
().
Replace
(
REV_SafetyMode
+
": "
,
""
).
ToUpper
().
Trim
();
if
(
msg
.
Equals
(
URStatus
.
SFETY_POWER_OFF
)
||
msg
.
Equals
(
URStatus
.
ROBOT_EMERGENCY_STOP
))
{
if
(!
IsTimeOut
(
message
))
{
WarnMsg
=
"机器人急停中["
+
msg
+
"],请先打开急停"
;
SendCMD
(
CMD_Safetymode
,
1000
);
}
else
{
WarnMsg
=
"机器人急停中["
+
msg
+
"],启动超时"
;
IsRun
=
false
;
}
}
else
{
SendCMD
(
CMD_Safetymode
,
500
);
}
}
private
static
bool
IsTimeOut
(
string
status
)
{
TimeSpan
span
=
DateTime
.
Now
-
PreStartTime
;
if
(
span
.
TotalMilliseconds
>
StartTimeOutSeconds
)
{
string
logMsg
=
LogName
+
"【"
+
status
+
"】 已持续"
+
Math
.
Round
(
span
.
TotalMilliseconds
)
+
",启动超时!"
;
LogUtil
.
info
(
logMsg
);
LogUtil
.
URSInfo
(
logMsg
);
return
true
;
}
return
false
;
}
private
static
void
stopTcp
()
private
static
void
stopTcp
()
{
{
...
@@ -235,7 +328,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -235,7 +328,7 @@ namespace URSoldering.DeviceLibrary
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"stopTcp出错啦"
+
ex
.
ToString
());
LogUtil
.
error
(
LogName
+
"stopTcp出错啦"
+
ex
.
ToString
());
}
}
}
}
/// <summary>
/// <summary>
...
@@ -251,7 +344,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -251,7 +344,7 @@ namespace URSoldering.DeviceLibrary
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogUtil
.
error
(
"StopEpson出错啦"
+
ex
.
ToString
());
LogUtil
.
error
(
LogName
+
"StopEpson出错啦"
+
ex
.
ToString
());
}
}
}
}
/// <summary>
/// <summary>
...
@@ -271,8 +364,12 @@ namespace URSoldering.DeviceLibrary
...
@@ -271,8 +364,12 @@ namespace URSoldering.DeviceLibrary
/// 移动到指定的坐标
/// 移动到指定的坐标
/// </summary>
/// </summary>
/// <param name="point"></param>
/// <param name="point"></param>
public
static
void
MoveTo
(
URPointValue
point
)
public
static
bool
MoveTo
(
URPointValue
point
)
{
{
//movej([0, 1.57, -1.57, 3.14, -1.57, 1.57],a = 1.4, v = 1.05, t = 0, r = 0)
string
moveCmd
=
"movej(["
+
point
.
X
+
spiltStr
+
point
.
X
+
spiltStr
+
point
.
X
+
spiltStr
+
point
.
X
+
spiltStr
+
point
.
X
+
spiltStr
+
point
.
X
+
"],a=1.4, v=1.05, t=0, r=0)"
;
URRobotClient
.
LastMoveCMD
=
moveCmd
;
return
true
;
}
}
/// <summary>
/// <summary>
/// 获取机器人最后一次获取的坐标
/// 获取机器人最后一次获取的坐标
...
@@ -280,7 +377,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -280,7 +377,7 @@ namespace URSoldering.DeviceLibrary
/// <returns></returns>
/// <returns></returns>
public
static
URPointValue
GetLastPosition
()
public
static
URPointValue
GetLastPosition
()
{
{
return
new
URPointValue
()
;
return
LastPoint
;
}
}
}
}
public
class
URPointValue
public
class
URPointValue
...
@@ -295,15 +392,15 @@ namespace URSoldering.DeviceLibrary
...
@@ -295,15 +392,15 @@ namespace URSoldering.DeviceLibrary
this
.
RZ
=
0
;
this
.
RZ
=
0
;
this
.
UpdateTime
=
DateTime
.
Now
;
this
.
UpdateTime
=
DateTime
.
Now
;
}
}
public
URPointValue
(
double
x
,
double
y
,
double
z
,
double
rx
,
double
ry
,
double
rz
)
public
URPointValue
(
double
x
,
double
y
,
double
z
,
double
rx
,
double
ry
,
double
rz
)
{
{
// TODO: Complete member initialization
// TODO: Complete member initialization
this
.
X
=
x
;
this
.
X
=
Math
.
Round
(
x
,
2
)
;
this
.
Y
=
y
;
this
.
Y
=
Math
.
Round
(
y
,
2
)
;
this
.
Z
=
z
;
this
.
Z
=
Math
.
Round
(
z
,
2
)
;
this
.
RX
=
rx
;
this
.
RX
=
Math
.
Round
(
rx
,
4
)
;
this
.
RY
=
ry
;
this
.
RY
=
Math
.
Round
(
ry
,
4
)
;
this
.
RZ
=
rz
;
this
.
RZ
=
Math
.
Round
(
rz
,
4
)
;
this
.
UpdateTime
=
DateTime
.
Now
;
this
.
UpdateTime
=
DateTime
.
Now
;
}
}
/// <summary>
/// <summary>
...
@@ -319,7 +416,7 @@ namespace URSoldering.DeviceLibrary
...
@@ -319,7 +416,7 @@ namespace URSoldering.DeviceLibrary
public
string
ToShowStr
()
public
string
ToShowStr
()
{
{
return
"[X: "
+
X
+
",Y: "
+
Y
+
",Z: "
+
Z
+
",RX: "
+
RX
+
",RY:"
+
RY
+
",RZ:"
+
RZ
+
"]"
;
return
"[X: "
+
X
+
",Y: "
+
Y
+
",Z: "
+
Z
+
",RX: "
+
RX
+
",RY:"
+
RY
+
",RZ:"
+
RZ
+
"]"
;
}
}
public
string
ToJosonStr
()
public
string
ToJosonStr
()
...
@@ -344,5 +441,17 @@ namespace URSoldering.DeviceLibrary
...
@@ -344,5 +441,17 @@ namespace URSoldering.DeviceLibrary
public
static
string
IDLE
=
"IDLE"
;
public
static
string
IDLE
=
"IDLE"
;
public
static
string
BACKDRIVE
=
"BACKDRIVE"
;
public
static
string
BACKDRIVE
=
"BACKDRIVE"
;
public
static
string
RUNNING
=
"RUNNING"
;
public
static
string
RUNNING
=
"RUNNING"
;
/// <summary>
/// ROBOT_EMERGENCY_STOP 急停
/// </summary>
public
static
string
ROBOT_EMERGENCY_STOP
=
"ROBOT_EMERGENCY_STOP"
;
/// <summary>
/// FAULT 急停
/// </summary>
public
static
string
FAULT
=
"FAULT"
;
/// <summary>
/// POWER_OFF 外部急停
/// </summary>
public
static
string
SFETY_POWER_OFF
=
"POWER_OFF"
;
}
}
}
}
URSolderingClient/App.config
查看文件 @
447e221
...
@@ -9,28 +9,20 @@
...
@@ -9,28 +9,20 @@
<
add
key
=
"Robot_Type"
value
=
"SolderingRobot"
/>
<
add
key
=
"Robot_Type"
value
=
"SolderingRobot"
/>
<
add
key
=
"Robot_ConfigPath"
value
=
"\RobotConfig\solderingConfig\SolderingRobotConfig.csv"
/>
<
add
key
=
"Robot_ConfigPath"
value
=
"\RobotConfig\solderingConfig\SolderingRobotConfig.csv"
/>
<
add
key
=
"Robot_CID"
value
=
"1"
/>
<
add
key
=
"Robot_CID"
value
=
"1"
/>
<
add
key
=
"ScanCodeConfig"
value
=
"\RobotConfig\AOIConfig\ScanCode.vscf"
/>
<
add
key
=
"HasSoldering"
value
=
"0"
/>
<
add
key
=
"HasSoldering"
value
=
"0"
/>
<!--
AOI
检测文件-->
<!--
AOI
检测文件-->
<
add
key
=
"VideoCameraName"
value
=
"[0] Integrated Camera"
/>
<
add
key
=
"AOIFileConfig"
value
=
"\RobotConfig\AOIConfig\AOIProgram.vscf"
/>
<
add
key
=
"AOIFileConfig"
value
=
"\RobotConfig\AOIConfig\AOIProgram.vscf"
/>
<
add
key
=
"AOICheckPointFile"
value
=
"\RobotConfig\AOIConfig\AOIPointProgram.vscf"
/>
<
add
key
=
"AOICheckPointFile"
value
=
"\RobotConfig\AOIConfig\AOIPointProgram.vscf"
/>
<
add
key
=
"AOIWaitSeconds"
value
=
"4000"
/>
<
add
key
=
"AOIWaitSeconds"
value
=
"4000"
/>
<!--送丝器消除报警需要持续的秒数-->
<!--送丝器消除报警需要持续的秒数-->
<
add
key
=
"SendWireRecoverSeconds"
value
=
"5"
/>
<
add
key
=
"SendWireRecoverSeconds"
value
=
"5"
/>
<!--空闲多久需要休眠,=
0
表示不需要休眠,>
0
表示休眠秒数-->
<!--空闲多久需要休眠,=
0
表示不需要休眠,>
0
表示休眠秒数-->
<
add
key
=
"SleepSeconds"
value
=
"180"
/>
<
add
key
=
"SleepSeconds"
value
=
"180"
/>
<!--摄像机名称列表配置,用
#分割-->
<!--摄像机名称列表配置,用
#分割-->
<
add
key
=
"CameraName"
value
=
"[1] HD USB Camera"
/>
<
add
key
=
"CameraName"
value
=
"SolderingAOI"
/>
<
add
key
=
"CodeCameraName"
value
=
"[1] HD USB Camera"
/>
<
add
key
=
"VideoCameraName"
value
=
"[0] Integrated Webcam"
/>
<!--条码类型列表配置,用
#分割-->
<!--条码类型列表配置,用
#分割-->
<
add
key
=
"CodeType"
value
=
"QR Code"
/>
<
add
key
=
"CodeType"
value
=
"QR Code#Data Matrix ECC 200"
/>
<!--条码参数文件所在路径,文件名与条码类型名一样-->
<
add
key
=
"CodeParamPath"
value
=
"\RobotConfig\solderingConfig\"
/>
<!--摄像机名称列表配置,用
#分割-->
<
add
key
=
"CameraName"
value
=
"192168024#192168025"
/>
<!--条码类型列表配置,用
#分割-->
<
add
key
=
"CodeType"
value
=
"QR Code#Data Matrix ECC 200"
/>
<!--条码参数文件所在路径,文件名与条码类型名一样-->
<!--条码参数文件所在路径,文件名与条码类型名一样-->
<
add
key
=
"CodeParamPath"
value
=
"\RobotConfig\solderingConfig\"
/>
<
add
key
=
"CodeParamPath"
value
=
"\RobotConfig\solderingConfig\"
/>
<!--统计文件路径-->
<!--统计文件路径-->
...
@@ -39,49 +31,34 @@
...
@@ -39,49 +31,34 @@
<
add
key
=
"Board_ConfigPath"
value
=
"\RobotConfig\config\boardData.txt"
/>
<
add
key
=
"Board_ConfigPath"
value
=
"\RobotConfig\config\boardData.txt"
/>
<
add
key
=
"Program_ConfigPath"
value
=
"\RobotConfig\config\sprogram.txt"
/>
<
add
key
=
"Program_ConfigPath"
value
=
"\RobotConfig\config\sprogram.txt"
/>
<
add
key
=
"Default_BoardID"
value
=
"56"
/>
<
add
key
=
"Default_BoardID"
value
=
"56"
/>
<
add
key
=
"Board_Origin_X"
value
=
"-6
4.148
9"
/>
<
add
key
=
"Board_Origin_X"
value
=
"-6
7.2
9"
/>
<
add
key
=
"Board_Origin_Y"
value
=
"
119.404
"
/>
<
add
key
=
"Board_Origin_Y"
value
=
"
-436.62
"
/>
<!--机器人抬起高点设置-->
<!--机器人抬起高点设置-->
<
add
key
=
"Soldering_LIM_Z"
value
=
"0"
/>
<
add
key
=
"Soldering_LIM_Z"
value
=
"500"
/>
<!--机器人待机点位置-->
<
add
key
=
"Soldering_Home_X"
value
=
"-57.0885"
/>
<
add
key
=
"Soldering_Home_Y"
value
=
"218.558"
/>
<
add
key
=
"Soldering_Home_Hand"
value
=
"2"
/>
<
add
key
=
"Soldering_Home_U"
value
=
"4.29512"
/>
<
add
key
=
"Soldering_Home_Z"
value
=
"-4.93001"
/>
<!--机器人清洗点
1
配置-->
<
add
key
=
"Soldering_Clear_X_1"
value
=
"289.864"
/>
<
add
key
=
"Soldering_Clear_Y_1"
value
=
"-10.0607"
/>
<
add
key
=
"Soldering_Clear_Hand_1"
value
=
"2"
/>
<
add
key
=
"Soldering_Clear_U_1"
value
=
"-84.4832"
/>
<
add
key
=
"Soldering_Clear_Z_1"
value
=
"-114.909"
/>
<!--机器人清洗点
2
配置-->
<
add
key
=
"Soldering_Clear_X_2"
value
=
"289.37"
/>
<
add
key
=
"Soldering_Clear_Y_2"
value
=
"-21.5826"
/>
<
add
key
=
"Soldering_Clear_Hand_2"
value
=
"2"
/>
<
add
key
=
"Soldering_Clear_U_2"
value
=
"-86.7414"
/>
<
add
key
=
"Soldering_Clear_Z_2"
value
=
"-114.907"
/>
<!--程序图片路径-->
<!--程序图片路径-->
<
add
key
=
"Board_Image_Path"
value
=
"\RobotConfig\config"
/>
<
add
key
=
"Board_Image_Path"
value
=
"\RobotConfig\config"
/>
<!--程序默认图片-->
<
add
key
=
"BOARD_IMAGE_DEFAULT"
value
=
"defaultBoard.jpg"
/>
<
add
key
=
"BOARD_IMAGE_DEFAULT"
value
=
"defaultBoard.jpg"
/>
<!--送丝
1
mm
对应的脉冲数-->
<
add
key
=
"SendWire_Change"
value
=
"-305"
/>
<
add
key
=
"SendWire_Change"
value
=
"-305"
/>
<
add
key
=
"Component_ConfigPath"
value
=
"\RobotConfig\config\componentData.txt"
/
>
<
!--报警时反转送丝速度--
>
<
add
key
=
"ReverseSendWireSpeed"
value
=
"-10"
/>
<
add
key
=
"ReverseSendWireSpeed"
value
=
"-10"
/>
<!--报警时反转送丝时间-->
<
add
key
=
"ReverseSendWireTime"
value
=
"3"
/>
<
add
key
=
"ReverseSendWireTime"
value
=
"3"
/>
<
add
key
=
"ISDebug"
value
=
"1"
/>
<
add
key
=
"ISDebug"
value
=
"1"
/>
<!--机器人是否高速运行-->
<
add
key
=
"Robot_IsHigh"
value
=
"1"
/>
<
add
key
=
"Robot_IsHigh"
value
=
"1"
/>
<
add
key
=
"Soldering_X_Min"
value
=
"0"
/>
<
add
key
=
"Soldering_Clear1Point"
value
=
"{"UpdateTime":"2018-07-28T14:42:04.5888384+08:00","X":-67.28,"Y":-436.62,"Z":293.7,"RX":2.7394,"RY":0.0599,"RZ":0.0708}"
/>
<
add
key
=
"Soldering_Y_Min"
value
=
"0"
/>
<
add
key
=
"Soldering_Clear2Point"
value
=
"{"UpdateTime":"2018-07-28T14:42:06.1809687+08:00","X":-67.29,"Y":-436.62,"Z":293.68,"RX":2.7394,"RY":0.06,"RZ":0.0708}"
/>
<
add
key
=
"Soldering_Z_Min"
value
=
"0"
/>
<
add
key
=
"Soldering_HomePoint"
value
=
"{"UpdateTime":"2018-07-28T14:42:02.1180802+08:00","X":-67.29,"Y":-436.62,"Z":293.66,"RX":2.7395,"RY":0.0599,"RZ":0.0707}"
/>
<
add
key
=
"Soldering_U_Min"
value
=
"0"
/>
<
add
key
=
"Soldering_RobotMin"
value
=
"{"UpdateTime":"2018-07-28T14:37:09.4700739+08:00","X":0.0,"Y":0.0,"Z":0.0,"RX":0.0,"RY":0.0,"RZ":0.0}"
/>
<
add
key
=
"Soldering_X_Max"
value
=
"0"
/>
<
add
key
=
"Soldering_RobotMax"
value
=
"{"UpdateTime":"2018-07-28T14:37:09.4700739+08:00","X":0.0,"Y":0.0,"Z":0.0,"RX":0.0,"RY":0.0,"RZ":0.0}"
/>
<
add
key
=
"Soldering_Y_Max"
value
=
"0"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<
add
key
=
"Soldering_Z_Max"
value
=
"0"
/>
<
add
key
=
"Soldering_U_Max"
value
=
"0"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/URSoldering.log"
/>
<
appender
name
=
"defaultAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/URSolderingClient.log"
/>
<
appendToFile
value
=
"true"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
...
@@ -89,10 +66,37 @@
...
@@ -89,10 +66,37 @@
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
<
conversionPattern
value
=
"[%date][%t]%-5p %m%n"
/>
</
layout
>
</
layout
>
</
appender
>
</
appender
>
<
root
>
<
appender
name
=
"RobotStatusLogAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/UR/RobotStatus.log"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date] %m%n"
/>
</
layout
>
</
appender
>
<
appender
name
=
"RobotListenLogAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
file
value
=
"logs/UR/RobotListen.log"
/>
<
appendToFile
value
=
"true"
/>
<
rollingStyle
value
=
"Date"
/>
<
datePattern
value
=
"yyyy-MM-dd"
/>
<
layout
type
=
"log4net.Layout.PatternLayout"
>
<
conversionPattern
value
=
"[%date] %m%n"
/>
</
layout
>
</
appender
>
<
logger
name
=
"RobotStatusLogAppender"
>
<
level
value
=
"Info"
/>
<
appender
-
ref
ref
=
"RobotStatusLogAppender"
/>
</
logger
>
<
logger
name
=
"RobotListenLogAppender"
>
<
level
value
=
"Info"
/>
<
appender
-
ref
ref
=
"RobotListenLogAppender"
/>
</
logger
>
<
logger
name
=
"defaultAppender"
>
<
level
value
=
"Info"
/>
<
level
value
=
"Info"
/>
<
appender
-
ref
ref
=
"RollingLogFileAppender"
/>
<
appender
-
ref
ref
=
"defaultAppender"
/>
</
root
>
</
logger
>
</
log4net
>
</
log4net
>
<
startup
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.0"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.0"
/>
...
...
URSolderingClient/FrmBoardInfo.cs
查看文件 @
447e221
...
@@ -115,7 +115,7 @@ namespace URSoldering.Client
...
@@ -115,7 +115,7 @@ namespace URSoldering.Client
if
(!
SendWireManager
.
IsRun
)
if
(!
SendWireManager
.
IsRun
)
{
{
SendWireManager
.
Init
(
WeldRobotBean
.
RobotConfig
.
JBC_SendWire_Port
);
//
SendWireManager.Init(WeldRobotBean.RobotConfig.JBC_SendWire_Port);
}
}
if
(
SendWireManager
.
IsRun
)
{
if
(
SendWireManager
.
IsRun
)
{
...
@@ -259,7 +259,7 @@ namespace URSoldering.Client
...
@@ -259,7 +259,7 @@ namespace URSoldering.Client
private
void
timer_Elapsed
(
object
sender
,
EventArgs
e
)
private
void
timer_Elapsed
(
object
sender
,
EventArgs
e
)
{
{
//判断是否开急停
//判断是否开急停
if
(
RobotBean
.
KNDIOValue
(
IO_Type
.
SuddenStop_Single
).
Equals
(
IO_VALUE
.
LOW
))
if
(
RobotBean
.
ShuddenOK
().
Equals
(
false
))
{
{
lblMsg
.
Text
=
"急停未开"
;
lblMsg
.
Text
=
"急停未开"
;
}
}
...
@@ -431,11 +431,11 @@ namespace URSoldering.Client
...
@@ -431,11 +431,11 @@ namespace URSoldering.Client
private
bool
isfast
=
false
;
private
bool
isfast
=
false
;
private
void
MoveTest
(
int
rowIndex
)
private
void
MoveTest
(
int
rowIndex
)
{
{
if
(
isAuto
==
false
)
//
if (isAuto == false)
{
//
{
MessageBox
.
Show
(
"请先切换到自动模式!"
);
//
MessageBox.Show("请先切换到自动模式!");
return
;
//
return;
}
//
}
URRobotControl
.
MoveTo
(
GetRowPoint
(
rowIndex
));
URRobotControl
.
MoveTo
(
GetRowPoint
(
rowIndex
));
}
}
...
...
URSolderingClient/FrmMenu.Designer.cs
查看文件 @
447e221
...
@@ -35,9 +35,6 @@ namespace URSoldering.Client
...
@@ -35,9 +35,6 @@ namespace URSoldering.Client
this
.
btnProduct
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnProduct
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWelding
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWelding
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnStart
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAutoEdit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnAutoEdit
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTongji
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnTongji
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
...
@@ -116,9 +113,6 @@ namespace URSoldering.Client
...
@@ -116,9 +113,6 @@ namespace URSoldering.Client
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
panel1
.
BackgroundImage
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"panel1.BackgroundImage"
)));
this
.
panel1
.
BackgroundImage
=
((
System
.
Drawing
.
Image
)(
resources
.
GetObject
(
"panel1.BackgroundImage"
)));
this
.
panel1
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Stretch
;
this
.
panel1
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Stretch
;
this
.
panel1
.
Controls
.
Add
(
this
.
button2
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnStop
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnStart
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnAutoEdit
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnAutoEdit
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnTongji
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnTongji
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnExit
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnExit
);
...
@@ -132,39 +126,6 @@ namespace URSoldering.Client
...
@@ -132,39 +126,6 @@ namespace URSoldering.Client
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
861
,
453
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
861
,
453
);
this
.
panel1
.
TabIndex
=
15
;
this
.
panel1
.
TabIndex
=
15
;
//
//
// button2
//
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
67
,
238
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
85
,
28
);
this
.
button2
.
TabIndex
=
17
;
this
.
button2
.
Text
=
"状态"
;
this
.
button2
.
UseVisualStyleBackColor
=
true
;
this
.
button2
.
Visible
=
false
;
this
.
button2
.
Click
+=
new
System
.
EventHandler
(
this
.
button2_Click
);
//
// btnStop
//
this
.
btnStop
.
Location
=
new
System
.
Drawing
.
Point
(
67
,
204
);
this
.
btnStop
.
Name
=
"btnStop"
;
this
.
btnStop
.
Size
=
new
System
.
Drawing
.
Size
(
85
,
28
);
this
.
btnStop
.
TabIndex
=
16
;
this
.
btnStop
.
Text
=
"停止"
;
this
.
btnStop
.
UseVisualStyleBackColor
=
true
;
this
.
btnStop
.
Visible
=
false
;
this
.
btnStop
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStop_Click
);
//
// btnStart
//
this
.
btnStart
.
Location
=
new
System
.
Drawing
.
Point
(
67
,
175
);
this
.
btnStart
.
Name
=
"btnStart"
;
this
.
btnStart
.
Size
=
new
System
.
Drawing
.
Size
(
85
,
28
);
this
.
btnStart
.
TabIndex
=
15
;
this
.
btnStart
.
Text
=
"开始"
;
this
.
btnStart
.
UseVisualStyleBackColor
=
true
;
this
.
btnStart
.
Visible
=
false
;
this
.
btnStart
.
Click
+=
new
System
.
EventHandler
(
this
.
btnStart_Click
);
//
// btnAutoEdit
// btnAutoEdit
//
//
this
.
btnAutoEdit
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
186
)))),
((
int
)(((
byte
)(
118
)))),
((
int
)(((
byte
)(
159
)))));
this
.
btnAutoEdit
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
186
)))),
((
int
)(((
byte
)(
118
)))),
((
int
)(((
byte
)(
159
)))));
...
@@ -179,7 +140,6 @@ namespace URSoldering.Client
...
@@ -179,7 +140,6 @@ namespace URSoldering.Client
this
.
btnAutoEdit
.
Size
=
new
System
.
Drawing
.
Size
(
222
,
81
);
this
.
btnAutoEdit
.
Size
=
new
System
.
Drawing
.
Size
(
222
,
81
);
this
.
btnAutoEdit
.
TabIndex
=
14
;
this
.
btnAutoEdit
.
TabIndex
=
14
;
this
.
btnAutoEdit
.
UseVisualStyleBackColor
=
false
;
this
.
btnAutoEdit
.
UseVisualStyleBackColor
=
false
;
this
.
btnAutoEdit
.
Click
+=
new
System
.
EventHandler
(
this
.
btnAutoEdit_Click
);
//
//
// btnTongji
// btnTongji
//
//
...
@@ -256,8 +216,5 @@ namespace URSoldering.Client
...
@@ -256,8 +216,5 @@ namespace URSoldering.Client
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
Button
btnCom
;
private
System
.
Windows
.
Forms
.
Button
btnCom
;
private
System
.
Windows
.
Forms
.
Button
btnAutoEdit
;
private
System
.
Windows
.
Forms
.
Button
btnAutoEdit
;
private
System
.
Windows
.
Forms
.
Button
btnStop
;
private
System
.
Windows
.
Forms
.
Button
btnStart
;
private
System
.
Windows
.
Forms
.
Button
button2
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
URSolderingClient/FrmMenu.cs
查看文件 @
447e221
...
@@ -17,6 +17,16 @@ namespace URSoldering.Client
...
@@ -17,6 +17,16 @@ namespace URSoldering.Client
InitializeComponent
();
InitializeComponent
();
this
.
MaximizeBox
=
false
;
this
.
MaximizeBox
=
false
;
this
.
MinimizeBox
=
false
;
this
.
MinimizeBox
=
false
;
}
private
System
.
Timers
.
Timer
timer
=
new
System
.
Timers
.
Timer
();
private
void
FrmMenu_Load
(
object
sender
,
EventArgs
e
)
{
//加载板卡
WorkCountManager
.
LoadData
();
BoardManager
.
LoadBoard
();
RobotManager
.
InitRobotConfig
();
RobotBean
.
ConnectionIO
();
this
.
Text
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
App_Title
);
}
}
...
@@ -59,19 +69,6 @@ namespace URSoldering.Client
...
@@ -59,19 +69,6 @@ namespace URSoldering.Client
frmOrgConfig
.
ShowDialog
();
frmOrgConfig
.
ShowDialog
();
this
.
Visible
=
true
;
this
.
Visible
=
true
;
}
}
private
System
.
Timers
.
Timer
timer
=
new
System
.
Timers
.
Timer
();
private
void
FrmMenu_Load
(
object
sender
,
EventArgs
e
)
{
//加载板卡
WorkCountManager
.
LoadData
();
//SProgramManager.LoadData();
BoardManager
.
LoadBoard
();
//ComponentManager.LoadData();
RobotManager
.
InitRobotConfig
();
//RobotBean.ConnectionIO();
this
.
Text
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
App_Title
);
}
private
void
FrmMenu_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
private
void
FrmMenu_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
{
{
...
@@ -95,34 +92,5 @@ namespace URSoldering.Client
...
@@ -95,34 +92,5 @@ namespace URSoldering.Client
this
.
Close
();
this
.
Close
();
}
}
private
void
btnProgram_Click
(
object
sender
,
EventArgs
e
)
{
}
private
void
btnAutoEdit_Click
(
object
sender
,
EventArgs
e
)
{
//isClick = true;
//FrmAutoAddBoard info = new FrmAutoAddBoard(null);
//this.Visible = false;
//info.ShowDialog();
//this.Visible = true;
}
private
void
btnStart_Click
(
object
sender
,
EventArgs
e
)
{
URRobotControl
.
StartRobot
();
//URRobotManager.StartListen();
}
private
void
btnStop_Click
(
object
sender
,
EventArgs
e
)
{
URRobotControl
.
StopRobot
();
//URRobotManager.StopListen();
}
private
void
button2_Click
(
object
sender
,
EventArgs
e
)
{
URRobotControl
.
GetRobotMode
();
}
}
}
}
}
URSolderingClient/FrmOrgConfig.Designer.cs
查看文件 @
447e221
...
@@ -28,9 +28,7 @@
...
@@ -28,9 +28,7 @@
/// </summary>
/// </summary>
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmOrgConfig
));
System
.
ComponentModel
.
ComponentResourceManager
resources
=
new
System
.
ComponentModel
.
ComponentResourceManager
(
typeof
(
FrmOrgConfig
));
this
.
timer2
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
dataGridViewImageColumn1
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
dataGridViewImageColumn1
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
dataGridViewImageColumn2
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
dataGridViewImageColumn2
=
new
System
.
Windows
.
Forms
.
DataGridViewImageColumn
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
...
@@ -39,21 +37,17 @@
...
@@ -39,21 +37,17 @@
this
.
btnSetClear2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSetClear2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSetClear1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSetClear1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
groupBox2
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
urRobotSControl1
=
new
UserFromControl
.
URRobotSControl
();
this
.
btnSetOrigin
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSetOrigin
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSaveHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSaveHome
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnWStop
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label14
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
urRobotSControl1
=
new
UserFromControl
.
URRobotSContro
l
();
this
.
lblMsg
=
new
System
.
Windows
.
Forms
.
Labe
l
();
this
.
panel1
.
SuspendLayout
();
this
.
panel1
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
groupBox2
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// timer2
//
this
.
timer2
.
Interval
=
1000
;
this
.
timer2
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer2_Tick
);
//
// dataGridViewImageColumn1
// dataGridViewImageColumn1
//
//
this
.
dataGridViewImageColumn1
.
HeaderText
=
"上升"
;
this
.
dataGridViewImageColumn1
.
HeaderText
=
"上升"
;
...
@@ -73,6 +67,7 @@
...
@@ -73,6 +67,7 @@
// panel1
// panel1
//
//
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
AutoScroll
=
true
;
this
.
panel1
.
Controls
.
Add
(
this
.
lblMsg
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnMore
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnMore
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnBack
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnBack
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnSetClear2
);
this
.
panel1
.
Controls
.
Add
(
this
.
btnSetClear2
);
...
@@ -83,13 +78,13 @@
...
@@ -83,13 +78,13 @@
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Name
=
"panel1"
;
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
5
29
,
318
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
5
45
,
347
);
this
.
panel1
.
TabIndex
=
0
;
this
.
panel1
.
TabIndex
=
0
;
//
//
// btnMore
// btnMore
//
//
this
.
btnMore
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnMore
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnMore
.
Location
=
new
System
.
Drawing
.
Point
(
70
,
260
);
this
.
btnMore
.
Location
=
new
System
.
Drawing
.
Point
(
80
,
276
);
this
.
btnMore
.
Name
=
"btnMore"
;
this
.
btnMore
.
Name
=
"btnMore"
;
this
.
btnMore
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnMore
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnMore
.
TabIndex
=
261
;
this
.
btnMore
.
TabIndex
=
261
;
...
@@ -100,7 +95,7 @@
...
@@ -100,7 +95,7 @@
// btnBack
// btnBack
//
//
this
.
btnBack
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnBack
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
3
21
,
260
);
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
3
47
,
276
);
this
.
btnBack
.
Name
=
"btnBack"
;
this
.
btnBack
.
Name
=
"btnBack"
;
this
.
btnBack
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnBack
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnBack
.
TabIndex
=
260
;
this
.
btnBack
.
TabIndex
=
260
;
...
@@ -111,7 +106,7 @@
...
@@ -111,7 +106,7 @@
// btnSetClear2
// btnSetClear2
//
//
this
.
btnSetClear2
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSetClear2
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSetClear2
.
Location
=
new
System
.
Drawing
.
Point
(
3
21
,
192
);
this
.
btnSetClear2
.
Location
=
new
System
.
Drawing
.
Point
(
3
47
,
192
);
this
.
btnSetClear2
.
Name
=
"btnSetClear2"
;
this
.
btnSetClear2
.
Name
=
"btnSetClear2"
;
this
.
btnSetClear2
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSetClear2
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSetClear2
.
TabIndex
=
38
;
this
.
btnSetClear2
.
TabIndex
=
38
;
...
@@ -122,7 +117,7 @@
...
@@ -122,7 +117,7 @@
// btnSetClear1
// btnSetClear1
//
//
this
.
btnSetClear1
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSetClear1
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSetClear1
.
Location
=
new
System
.
Drawing
.
Point
(
3
21
,
142
);
this
.
btnSetClear1
.
Location
=
new
System
.
Drawing
.
Point
(
3
47
,
142
);
this
.
btnSetClear1
.
Name
=
"btnSetClear1"
;
this
.
btnSetClear1
.
Name
=
"btnSetClear1"
;
this
.
btnSetClear1
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSetClear1
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSetClear1
.
TabIndex
=
37
;
this
.
btnSetClear1
.
TabIndex
=
37
;
...
@@ -134,17 +129,27 @@
...
@@ -134,17 +129,27 @@
//
//
this
.
groupBox2
.
Controls
.
Add
(
this
.
urRobotSControl1
);
this
.
groupBox2
.
Controls
.
Add
(
this
.
urRobotSControl1
);
this
.
groupBox2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox2
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
40
,
34
);
this
.
groupBox2
.
Location
=
new
System
.
Drawing
.
Point
(
36
,
41
);
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Name
=
"groupBox2"
;
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
2
41
,
192
);
this
.
groupBox2
.
Size
=
new
System
.
Drawing
.
Size
(
2
84
,
206
);
this
.
groupBox2
.
TabIndex
=
259
;
this
.
groupBox2
.
TabIndex
=
259
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
TabStop
=
false
;
this
.
groupBox2
.
Text
=
"机器人实时坐标"
;
this
.
groupBox2
.
Text
=
"机器人实时坐标"
;
//
//
// urRobotSControl1
//
this
.
urRobotSControl1
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
urRobotSControl1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
28
);
this
.
urRobotSControl1
.
Name
=
"urRobotSControl1"
;
this
.
urRobotSControl1
.
Size
=
new
System
.
Drawing
.
Size
(
271
,
157
);
this
.
urRobotSControl1
.
TabIndex
=
0
;
//
// btnSetOrigin
// btnSetOrigin
//
//
this
.
btnSetOrigin
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSetOrigin
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSetOrigin
.
Location
=
new
System
.
Drawing
.
Point
(
3
21
,
42
);
this
.
btnSetOrigin
.
Location
=
new
System
.
Drawing
.
Point
(
3
47
,
42
);
this
.
btnSetOrigin
.
Name
=
"btnSetOrigin"
;
this
.
btnSetOrigin
.
Name
=
"btnSetOrigin"
;
this
.
btnSetOrigin
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSetOrigin
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSetOrigin
.
TabIndex
=
32
;
this
.
btnSetOrigin
.
TabIndex
=
32
;
...
@@ -155,7 +160,7 @@
...
@@ -155,7 +160,7 @@
// btnSaveHome
// btnSaveHome
//
//
this
.
btnSaveHome
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSaveHome
.
FlatAppearance
.
BorderSize
=
0
;
this
.
btnSaveHome
.
Location
=
new
System
.
Drawing
.
Point
(
3
21
,
92
);
this
.
btnSaveHome
.
Location
=
new
System
.
Drawing
.
Point
(
3
47
,
92
);
this
.
btnSaveHome
.
Name
=
"btnSaveHome"
;
this
.
btnSaveHome
.
Name
=
"btnSaveHome"
;
this
.
btnSaveHome
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSaveHome
.
Size
=
new
System
.
Drawing
.
Size
(
159
,
38
);
this
.
btnSaveHome
.
TabIndex
=
36
;
this
.
btnSaveHome
.
TabIndex
=
36
;
...
@@ -167,7 +172,7 @@
...
@@ -167,7 +172,7 @@
//
//
this
.
btnSStop
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnSStop
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnSStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnSStop
.
Location
=
new
System
.
Drawing
.
Point
(
4
01
,
9
);
this
.
btnSStop
.
Location
=
new
System
.
Drawing
.
Point
(
4
17
,
9
);
this
.
btnSStop
.
Name
=
"btnSStop"
;
this
.
btnSStop
.
Name
=
"btnSStop"
;
this
.
btnSStop
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
23
);
this
.
btnSStop
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
23
);
this
.
btnSStop
.
TabIndex
=
256
;
this
.
btnSStop
.
TabIndex
=
256
;
...
@@ -179,7 +184,7 @@
...
@@ -179,7 +184,7 @@
//
//
this
.
btnWStop
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnWStop
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
btnWStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWStop
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
9F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnWStop
.
Location
=
new
System
.
Drawing
.
Point
(
4
01
,
37
);
this
.
btnWStop
.
Location
=
new
System
.
Drawing
.
Point
(
4
17
,
37
);
this
.
btnWStop
.
Name
=
"btnWStop"
;
this
.
btnWStop
.
Name
=
"btnWStop"
;
this
.
btnWStop
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
23
);
this
.
btnWStop
.
Size
=
new
System
.
Drawing
.
Size
(
117
,
23
);
this
.
btnWStop
.
TabIndex
=
257
;
this
.
btnWStop
.
TabIndex
=
257
;
...
@@ -197,18 +202,20 @@
...
@@ -197,18 +202,20 @@
this
.
label14
.
Text
=
"条形码"
;
this
.
label14
.
Text
=
"条形码"
;
this
.
label14
.
Visible
=
false
;
this
.
label14
.
Visible
=
false
;
//
//
//
urRobotSControl1
//
lblMsg
//
//
this
.
urRobotSControl1
.
Location
=
new
System
.
Drawing
.
Point
(
7
,
28
);
this
.
lblMsg
.
AutoSize
=
true
;
this
.
urRobotSControl1
.
Name
=
"urRobotSControl1"
;
this
.
lblMsg
.
ForeColor
=
System
.
Drawing
.
Color
.
Red
;
this
.
urRobotSControl1
.
Size
=
new
System
.
Drawing
.
Size
(
228
,
146
);
this
.
lblMsg
.
Location
=
new
System
.
Drawing
.
Point
(
33
,
15
);
this
.
urRobotSControl1
.
TabIndex
=
0
;
this
.
lblMsg
.
Name
=
"lblMsg"
;
this
.
lblMsg
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
17
);
this
.
lblMsg
.
TabIndex
=
262
;
//
//
// FrmOrgConfig
// FrmOrgConfig
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
5
29
,
318
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
5
45
,
347
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
panel1
);
this
.
Controls
.
Add
(
this
.
btnSStop
);
this
.
Controls
.
Add
(
this
.
btnSStop
);
this
.
Controls
.
Add
(
this
.
btnWStop
);
this
.
Controls
.
Add
(
this
.
btnWStop
);
...
@@ -218,6 +225,7 @@
...
@@ -218,6 +225,7 @@
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmBoardInfo_FormClosing
);
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmBoardInfo_FormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmBoardInfo_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmBoardInfo_Load
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
ResumeLayout
(
false
);
this
.
panel1
.
PerformLayout
();
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
groupBox2
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
this
.
PerformLayout
();
...
@@ -228,7 +236,6 @@
...
@@ -228,7 +236,6 @@
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Panel
panel1
;
private
System
.
Windows
.
Forms
.
Button
btnWStop
;
private
System
.
Windows
.
Forms
.
Button
btnWStop
;
private
System
.
Windows
.
Forms
.
Button
btnSStop
;
private
System
.
Windows
.
Forms
.
Button
btnSStop
;
private
System
.
Windows
.
Forms
.
Timer
timer2
;
private
System
.
Windows
.
Forms
.
Button
btnSetOrigin
;
private
System
.
Windows
.
Forms
.
Button
btnSetOrigin
;
private
System
.
Windows
.
Forms
.
Label
label14
;
private
System
.
Windows
.
Forms
.
Label
label14
;
...
@@ -241,5 +248,6 @@
...
@@ -241,5 +248,6 @@
private
System
.
Windows
.
Forms
.
Button
btnBack
;
private
System
.
Windows
.
Forms
.
Button
btnBack
;
private
System
.
Windows
.
Forms
.
Button
btnMore
;
private
System
.
Windows
.
Forms
.
Button
btnMore
;
private
UserFromControl
.
URRobotSControl
urRobotSControl1
;
private
UserFromControl
.
URRobotSControl
urRobotSControl1
;
private
System
.
Windows
.
Forms
.
Label
lblMsg
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
URSolderingClient/FrmOrgConfig.cs
查看文件 @
447e221
...
@@ -5,6 +5,7 @@ using URSoldering.DeviceLibrary;
...
@@ -5,6 +5,7 @@ using URSoldering.DeviceLibrary;
using
System
;
using
System
;
using
System.Reflection
;
using
System.Reflection
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
using
System.Threading.Tasks
;
namespace
URSoldering.Client
namespace
URSoldering.Client
{
{
...
@@ -46,56 +47,44 @@ namespace URSoldering.Client
...
@@ -46,56 +47,44 @@ namespace URSoldering.Client
timer1
.
AutoReset
=
true
;
timer1
.
AutoReset
=
true
;
timer1
.
Elapsed
+=
timer_Elapsed
;
timer1
.
Elapsed
+=
timer_Elapsed
;
timer1
.
Start
();
timer1
.
Start
();
timer2
.
Start
();
}
}
private
bool
isRun
=
false
;
private
bool
isRun
=
false
;
private
void
timer_Elapsed
(
object
sender
,
EventArgs
e
)
private
void
timer_Elapsed
(
object
sender
,
EventArgs
e
)
{
{
//if (!URRobotControl.IsRun && isRun.Equals(false))
if
(!
URRobotControl
.
IsRun
&&
isRun
.
Equals
(
false
))
//{
{
// Task.Factory.StartNew(delegate ()
Task
.
Factory
.
StartNew
(
delegate
()
// {
{
// bool result = URRobotControl.StartRobot();
bool
result
=
URRobotControl
.
StartRobot
();
// if (!result)
if
(!
result
)
// {
{
// LogUtil.info("连接失败:" + result);
LogUtil
.
info
(
"连接失败:"
+
result
);
// }
// else
// {
// URRobotControl.FreeAxis();
// isAuto = false;
// }
// });
// isRun = true;
//}
//else
//{
// URPointValue lastP = URRobotControl.GetLastPosition();
// urRobotSControl1.ShowPoint(lastP);
//}
}
}
else
private
void
FrmBoardInfo_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
{
{
URRobotControl
.
LockAxis
();
URRobotControl
.
FreeAxis
();
timer2
.
Stop
();
isAuto
=
false
;
timer1
.
Stop
();
UsbCameraHDevelop
.
CloseAllCamera
();
}
}
});
private
void
btnRead_Click
(
object
sender
,
EventArgs
e
)
isRun
=
true
;
}
else
{
{
URPointValue
lastP
=
URRobotControl
.
GetLastPosition
();
URPointValue
lastP
=
URRobotControl
.
GetLastPosition
();
urRobotSControl1
.
ShowPoint
(
lastP
);
}
lblMsg
.
Text
=
URRobotControl
.
WarnMsg
;
}
}
private
void
timer2_Tick
(
object
sender
,
EventArgs
e
)
private
void
FrmBoardInfo_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
{
if
(
URRobotControl
.
IsRun
)
{
{
URRobotControl
.
LockAxis
();
}
timer1
.
Stop
();
UsbCameraHDevelop
.
CloseAllCamera
();
}
}
protected
override
void
OnVisibleChanged
(
EventArgs
e
)
protected
override
void
OnVisibleChanged
(
EventArgs
e
)
{
{
base
.
OnVisibleChanged
(
e
);
base
.
OnVisibleChanged
(
e
);
...
...
URSolderingClient/FrmOrgConfig.resx
查看文件 @
447e221
...
@@ -117,9 +117,6 @@
...
@@ -117,9 +117,6 @@
<resheader name="writer">
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</resheader>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="dataGridViewImageColumn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="dataGridViewImageColumn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
<value>
...
...
URSolderingClient/FrmSolderingSetting.cs
查看文件 @
447e221
...
@@ -66,13 +66,13 @@ namespace URSoldering.Client
...
@@ -66,13 +66,13 @@ namespace URSoldering.Client
List
<
string
>
port
=
new
List
<
string
>(
SerialPort
.
GetPortNames
());
List
<
string
>
port
=
new
List
<
string
>(
SerialPort
.
GetPortNames
());
if
(
limz
>
0
)
//
if (limz > 0)
{
//
{
MessageBox
.
Show
(
"请输入正确的机器人最大Z点(<=0)"
);
//
MessageBox.Show("请输入正确的机器人最大Z点(<=0)");
this
.
txtLimZ
.
Focus
();
//
this.txtLimZ.Focus();
txtLimZ
.
SelectAll
();
//
txtLimZ.SelectAll();
return
;
//
return;
}
//
}
int
sendWireSpeed
=
FormUtil
.
GetIntValue
(
txtsendWireSpeed
);
int
sendWireSpeed
=
FormUtil
.
GetIntValue
(
txtsendWireSpeed
);
if
(
sendWireSpeed
>=
0
)
if
(
sendWireSpeed
>=
0
)
{
{
...
...
UserFromControl/URRobotSControl.Designer.cs
查看文件 @
447e221
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
// lblRZ
// lblRZ
//
//
this
.
lblRZ
.
AutoSize
=
true
;
this
.
lblRZ
.
AutoSize
=
true
;
this
.
lblRZ
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
113
);
this
.
lblRZ
.
Location
=
new
System
.
Drawing
.
Point
(
16
2
,
113
);
this
.
lblRZ
.
Name
=
"lblRZ"
;
this
.
lblRZ
.
Name
=
"lblRZ"
;
this
.
lblRZ
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lblRZ
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lblRZ
.
TabIndex
=
44
;
this
.
lblRZ
.
TabIndex
=
44
;
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
// label3
// label3
//
//
this
.
label3
.
AutoSize
=
true
;
this
.
label3
.
AutoSize
=
true
;
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
1
33
,
113
);
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
1
28
,
113
);
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
label3
.
TabIndex
=
41
;
this
.
label3
.
TabIndex
=
41
;
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
// label4
// label4
//
//
this
.
label4
.
AutoSize
=
true
;
this
.
label4
.
AutoSize
=
true
;
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
1
32
,
9
);
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
1
27
,
9
);
this
.
label4
.
Name
=
"label4"
;
this
.
label4
.
Name
=
"label4"
;
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
label4
.
TabIndex
=
39
;
this
.
label4
.
TabIndex
=
39
;
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
// lblRY
// lblRY
//
//
this
.
lblRY
.
AutoSize
=
true
;
this
.
lblRY
.
AutoSize
=
true
;
this
.
lblRY
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
61
);
this
.
lblRY
.
Location
=
new
System
.
Drawing
.
Point
(
16
2
,
61
);
this
.
lblRY
.
Name
=
"lblRY"
;
this
.
lblRY
.
Name
=
"lblRY"
;
this
.
lblRY
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lblRY
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lblRY
.
TabIndex
=
43
;
this
.
lblRY
.
TabIndex
=
43
;
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
// lblRX
// lblRX
//
//
this
.
lblRX
.
AutoSize
=
true
;
this
.
lblRX
.
AutoSize
=
true
;
this
.
lblRX
.
Location
=
new
System
.
Drawing
.
Point
(
16
7
,
9
);
this
.
lblRX
.
Location
=
new
System
.
Drawing
.
Point
(
16
2
,
9
);
this
.
lblRX
.
Name
=
"lblRX"
;
this
.
lblRX
.
Name
=
"lblRX"
;
this
.
lblRX
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lblRX
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
lblRX
.
TabIndex
=
42
;
this
.
lblRX
.
TabIndex
=
42
;
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
// label7
// label7
//
//
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
AutoSize
=
true
;
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
1
33
,
61
);
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
1
28
,
61
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
29
,
12
);
this
.
label7
.
TabIndex
=
40
;
this
.
label7
.
TabIndex
=
40
;
...
...
dll/URToolKit.dll
0 → 100644
查看文件 @
447e221
此文件类型无法预览
doc/设备IP地址分配.xlsx
0 → 100644
查看文件 @
447e221
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论