预任务执行,Agv及电梯任务根据配置执行

This commit is contained in:
yang.lee
2023-11-09 10:03:30 +08:00
parent 68efc42e31
commit e9259ce8ad
5 changed files with 45 additions and 29 deletions

View File

@@ -20,5 +20,6 @@
/// </summary>
public string WriteTagUrl { get; set; }
public string Environment { get; set; }
}
}

View File

@@ -50,5 +50,11 @@
/// AGV心跳
/// </summary>
public const string AGVKeepalive = "AGVKeepalive";
/// <summary>
/// 运行环境名称
/// </summary>
public const string EnvironmentName = "TIANYI";
}
}

View File

@@ -9,6 +9,10 @@
<Configurations>Debug;Release;tianyi</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>$(DefineConstants);production</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\BasicData\Tnb.BasicData.Interfaces\Tnb.BasicData.Interfaces.csproj" />
<ProjectReference Include="..\..\EquipMgr\Tnb.EquipMgr.Entities\Tnb.EquipMgr.Entities.csproj" />

View File

@@ -382,6 +382,8 @@ namespace Tnb.WarehouseMgr
await db.Ado.CommitTranAsync();
if(_eleCtlCfg.Environment == ElevatorConsts.EnvironmentName)
{
//呼梯操作
//获取目标库位为电梯库位的任务
List<(string endlocation_code, string device_id, string id, string? start_floor)> endLocCodes = disTasks
@@ -415,6 +417,8 @@ namespace Tnb.WarehouseMgr
await AgvDispatch(agvTasks, agvCts.Token);
}
}
#
}
}
catch (Exception ex) when (ex is HttpRequestException hReqEx)
{

View File

@@ -3,5 +3,6 @@
"token": "780BE4144636CF47DDF3920B0F1D069B",
"GetTagListUrl": "http://192.168.11.110:9100/Dev/GetTagList",
"GetTagUrl": "http://192.168.11.110:9100/Dev/GetTag",
"WriteTagUrl": "http://192.168.11.110:9100/Dev/writeTag"
"WriteTagUrl": "http://192.168.11.110:9100/Dev/writeTag",
"Environment": ""
}