Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO664-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0a57e038
由
LN
编写于
2021-01-02 17:22:09 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
接驳台接口修改。
1 个父辈
eea6de9a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
17 行删除
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
source/DeviceLibrary/assemblymanager/SServerManager.cs
source/DeviceLibrary/model/StoreStep.cs
source/DeviceLibrary/assemblyLine/HY/HY_C1Line.cs
查看文件 @
0a57e03
...
@@ -479,7 +479,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -479,7 +479,7 @@ namespace OnlineStore.DeviceLibrary
{
{
lineName
=
"C2"
;
lineName
=
"C2"
;
}
}
else
if
(
DeviceID
.
Equals
(
20
5
))
else
if
(
DeviceID
.
Equals
(
20
6
))
{
{
lineName
=
"C3"
;
lineName
=
"C3"
;
}
}
...
...
source/DeviceLibrary/assemblyLine/HY/HY_Coveryor_Partial.cs
查看文件 @
0a57e03
...
@@ -580,8 +580,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -580,8 +580,8 @@ namespace OnlineStore.DeviceLibrary
else
if
(!
MoveInfo
.
MoveParam
.
InStoreNg
)
else
if
(!
MoveInfo
.
MoveParam
.
InStoreNg
)
{
{
int
robotIndex
=
GetRobotIndex
();
int
robotIndex
=
GetRobotIndex
();
OutLog
(
logName
+
MoveInfo
.
SLog
+
",工单料到达接驳台,发送 arriveRobotLocation "
);
OutLog
(
logName
+
MoveInfo
.
SLog
+
",工单料到达接驳台,发送 arrive
3f
RobotLocation "
);
string
msg
=
SServerManager
.
arriveRobotLocation
(
Name
,
robotIndex
,
code
);
string
msg
=
SServerManager
.
arrive
3f
RobotLocation
(
Name
,
robotIndex
,
code
);
afterPutCutOK
=
true
;
afterPutCutOK
=
true
;
}
}
else
else
...
@@ -598,7 +598,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -598,7 +598,7 @@ namespace OnlineStore.DeviceLibrary
}
}
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_17_CylinderTake
))
else
if
(
MoveInfo
.
IsStep
(
LineMoveStep
.
JM_17_CylinderTake
))
{
{
string
log
=
"arriveRobotLocation"
;
string
log
=
"arrive
3f
RobotLocation"
;
if
(
IsNgPro
())
if
(
IsNgPro
())
{
{
log
=
"afterPutCutTask"
;
log
=
"afterPutCutTask"
;
...
...
source/DeviceLibrary/assemblymanager/SServerManager.cs
查看文件 @
0a57e03
...
@@ -196,20 +196,20 @@ namespace OnlineStore.DeviceLibrary
...
@@ -196,20 +196,20 @@ namespace OnlineStore.DeviceLibrary
//皮带线获取尺寸后,料盘到达机器人取料位置进调用,如果未扫到码,或者没等到取料位置信号亮,可以不用调用
//皮带线获取尺寸后,料盘到达机器人取料位置进调用,如果未扫到码,或者没等到取料位置信号亮,可以不用调用
//> 地址:
//> 地址:
//>>/rest/api/qisda/device/arriveRobotLocation
//>>/rest/api/qisda/device/arrive
3f
RobotLocation
//>
//>
//> 参数:
//> 参数:
//>> - robotIndex=机器人编号,IP为51的机器人为1, 52的机器人为2, 53的机器人为3
//>> - robotIndex=机器人编号,IP为51的机器人为1, 52的机器人为2, 53的机器人为3
//>
//>
//> 返回:
//> 返回:
//>>``
//>>``
private
static
string
Addr_arrive
RobotLocation
=
"/rest/api/qisda/device/arrive
RobotLocation"
;
private
static
string
Addr_arrive
3fRobotLocation
=
"/rest/api/qisda/device/arrive3f
RobotLocation"
;
public
static
string
arriveRobotLocation
(
string
deviceName
,
int
robotIndex
,
string
barcode
)
public
static
string
arrive
3f
RobotLocation
(
string
deviceName
,
int
robotIndex
,
string
barcode
)
{
{
string
msg
=
""
;
string
msg
=
""
;
if
(
string
.
IsNullOrEmpty
(
serverAddr
))
if
(
string
.
IsNullOrEmpty
(
serverAddr
))
{
{
LogUtil
.
error
(
deviceName
+
"arriveRobotLocation ["
+
robotIndex
+
"]["
+
barcode
+
"] :未找到服务器地址"
);
LogUtil
.
error
(
deviceName
+
"arrive
3f
RobotLocation ["
+
robotIndex
+
"]["
+
barcode
+
"] :未找到服务器地址"
);
return
msg
;
return
msg
;
}
}
try
try
...
@@ -222,9 +222,9 @@ namespace OnlineStore.DeviceLibrary
...
@@ -222,9 +222,9 @@ namespace OnlineStore.DeviceLibrary
Dictionary
<
string
,
string
>
paramMap
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
string
>
paramMap
=
new
Dictionary
<
string
,
string
>();
paramMap
.
Add
(
"robotIndex"
,
robotIndex
.
ToString
());
//rfid
paramMap
.
Add
(
"robotIndex"
,
robotIndex
.
ToString
());
//rfid
paramMap
.
Add
(
"barcode"
,
barcode
);
paramMap
.
Add
(
"barcode"
,
barcode
);
string
server
=
GetAddr
(
Addr_arriveRobotLocation
,
paramMap
);
string
server
=
GetAddr
(
Addr_arrive
3f
RobotLocation
,
paramMap
);
string
resultStr
=
HttpHelper
.
Post
(
server
,
""
);
string
resultStr
=
HttpHelper
.
Post
(
server
,
""
);
LogUtil
.
info
(
deviceName
+
"arriveRobotLocation "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
LogUtil
.
info
(
deviceName
+
"arrive
3f
RobotLocation "
+
FormUtil
.
GetSpanStr
(
DateTime
.
Now
-
startTime
)
+
" 【"
+
server
+
"】【"
+
resultStr
+
"】"
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
source/DeviceLibrary/model/StoreStep.cs
查看文件 @
0a57e03
...
@@ -578,19 +578,18 @@ namespace OnlineStore.DeviceLibrary
...
@@ -578,19 +578,18 @@ namespace OnlineStore.DeviceLibrary
/// 提升轴下降到料盘不溢出的位置
/// 提升轴下降到料盘不溢出的位置
/// </summary>
/// </summary>
FI_29_BatchAxisDown
,
FI_29_BatchAxisDown
,
///// <summary>
///// 等待料盘检测信号
///// </summary>
//FI_30_WaitReelCheck,
/// <summary>
/// <summary>
/// 料盘移栽:从服务器获取入库库位号
/// 料盘移栽:从服务器获取入库库位号
/// </summary>
/// </summary>
FI_31_GetPosID
,
FI_31_GetPosID
,
/// <summary>
/// <summary>
/// 料盘移栽:此料盘是出库料盘,获取出库信息
/// </summary>
FI_32_GetReelInfo
,
/// <summary>
/// 料盘移栽:等待空托盘到达,移栽伺服下降到P2,并预扫码
/// 料盘移栽:等待空托盘到达,移栽伺服下降到P2,并预扫码
/// </summary>
/// </summary>
FI_32_WaitTray
,
FI_32_WaitTray
,
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论