配置修改

This commit is contained in:
2024-06-25 11:39:42 +08:00
parent 1b078cc0cd
commit b9666d03ea
2 changed files with 35 additions and 35 deletions

View File

@@ -1593,26 +1593,26 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
private async Task<bool> Floor2UpDownMachinecode_SetTag(string tag, string value) private async Task<bool> Floor2UpDownMachinecode_SetTag(string tag, string value)
{ {
//string DevName = "东面提升机输送线"; string DevName = "东面提升机输送线";
//Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase) Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase)
//{ {
// ["DevName"] = DevName, ["DevName"] = DevName,
// ["token"] = _eleCtlCfg.token, ["token"] = _eleCtlCfg.token,
// ["TagName"] = tag, ["TagName"] = tag,
// ["Value"] = value, ["Value"] = value,
//}; };
//string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand); string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand);
//return result.Contains("Ok"); return result.Contains("Ok");
//测试 //测试
string DevName = "东面提升机输送线"; //string DevName = "东面提升机输送线";
JObject valueJson = new JObject(); //JObject valueJson = new JObject();
valueJson["Value"] = value; //valueJson["Value"] = value;
_redisData.SetHash(DevName, tag, valueJson.ToString()); //_redisData.SetHash(DevName, tag, valueJson.ToString());
return true; //return true;
} }
#endregion #endregion
@@ -1636,13 +1636,13 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
//YCLWXDPJInstocktimer = new Timer(YCLWXDPJInstock, null, TimeSpan.Zero, TimeSpan.FromSeconds(100000)); //YCLWXDPJInstocktimer = new Timer(YCLWXDPJInstock, null, TimeSpan.Zero, TimeSpan.FromSeconds(100000));
// 二楼上升降机 // 二楼上升降机
Floor2UpMachinecodetimer = new Timer(Floor2UpMachinecode, null, TimeSpan.Zero, TimeSpan.FromSeconds(1)); Floor2UpMachinecodetimer = new Timer(Floor2UpMachinecode, null, TimeSpan.Zero, TimeSpan.FromSeconds(20));
// 二楼料架配送 // 二楼料架配送
Floor2timer送空托到上升降区 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(10)); Floor2timer送空托到上升降区 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(30));
Floor2timer送满托到下升降区 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(10)); Floor2timer送满托到下升降区 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(30));
Floor2timer移走上升降区未生成预任务且满托的料架 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(10)); Floor2timer移走上升降区未生成预任务且满托的料架 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(30));
Floor2timer移走下升降区未生成预任务且空托的料架 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(10)); Floor2timer移走下升降区未生成预任务且空托的料架 = new Timer(, null, TimeSpan.Zero, TimeSpan.FromSeconds(30));
return Task.CompletedTask; return Task.CompletedTask;
} }

View File

@@ -994,26 +994,26 @@ namespace Tnb.WarehouseMgr
private async Task<bool> Floor2UpDownMachinecode_SetTag(string tag, string value) private async Task<bool> Floor2UpDownMachinecode_SetTag(string tag, string value)
{ {
//string DevName = "东面提升机输送线"; string DevName = "东面提升机输送线";
//Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase) Dictionary<string, string> dicCommand = new(StringComparer.OrdinalIgnoreCase)
//{ {
// ["DevName"] = DevName, ["DevName"] = DevName,
// ["token"] = _eleCtlCfg.token, ["token"] = _eleCtlCfg.token,
// ["TagName"] = tag, ["TagName"] = tag,
// ["Value"] = value, ["Value"] = value,
//}; };
//string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand); string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand);
//return result.Contains("Ok"); return result.Contains("Ok");
// 测试 // 测试
string DevName = "东面提升机输送线"; //string DevName = "东面提升机输送线";
JObject valueJson = new JObject(); //JObject valueJson = new JObject();
valueJson["Value"] = value; //valueJson["Value"] = value;
_redisData.SetHash(DevName, tag, valueJson.ToString()); //_redisData.SetHash(DevName, tag, valueJson.ToString());
return true; //return true;
} }