增加干度计算的数据
This commit is contained in:
@@ -6,6 +6,7 @@ using CapMachine.Wpf.Models;
|
||||
using CapMachine.Wpf.Models.ProModelPars;
|
||||
using CapMachine.Wpf.Models.Tag;
|
||||
using CapMachine.Wpf.Models.Tag.Cell;
|
||||
using CapMachine.Wpf.PPCalculation;
|
||||
using CapMachine.Wpf.PrismEvent;
|
||||
using HslCommunication;
|
||||
using HslCommunication.Profinet.Melsec;
|
||||
@@ -1356,7 +1357,7 @@ namespace CapMachine.Wpf.Services
|
||||
// 通讯相电流 压缩机
|
||||
TagManger.AddTag(new CapTag()
|
||||
{
|
||||
Id =47,
|
||||
Id = 47,
|
||||
Name = "通讯相电流[A]",
|
||||
NameNoUnit = "通讯相电流",
|
||||
EnName = "ComCapPhCur",
|
||||
@@ -2540,7 +2541,10 @@ namespace CapMachine.Wpf.Services
|
||||
DiagnosticsTime.Reset();
|
||||
DiagnosticsTime.Start();
|
||||
|
||||
await Task.Delay(200);
|
||||
await Task.Delay(20);
|
||||
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
@@ -2644,8 +2648,8 @@ namespace CapMachine.Wpf.Services
|
||||
{
|
||||
foreach (var itemBlockReadTag in TagManger.DicTags)
|
||||
{
|
||||
//需要从PLC读取的标签才算
|
||||
if (itemBlockReadTag.Value.RWInfo == RWInfo.PLCRead && TagManger.TryGetSVModel(itemBlockReadTag.Key, out MeterValueAttrCell sVModel))
|
||||
//需要控制的标签才算 才有SV
|
||||
if (itemBlockReadTag.Value.RWInfo == RWInfo.Control && TagManger.TryGetSVModel(itemBlockReadTag.Key, out MeterValueAttrCell sVModel))
|
||||
{
|
||||
//地址为空的话则下一个
|
||||
if (string.IsNullOrEmpty(sVModel!.Address)) continue;
|
||||
|
||||
Reference in New Issue
Block a user