Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
Qisda-SO1037-AGVDispatch
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a06d56c5
由
张东亮
编写于
2023-03-10 11:09:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
钢网接口限制
1 个父辈
4e013e46
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
1 行删除
DeviceLibrary/bean/job/SteelLiftToStorageJob.cs
DeviceLibrary/manager/DataBufferManager.cs
DeviceLibrary/service/Service.cs
DeviceLibrary/bean/job/SteelLiftToStorageJob.cs
查看文件 @
a06d56c
...
@@ -234,6 +234,7 @@ namespace DeviceLibrary.bean.job
...
@@ -234,6 +234,7 @@ namespace DeviceLibrary.bean.job
JobRunStep
.
ToNextStep
(
RunStep
.
Steel_LiftToLine_14_Dock
);
JobRunStep
.
ToNextStep
(
RunStep
.
Steel_LiftToLine_14_Dock
);
runInfo
=
$
"到达{JobParam.CurTargetNode.AliceName}的放料点"
;
//,开始停靠
runInfo
=
$
"到达{JobParam.CurTargetNode.AliceName}的放料点"
;
//,开始停靠
//AllocateTask(agv, $"{SettingString.Docking}");
//AllocateTask(agv, $"{SettingString.Docking}");
DataBufferManager
.
SteelAgvInStorage
=
true
;
JobRunStep
.
Msg
=
runInfo
;
JobRunStep
.
Msg
=
runInfo
;
}
}
}
}
...
...
DeviceLibrary/manager/DataBufferManager.cs
查看文件 @
a06d56c
...
@@ -28,6 +28,10 @@ namespace DeviceLibrary.manager
...
@@ -28,6 +28,10 @@ namespace DeviceLibrary.manager
/// </summary>
/// </summary>
public
static
string
SteelTarget
=
""
;
public
static
string
SteelTarget
=
""
;
/// <summary>
/// <summary>
/// 钢网agv在立库那
/// </summary>
public
static
bool
SteelAgvInStorage
=
false
;
/// <summary>
/// 重置钢网信息
/// 重置钢网信息
/// </summary>
/// </summary>
public
static
void
ResetSteelInfo
()
public
static
void
ResetSteelInfo
()
...
@@ -35,6 +39,7 @@ namespace DeviceLibrary.manager
...
@@ -35,6 +39,7 @@ namespace DeviceLibrary.manager
DockingOk
=
false
;
DockingOk
=
false
;
LeaveLiku
=
false
;
LeaveLiku
=
false
;
DetachShelf
=
false
;
DetachShelf
=
false
;
SteelAgvInStorage
=
false
;
SteelTarget
=
""
;
SteelTarget
=
""
;
}
}
}
}
...
...
DeviceLibrary/service/Service.cs
查看文件 @
a06d56c
...
@@ -8,6 +8,7 @@ using Common;
...
@@ -8,6 +8,7 @@ using Common;
using
DeviceLibrary.service.model
;
using
DeviceLibrary.service.model
;
using
DeviceLibrary.manager
;
using
DeviceLibrary.manager
;
using
System.Reflection
;
using
System.Reflection
;
using
System.Windows.Forms
;
namespace
DeviceLibrary
namespace
DeviceLibrary
{
{
...
@@ -207,6 +208,12 @@ namespace DeviceLibrary
...
@@ -207,6 +208,12 @@ namespace DeviceLibrary
public
StealResult
Storage
(
string
Place
)
public
StealResult
Storage
(
string
Place
)
{
{
StealResult
stealResult
=
new
StealResult
();
StealResult
stealResult
=
new
StealResult
();
if
(!
DataBufferManager
.
SteelAgvInStorage
)
{
stealResult
.
Msg
=
$
"NG,3D"
;
Log
.
Info
(
$
"收到立库调用Storage接口:【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
return
stealResult
;
}
stealResult
.
Msg
=
$
"OK,3D"
;
stealResult
.
Msg
=
$
"OK,3D"
;
//DI_On/DI_Off 信号亮DI_On,没信号DI_Off
//DI_On/DI_Off 信号亮DI_On,没信号DI_Off
if
(
Place
.
Equals
(
"DI_Off"
))
if
(
Place
.
Equals
(
"DI_Off"
))
...
@@ -245,8 +252,24 @@ namespace DeviceLibrary
...
@@ -245,8 +252,24 @@ namespace DeviceLibrary
public
StealResult
SendNew
(
string
From
,
string
Place
)
public
StealResult
SendNew
(
string
From
,
string
Place
)
{
{
StealResult
stealResult
=
new
StealResult
();
StealResult
stealResult
=
new
StealResult
();
DataBufferManager
.
SteelTarget
=
Place
;
stealResult
.
Msg
=
$
"OK,3D"
;
stealResult
.
Msg
=
$
"OK,3D"
;
if
(
DataBufferManager
.
SteelAgvInStorage
)
{
DataBufferManager
.
SteelTarget
=
Place
;
}
else
{
if
(
"storage"
.
Equals
(
From
.
ToLower
()))
{
//MissionInfo missionInfo = new MissionInfo();
//missionInfo.state = MissionState.创建;
//bool rtn = MissionManager.AddMission(missionInfo);
//if (!rtn)
//{
// stealResult.Msg = $"NG,3D";
//}
}
}
Log
.
Info
(
$
"收到立库调用SendNew接口:【From={From}】【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
Log
.
Info
(
$
"收到立库调用SendNew接口:【From={From}】【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
return
stealResult
;
return
stealResult
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论