参数地址的更改

This commit is contained in:
2025-06-16 18:17:28 +08:00
parent 0857eb9f59
commit 3150d73fcf
4 changed files with 6 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ namespace CapMachine.Wpf.Services
#region
////三电 Sample
TagManger.AddTag(new Tag<short>("转速", "转速[rpm]", "Speed", "程序", "VW15000", 100, 0, 1, "rpm", new ShortTagValue(), true) { DecimalPoint = 0,SVAddress= "VW14002" });
TagManger.AddTag(new Tag<short>("转速", "转速[rpm]", "Speed", "程序", "VW14100", 100, 0, 1, "rpm", new ShortTagValue(), true) { DecimalPoint = 0,SVAddress= "VW14002" });
TagManger.AddTag(new Tag<short>("排气压力", "排气压力[BarA]", "ExPress", "程序", "VW15002", 100, 0, 100, "BarA", new ShortTagValue(), true) { DecimalPoint = 2 });
TagManger.AddTag(new Tag<short>("吸气压力", "吸气压力[BarA]", "InhPress", "程序", "VW15004", 100, 0, 100, "BarA", new ShortTagValue(), true) { DecimalPoint = 2 });
TagManger.AddTag(new Tag<short>("吸气温度", "吸气温度[℃]", "InhTemp", "程序", "VW15006", 100, 0, 10, "℃", new ShortTagValue(), true) { DecimalPoint = 1 });
@@ -1197,6 +1197,7 @@ namespace CapMachine.Wpf.Services
default:
break;
}
}
else if (itemTag.Value.NameNoUnit == "通讯Cmp母线电压")
{
@@ -1468,7 +1469,7 @@ namespace CapMachine.Wpf.Services
LinkState = true;
//在运行时更新速度的SV的值
if (itemTag.Value.Name == "转速[rpm]" && SysRunService.MachineRunState1.RunStateMsg == "运行")
if (itemTag.Value.Name == "转速[rpm]")//&& SysRunService.MachineRunState1.RunStateMsg == "运行"
{
switch (ConfigService.CanLinRunStateModel.CurSysSelectedCanLin)
{