更改现场提出的小需求
This commit is contained in:
@@ -142,7 +142,7 @@ namespace CapMachine.Wpf
|
||||
containerRegistry.RegisterSingleton<MachineRtDataService>();
|
||||
containerRegistry.RegisterSingleton<DataRecordService>();
|
||||
containerRegistry.RegisterSingleton<HighSpeedDataService>();
|
||||
//containerRegistry.RegisterSingleton<PPCService>();
|
||||
containerRegistry.RegisterSingleton<PPCService>();
|
||||
containerRegistry.RegisterSingleton<SysRunService>();
|
||||
|
||||
containerRegistry.RegisterSingleton<ComActionService>();
|
||||
@@ -292,7 +292,7 @@ namespace CapMachine.Wpf
|
||||
var appVersionService8 = ContainerLocator.Container.Resolve<CanDriveService>();
|
||||
var appVersionService9 = ContainerLocator.Container.Resolve<DataRecordService>();
|
||||
var appVersionService10 = ContainerLocator.Container.Resolve<HighSpeedDataService>();
|
||||
//var appVersionService11 = ContainerLocator.Container.Resolve<PPCService>();
|
||||
var appVersionService11 = ContainerLocator.Container.Resolve<PPCService>();
|
||||
var appVersionService15 = ContainerLocator.Container.Resolve<ComActionService>();
|
||||
var appVersionService16 = ContainerLocator.Container.Resolve<ProRuntimeService>();
|
||||
|
||||
|
||||
@@ -1679,634 +1679,6 @@ namespace CapMachine.Wpf.Services
|
||||
#endregion
|
||||
|
||||
|
||||
#region SongZhi
|
||||
|
||||
////【SongZhi】
|
||||
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "转速[rpm]",//名称带单位
|
||||
// NameNoUnit = "转速",//无单位名称
|
||||
// EnName = "Speed",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "rpm",
|
||||
// PVAddress = "VW100",//地址信息
|
||||
// SVAddress = "VW200",
|
||||
// MVAddress = "VW242",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW240",
|
||||
// Precision = 1,
|
||||
// DecimalPoint = 0,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "排气压力[MpaA]",//名称带单位
|
||||
// NameNoUnit = "排气压力",//无单位名称
|
||||
// EnName = "ExPress",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "MpaA",
|
||||
// PVAddress = "VW102",//地址信息
|
||||
// SVAddress = "VW202",
|
||||
// MVAddress = "VW242",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW240",
|
||||
// Precision = 1000,
|
||||
// DecimalPoint = 3,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "吸气压力[MpaA]",//名称带单位
|
||||
// NameNoUnit = "吸气压力",//无单位名称
|
||||
// EnName = "InhPress",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "MpaA",
|
||||
// PVAddress = "VW104",//地址信息
|
||||
// SVAddress = "VW204",
|
||||
// MVAddress = "VW246",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW244",
|
||||
// Precision = 1000,
|
||||
// DecimalPoint = 3,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "吸气温度[℃]",//名称带单位
|
||||
// NameNoUnit = "吸气温度",//无单位名称
|
||||
// EnName = "InhTemp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW106",//地址信息
|
||||
// SVAddress = "VW206",
|
||||
// MVAddress = "VW250",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW248",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "冷凝器出口水温[℃]",//名称带单位 COND1水温
|
||||
// NameNoUnit = "冷凝器出口水温",//无单位名称
|
||||
// EnName = "Cond1Temp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW108",//地址信息
|
||||
// SVAddress = "VW208",
|
||||
// MVAddress = "VW254",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW252",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "吸气混合器温度[℃]",//名称带单位 OS2温度
|
||||
// NameNoUnit = "吸气混合器温度",//无单位名称 OS2温度
|
||||
// EnName = "OS2Temp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW110",//地址信息
|
||||
// SVAddress = "VW210",
|
||||
// MVAddress = "VW258",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW256",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "HV_V[V]",//名称带单位
|
||||
// NameNoUnit = "HV_V",//无单位名称
|
||||
// EnName = "HV_V",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "V",
|
||||
// PVAddress = "VW112",//地址信息
|
||||
// SVAddress = "VW212",
|
||||
// MVAddress = "VW262",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "VW260",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "HV_A[A]",//名称带单位
|
||||
// NameNoUnit = "HV_A",//无单位名称
|
||||
// EnName = "HV_A",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "A",
|
||||
// PVAddress = "VW114",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 100,
|
||||
// DecimalPoint = 2,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "HV_W[W]",//名称带单位
|
||||
// NameNoUnit = "HV_W",//无单位名称
|
||||
// EnName = "HV_W",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "W",
|
||||
// PVAddress = "VW116",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 1,
|
||||
// DecimalPoint = 0,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "LV_V[V]",//名称带单位
|
||||
// NameNoUnit = "LV_V",//无单位名称
|
||||
// EnName = "LV_V",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "V",
|
||||
// PVAddress = "VW118",//地址信息
|
||||
// SVAddress = "VW214",
|
||||
// MVAddress = "",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "LV_A[A]",//名称带单位
|
||||
// NameNoUnit = "LV_A",//无单位名称
|
||||
// EnName = "LV_A",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "A",
|
||||
// PVAddress = "VW120",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 100,
|
||||
// DecimalPoint = 2,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "试验箱温度[℃]",//名称带单位
|
||||
// NameNoUnit = "试验箱温度",//无单位名称
|
||||
// EnName = "EnvTemp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW122",//地址信息
|
||||
// SVAddress = "VW216",
|
||||
// MVAddress = "",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "试验箱湿度[%]",//名称带单位
|
||||
// NameNoUnit = "试验箱湿度",//无单位名称
|
||||
// EnName = "EnvRH",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "%",
|
||||
// PVAddress = "VW124",//地址信息
|
||||
// SVAddress = "VW218",
|
||||
// MVAddress = "",
|
||||
// IsMeter = true,
|
||||
// AutoHandSwitchAddress = "",
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "排气温度[℃]",//名称带单位
|
||||
// NameNoUnit = "排气温度",//无单位名称
|
||||
// EnName = "ExTemp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW126",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "膨胀阀前温度[℃]",//名称带单位
|
||||
// NameNoUnit = "膨胀阀前温度",//无单位名称
|
||||
// EnName = "TxvFrTemp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW128",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "膨胀阀前压力[MpaA]",//名称带单位
|
||||
// NameNoUnit = "膨胀阀前压力",//无单位名称
|
||||
// EnName = "TxvFrPress",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "MpaA",
|
||||
// PVAddress = "VW130",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 1000,
|
||||
// DecimalPoint = 3,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "冷凝器进口温度[℃]",//名称带单位
|
||||
// NameNoUnit = "冷凝器进口温度",//无单位名称
|
||||
// EnName = "CondInTemp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW132",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "冷凝器进口压力[MpaA]",//名称带单位
|
||||
// NameNoUnit = "冷凝器进口压力",//无单位名称
|
||||
// EnName = "CondInPress",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "MpaA",
|
||||
// PVAddress = "VW134",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 1000,
|
||||
// DecimalPoint = 3,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "水箱进水温度[℃]",//名称带单位
|
||||
// NameNoUnit = "水箱进水温度",//无单位名称
|
||||
// EnName = "WaterTankInTemp",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// Unit = "℃",
|
||||
// MaxValue = 100,
|
||||
// PVAddress = "VW136",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "水加热温度H1[℃]",//名称带单位
|
||||
// NameNoUnit = "水加热温度H1",//无单位名称
|
||||
// EnName = "WaterHeatTempH1",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW138",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "压缩机表面温度1[℃]",//名称带单位
|
||||
// NameNoUnit = "压缩机表面温度1",//无单位名称
|
||||
// EnName = "CapSurfTemp1",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW140",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "压缩机表面温度2[℃]",//名称带单位
|
||||
// NameNoUnit = "压缩机表面温度2",//无单位名称
|
||||
// EnName = "CapSurfTemp2",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW142",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "压缩机表面温度3[℃]",//名称带单位
|
||||
// NameNoUnit = "压缩机表面温度3",//无单位名称
|
||||
// EnName = "CapSurfTemp3",//英文名称
|
||||
// Group = "程序",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW144",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "通讯母线电压[V]",//名称带单位
|
||||
// NameNoUnit = "通讯母线电压",//无单位名称
|
||||
// EnName = "ComCapBusVol",//英文名称
|
||||
// Group = "CANLIN",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "V",
|
||||
// PVAddress = "VW146",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "通讯母线电流[A]",//名称带单位
|
||||
// NameNoUnit = "通讯母线电流",//无单位名称
|
||||
// EnName = "ComCapBusCur",//英文名称
|
||||
// Group = "CANLIN",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "A",
|
||||
// PVAddress = "VW148",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 100,
|
||||
// DecimalPoint = 2,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "通讯相电流[A]",//名称带单位
|
||||
// NameNoUnit = "通讯相电流",//无单位名称
|
||||
// EnName = "ComCapPhCur",//英文名称
|
||||
// Group = "CANLIN",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "A",
|
||||
// PVAddress = "VW150",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 100,
|
||||
// DecimalPoint = 2,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "通讯功率[W]",//名称带单位
|
||||
// NameNoUnit = "通讯功率",//无单位名称
|
||||
// EnName = "ComCapPw",//英文名称
|
||||
// Group = "CANLIN",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "W",
|
||||
// PVAddress = "VW152",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 1000,
|
||||
// DecimalPoint = 2,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "通讯芯片温度[℃]",//名称带单位
|
||||
// NameNoUnit = "通讯芯片温度",//无单位名称
|
||||
// EnName = "ComCapChipTemp",//英文名称
|
||||
// Group = "CANLIN",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "℃",
|
||||
// PVAddress = "VW154",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "过冷度[K]",//名称带单位
|
||||
// NameNoUnit = "过冷度",//无单位名称
|
||||
// EnName = "Subcooling",//英文名称
|
||||
// Group = "计算",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "K",
|
||||
// PVAddress = "",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
//TagManger.AddTag(new Tag<short>(new ShortTagValue())
|
||||
//{
|
||||
// Name = "过热度[K]",//名称带单位
|
||||
// NameNoUnit = "过热度",//无单位名称
|
||||
// EnName = "Superheat",//英文名称
|
||||
// Group = "计算",//分组
|
||||
// MinValue = 0,
|
||||
// MaxValue = 100,
|
||||
// Unit = "K",
|
||||
// PVAddress = "",//地址信息
|
||||
// SVAddress = "",
|
||||
// MVAddress = "",
|
||||
// IsMeter = false,
|
||||
// Precision = 10,
|
||||
// DecimalPoint = 1,
|
||||
// Samp = 1,
|
||||
// ValueType = typeof(short),
|
||||
// Index = "",
|
||||
//});
|
||||
|
||||
//#endregion
|
||||
|
||||
//TagManger.AddTag(new Tag<short>("OCR", "OCR[%]", "OCR", "程序", "VW15014", 100, 0, 10, "%", new ShortTagValue(), true) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("HV[V]", "HV[V]", "HV", "程序", "VW15016", 100, 0, 10, "V", new ShortTagValue(), true) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("HV[A]", "HV[A]", "HVCur", "程序", "VW15018", 100, 0, 1, "A", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("HV[W]", "HV[W]", "HVPw", "程序", "VW15020", 100, 0, 1, "W", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("LV[V]", "LV[V]", "LV", "程序", "VW15022", 100, 0, 10, "V", new ShortTagValue(), true) { DecimalPoint = 1 });
|
||||
////TagManger.AddTag(new Tag<short>("LV[A]", "LV[A]", "LVCur", "程序", "VW15024", 100, 0, 1, "A", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("LV[A]", "LV[A]", "LVCur", "程序", "VW15024", 100, 0, 100, "A", new ShortTagValue(), false) { DecimalPoint = 2 });
|
||||
//TagManger.AddTag(new Tag<short>("环境温度", "环境温度[℃]", "EnvTemp", "程序", "VW15026", 100, 0, 10, "℃", new ShortTagValue(), true) { DecimalPoint = 1 });
|
||||
////TagManger.AddTag(new Tag<short>("环境湿度", "环境湿度[%]", "EnvRH", "程序", "VW15028", 100, 0, 10, "%", new ShortTagValue(), true) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("环境湿度", "环境湿度[%]", "EnvRH", "程序", "VW15028", 100, 0, 1, "%", new ShortTagValue(), true) { DecimalPoint = 0 });
|
||||
//TagManger.AddTag(new Tag<short>("OS1温度", "OS1温度[℃]", "OS1Temp", "程序", "VW15030", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("OS2温度", "OS2温度[℃]", "OS2Temp", "程序", "VW15032", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("COND2温度", "COND2温度[℃]", "Cond2Temp", "程序", "VW15034", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("EVAP出口温度", "EVAP出口温度[℃]", "EVAPExpTemp", "程序", "VW15036", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
////TagManger.AddTag(new Tag<short>("冷媒流量", "冷媒流量[L/min]", "VRV", "程序", "VW15038", 100, 0, 1, "L/min", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("冷媒流量", "冷媒流量[L/min]", "VRV", "程序", "VW15038", 100, 0, 10, "L/min", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("润滑油流量", "润滑油流量[L/min]", "LubeFlow", "程序", "VW15040", 100, 0, 1, "L/min", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("排气温度", "排气温度[℃]", "ExTemp", "程序", "VW15042", 100, 0, 10, "℃", new ShortTagValue(), true) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("膨胀阀前压力", "膨胀阀前压力[MpaA]", "TxvFrPress", "程序", "VW15044", 100, 0, 100, "MpaA", new ShortTagValue(), false) { DecimalPoint = 2 });
|
||||
//TagManger.AddTag(new Tag<short>("膨胀阀前温度", "膨胀阀前温度[℃]", "TxvFrTemp", "程序", "VW15046", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("EVAP出口压力", "EVAP出口压力[MpaA]", "EVAPExpPress", "程序", "VW15048", 100, 0, 100, "MpaA", new ShortTagValue(), false) { DecimalPoint = 2 });
|
||||
//TagManger.AddTag(new Tag<short>("腔内压力", "腔内压力[MpaA]", "IntrplPress", "程序", "VW15050", 100, 0, 100, "MpaA", new ShortTagValue(), false) { DecimalPoint = 2 });
|
||||
//TagManger.AddTag(new Tag<short>("压缩机表面温度", "压缩机表面温度[℃]", "CapSurfTemp", "程序", "VW15052", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("PTC流量", "PTC流量[L/min]", "PTCFlow", "程序", "VW15054", 100, 0, 1, "L/min", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("PTC入水温度", "PTC入水温度[℃]", "PTCEntTemp", "程序", "VW15056", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("PTC出水温度", "PTC出水温度[℃]", "PTCExpTemp", "程序", "VW15058", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯Cmp母线电流", "通讯Cmp母线电流[A]", "ComCapBusCur", "程序", "VW15060", 100, 0, 1, "A", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯Cmp母线电压", "通讯Cmp母线电压[V]", "ComCapBusVol", "程序", "VW15062", 100, 0, 10, "V", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯Cmp逆变器温度", "通讯Cmp逆变器温度[℃]", "ComCapInvTemp", "程序", "VW15064", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯Cmp相电流", "通讯Cmp相电流[A]", "ComCapPhCur", "程序", "VW15066", 100, 0, 1, "A", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯Cmp功率", "通讯Cmp功率[W]", "ComCapPw", "程序", "VW15068", 100, 0, 1, "W", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯Cmp芯片温度", "通讯Cmp芯片温度[℃]", "ComCapChipTemp", "程序", "VW15070", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯PTC入水温度", "通讯PTC入水温度[℃]", "ComPTCEntTemp", "程序", "VW15072", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯PTC出水温度", "通讯PTC出水温度[℃]", "ComPTCExpTemp", "程序", "VW15074", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯PTC峰值电流", "通讯PTC峰值电流[A]", "ComPTCPeakCur", "程序", "VW15076", 100, 0, 1, "A", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯PTC母线电流", "通讯PTC母线电流[A]", "ComPTCBusCur", "程序", "VW15078", 100, 0, 1, "A", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯PTC膜温", "通讯PTC膜温[℃]", "ComPTCFlmTemp", "程序", "VW15080", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
//TagManger.AddTag(new Tag<short>("通讯PTC模块温度", "通讯PTC模块温度[℃]", "ComPTCMdTemp", "程序", "VW15082", 100, 0, 10, "℃", new ShortTagValue(), false) { DecimalPoint = 1 });
|
||||
|
||||
#endregion
|
||||
|
||||
ListHandSwitchData = new List<HandSwitchData>()
|
||||
{
|
||||
new HandSwitchData(){Name="自动",ActionAddress="M0.0",StateAddress="M0.0",StateAddressType=HandSwitchStateType.Bool },
|
||||
|
||||
@@ -74,11 +74,11 @@ namespace CapMachine.Wpf.Services
|
||||
//TxvFrTempTag = TagManager.DicTags.GetValueOrDefault("膨胀阀前温度[℃]")!;
|
||||
//TxvFrPressTag = TagManager.DicTags.GetValueOrDefault("膨胀阀前压力[BarA]")!;
|
||||
|
||||
if (TagManager.TryGetShortTagByName("膨胀阀前温度[℃]", out ShortValueTag? TxvFrTempShortTag))
|
||||
if (TagManager.TryGetShortTagByName("阀前温度T3[℃]", out ShortValueTag? TxvFrTempShortTag))
|
||||
{
|
||||
TxvFrTempTag = TxvFrTempShortTag!;
|
||||
}
|
||||
if (TagManager.TryGetShortTagByName("膨胀阀前压力[BarA]", out ShortValueTag? TxvFrPressShortTag))
|
||||
if (TagManager.TryGetShortTagByName("阀前压力P3[BarA]", out ShortValueTag? TxvFrPressShortTag))
|
||||
{
|
||||
TxvFrPressTag = TxvFrPressShortTag!;
|
||||
}
|
||||
@@ -89,11 +89,11 @@ namespace CapMachine.Wpf.Services
|
||||
//Superheat = TagManager.DicTags.GetValueOrDefault("过热度[K]");
|
||||
//Subcool = TagManager.DicTags.GetValueOrDefault("过冷度[K]");
|
||||
|
||||
if (TagManager.TryGetShortTagByName("过热度[K]", out ShortValueTag? SuperheatShortTag))
|
||||
if (TagManager.TryGetCalcTagByName("过热度[K]", out CalcTag? SuperheatShortTag))
|
||||
{
|
||||
Superheat = SuperheatShortTag!;
|
||||
}
|
||||
if (TagManager.TryGetShortTagByName("过冷度[K]", out ShortValueTag? SubcoolShortTag))
|
||||
if (TagManager.TryGetCalcTagByName("过冷度[K]", out CalcTag? SubcoolShortTag))
|
||||
{
|
||||
Subcool = SubcoolShortTag!;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ namespace CapMachine.Wpf.Services
|
||||
SuperHeatCoolConfig.FluidsPath = ConfigHelper.GetValue("FluidsPath");
|
||||
SuperHeatCoolConfig.Cryogen = ConfigHelper.GetValue("Cryogen");
|
||||
|
||||
//RtScanDeviceStart();
|
||||
RtScanDeviceStart();
|
||||
}
|
||||
|
||||
|
||||
@@ -142,12 +142,12 @@ namespace CapMachine.Wpf.Services
|
||||
/// <summary>
|
||||
/// 过热度
|
||||
/// </summary>
|
||||
public ShortValueTag Superheat { get; set; }
|
||||
public CalcTag Superheat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过冷度
|
||||
/// </summary>
|
||||
public ShortValueTag Subcool { get; set; }
|
||||
public CalcTag Subcool { get; set; }
|
||||
|
||||
|
||||
///// <summary>
|
||||
@@ -264,13 +264,13 @@ namespace CapMachine.Wpf.Services
|
||||
IRefProp64.SATPdll(ref p, x, ref kph, ref te, ref Dl, ref Dv, xliq, xvap, ref iErr, ref herr, ref herrLen);
|
||||
|
||||
if (iErr == 0)
|
||||
Superheat.PVModel.EngValue = InhTempTag.PVModel.EngValue - (te - 273.15);
|
||||
Superheat.PVModel.EngValue = Math.Round(InhTempTag.PVModel.EngValue - (te - 273.15), 3) ;
|
||||
//textBox5.Text = String.Format("{0:n4}", Convert.ToDouble(textBox1.Text) - (te - 273.15));//textBox1 Comp.吸气温度(℃)
|
||||
else
|
||||
Superheat.PVModel.EngValue = 0;
|
||||
IRefProp64.SATPdll(ref p1, x, ref kph, ref te1, ref Dl, ref Dv, xliq, xvap, ref iErr, ref herr, ref herrLen);
|
||||
if (iErr == 0)
|
||||
Subcool.PVModel.EngValue = TxvFrTempTag.PVModel.EngValue - (te1 - 273.15);//textBox4 Evap.膨胀阀前温度(℃)
|
||||
Subcool.PVModel.EngValue = Math.Round(TxvFrTempTag.PVModel.EngValue - (te1 - 273.15), 3);//textBox4 Evap.膨胀阀前温度(℃)
|
||||
//GuoLengDu = (te1 - 273.15) - ListKRLogCellValue.Find(a => a.Name == "膨胀阀前温度").Value;//textBox4 Evap.膨胀阀前温度(℃)
|
||||
//textBox6.Text = String.Format("{0:n4}", Convert.ToDouble(textBox4.Text) - (te1 - 273.15));//textBox4 Evap.膨胀阀前温度(℃)
|
||||
else
|
||||
|
||||
@@ -73,6 +73,11 @@ namespace CapMachine.Wpf.ViewModels
|
||||
new CbxItems(){ Key="功率限制",Text="功率限制"},
|
||||
new CbxItems(){ Key="使能",Text="使能"},
|
||||
new CbxItems(){ Key="Anti_Sleep",Text="Anti_Sleep"},
|
||||
|
||||
new CbxItems(){ Key="PTC使能",Text="PTC使能"},
|
||||
new CbxItems(){ Key="PTC功率",Text="PTC功率"},
|
||||
new CbxItems(){ Key="PTC水流量",Text="PTC水流量"},
|
||||
new CbxItems(){ Key="PTC水温",Text="PTC水温"},
|
||||
};
|
||||
|
||||
ReadNameCbxItems = new ObservableCollection<CbxItems>()
|
||||
|
||||
Reference in New Issue
Block a user