Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
Qisda-SO1037-AGVDispatch
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d44650e4
由
张东亮
编写于
2023-05-17 15:39:26 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
钢网返回时未锁定电梯问题
1 个父辈
b5fe394f
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
5 行删除
AGVDispatch/Manual.cs
DeviceLibrary/bean/job/SteelLiftToStorageJob.cs
DeviceLibrary/manager/DataBufferManager.cs
DeviceLibrary/service/Service.cs
AGVDispatch/Manual.cs
查看文件 @
d44650e
...
@@ -11,6 +11,7 @@ using DeviceLibrary;
...
@@ -11,6 +11,7 @@ using DeviceLibrary;
using
Common
;
using
Common
;
using
DeviceLibrary.lift
;
using
DeviceLibrary.lift
;
using
static
DeviceLibrary
.
OpManager
;
using
static
DeviceLibrary
.
OpManager
;
using
DeviceLibrary.manager
;
namespace
AGVControl
namespace
AGVControl
{
{
...
@@ -103,6 +104,8 @@ namespace AGVControl
...
@@ -103,6 +104,8 @@ namespace AGVControl
{
{
if
(
MessageBox
.
Show
(
$
"是否删除该任务[{Agv.JobContext.MissionId}]?"
,
"提示"
,
MessageBoxButtons
.
YesNo
).
Equals
(
DialogResult
.
Yes
))
if
(
MessageBox
.
Show
(
$
"是否删除该任务[{Agv.JobContext.MissionId}]?"
,
"提示"
,
MessageBoxButtons
.
YesNo
).
Equals
(
DialogResult
.
Yes
))
{
{
if
(
Agv
.
CurJob
.
JobParam
.
GetMissionInfo
().
missionId
.
StartsWith
(
"P14"
))
DataBufferManager
.
ResetSteelInfo
();
DeviceLibrary
.
manager
.
MissionManager
.
SetMissionState
(
Agv
.
CurJob
.
JobParam
.
GetMissionInfo
().
missionId
,
DeviceLibrary
.
service
.
model
.
MissionState
.
中止
,
out
string
msg
);
DeviceLibrary
.
manager
.
MissionManager
.
SetMissionState
(
Agv
.
CurJob
.
JobParam
.
GetMissionInfo
().
missionId
,
DeviceLibrary
.
service
.
model
.
MissionState
.
中止
,
out
string
msg
);
LogUtil
.
info
(
$
"{Agv.Name}取消自动任务,并终止当前任务:{Common.JsonHelper.SerializeObject(Agv.CurJob.JobParam.GetMissionInfo())}"
);
LogUtil
.
info
(
$
"{Agv.Name}取消自动任务,并终止当前任务:{Common.JsonHelper.SerializeObject(Agv.CurJob.JobParam.GetMissionInfo())}"
);
LiftContext
.
SetLiftNodeOccupied
(
Agv
);
LiftContext
.
SetLiftNodeOccupied
(
Agv
);
...
...
DeviceLibrary/bean/job/SteelLiftToStorageJob.cs
查看文件 @
d44650e
...
@@ -313,7 +313,8 @@ namespace DeviceLibrary.bean.job
...
@@ -313,7 +313,8 @@ namespace DeviceLibrary.bean.job
runInfo
+=
$
",返回{JobParam.SrcNode.AliceName}"
;
runInfo
+=
$
",返回{JobParam.SrcNode.AliceName}"
;
MissionManager
.
SetMissionState
(
JobParam
.
GetMissionInfo
().
missionId
,
service
.
model
.
MissionState
.
返回电梯
,
out
string
msg
);
MissionManager
.
SetMissionState
(
JobParam
.
GetMissionInfo
().
missionId
,
service
.
model
.
MissionState
.
返回电梯
,
out
string
msg
);
JobParam
.
SetMissionInfo
(
MissionManager
.
GetMission
(
JobParam
.
GetMissionInfo
().
missionId
));
JobParam
.
SetMissionInfo
(
MissionManager
.
GetMission
(
JobParam
.
GetMissionInfo
().
missionId
));
AllocateTask
(
agv
,
JobParam
.
SrcNode
.
Name
);
//AllocateTask(agv, JobParam.SrcNode.Name);
ToLift
(
agv
,
JobParam
.
SrcNode
.
Name
);
}
}
JobRunStep
.
Msg
=
runInfo
;
JobRunStep
.
Msg
=
runInfo
;
}
}
...
@@ -348,7 +349,8 @@ namespace DeviceLibrary.bean.job
...
@@ -348,7 +349,8 @@ namespace DeviceLibrary.bean.job
runInfo
=
$
"料车需返回,电梯口无料车,去电梯口"
;
runInfo
=
$
"料车需返回,电梯口无料车,去电梯口"
;
//任务状态变更
//任务状态变更
MissionManager
.
SetMissionState
(
JobParam
.
GetMissionInfo
().
missionId
,
service
.
model
.
MissionState
.
返回电梯
,
out
string
msg
);
MissionManager
.
SetMissionState
(
JobParam
.
GetMissionInfo
().
missionId
,
service
.
model
.
MissionState
.
返回电梯
,
out
string
msg
);
AllocateTask
(
agv
,
JobParam
.
SrcNode
.
Name
);
// AllocateTask(agv, JobParam.SrcNode.Name);
ToLift
(
agv
,
JobParam
.
SrcNode
.
Name
);
JobRunStep
.
Msg
=
runInfo
;
JobRunStep
.
Msg
=
runInfo
;
}
}
}
}
...
...
DeviceLibrary/manager/DataBufferManager.cs
查看文件 @
d44650e
using
DeviceLibrary.service.model
;
using
Common
;
using
DeviceLibrary.service.model
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
...
@@ -41,6 +42,7 @@ namespace DeviceLibrary.manager
...
@@ -41,6 +42,7 @@ namespace DeviceLibrary.manager
DetachShelf
=
false
;
DetachShelf
=
false
;
SteelAgvInStorage
=
false
;
SteelAgvInStorage
=
false
;
SteelTarget
=
""
;
SteelTarget
=
""
;
LogUtil
.
info
(
"重置钢网信息"
);
}
}
}
}
}
}
DeviceLibrary/service/Service.cs
查看文件 @
d44650e
...
@@ -233,7 +233,7 @@ namespace DeviceLibrary
...
@@ -233,7 +233,7 @@ namespace DeviceLibrary
if
(!
DataBufferManager
.
SteelAgvInStorage
)
if
(!
DataBufferManager
.
SteelAgvInStorage
)
{
{
stealResult
.
Msg
=
$
"NG,3D"
;
stealResult
.
Msg
=
$
"NG,3D"
;
Log
.
Info
(
$
"收到立库调用Storage接口:【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
Log
.
Info
(
$
"收到立库调用Storage
1
接口:【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
return
stealResult
;
return
stealResult
;
}
}
//DI_On/DI_Off 信号亮DI_On,没信号DI_Off
//DI_On/DI_Off 信号亮DI_On,没信号DI_Off
...
@@ -261,7 +261,7 @@ namespace DeviceLibrary
...
@@ -261,7 +261,7 @@ namespace DeviceLibrary
{
{
stealResult
.
Msg
=
$
"NG,3D,not found place={Place}"
;
stealResult
.
Msg
=
$
"NG,3D,not found place={Place}"
;
}
}
Log
.
Info
(
$
"收到立库调用Storage接口:【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
Log
.
Info
(
$
"收到立库调用Storage
2
接口:【Place={Place}】【{JsonHelper.SerializeObject(stealResult)}】"
);
return
stealResult
;
return
stealResult
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论