From 8c46121fcef97be897b60549ac9dc4ee3cf22ec0 Mon Sep 17 00:00:00 2001 From: electron <937431539@qq.com> Date: Wed, 6 Dec 2023 01:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=B4=E6=B4=97=E5=8E=8B=E5=8A=9B=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=A4=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KorbeRTR/FormMainWindow.cs | 158 +++++++++++++++++------------------ KorbeRTR/Models/OmronData.cs | 24 +++--- 2 files changed, 91 insertions(+), 91 deletions(-) diff --git a/KorbeRTR/FormMainWindow.cs b/KorbeRTR/FormMainWindow.cs index 67d987b..805b9e4 100644 --- a/KorbeRTR/FormMainWindow.cs +++ b/KorbeRTR/FormMainWindow.cs @@ -2142,131 +2142,131 @@ namespace KorbeRTR #region 压力值 int row = 1; - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No1水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No1水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No1水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No1水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No4水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No4水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No4水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No4水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No5水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No5水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No5水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No5水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No7水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No7水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No7水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No7水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No8水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No8水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No8水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No8水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No10水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No10水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No10水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No10水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No11水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No11水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No11水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 2).Text = OmronPLC.SXYL水洗压力.No11水洗压力.压力值[1].Value.ToString("F2"); row = 1; - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No13水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No13水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No13水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No13水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No14水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No14水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No14水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No14水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No15水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No15水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No15水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No15水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No16水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No16水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No16水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No16水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No17水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No17水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No17水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No17水洗压力.压力值[1].Value.ToString("F2"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No18水洗压力.压力值[0].Value.ToString("F1"); - grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No18水洗压力.压力值[1].Value.ToString("F1"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No18水洗压力.压力值[0].Value.ToString("F2"); + grid.Cell(row++, 6).Text = OmronPLC.SXYL水洗压力.No18水洗压力.压力值[1].Value.ToString("F2"); #endregion #region 上限 row = 1; - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No1水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No1水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No1水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No1水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No4水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No4水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No4水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No4水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No5水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No5水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No5水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No5水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No7水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No7水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No7水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No7水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No8水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No8水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No8水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No8水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No10水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No10水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No10水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No10水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No11水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No11水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No11水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 3).Text = OmronPLC.SXYL水洗压力.No11水洗压力.上限[1].Value.ToString("F2"); row = 1; - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No13水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No13水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No13水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No13水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No14水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No14水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No14水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No14水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No15水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No15水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No15水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No15水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No16水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No16水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No16水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No16水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No17水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No17水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No17水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No17水洗压力.上限[1].Value.ToString("F2"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No18水洗压力.上限[0].Value.ToString("F1"); - grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No18水洗压力.上限[1].Value.ToString("F1"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No18水洗压力.上限[0].Value.ToString("F2"); + grid.Cell(row++, 7).Text = OmronPLC.SXYL水洗压力.No18水洗压力.上限[1].Value.ToString("F2"); #endregion #region 下限 row = 1; - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No1水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No1水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No1水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No1水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No4水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No4水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No4水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No4水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No5水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No5水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No5水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No5水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No7水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No7水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No7水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No7水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No8水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No8水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No8水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No8水洗压力.下限[1].Value.ToString("F2"); + + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No10水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No10水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No10水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No10水洗压力.下限[1].Value.ToString("F1"); - - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No11水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No11水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No11水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 4).Text = OmronPLC.SXYL水洗压力.No11水洗压力.下限[1].Value.ToString("F2"); row = 1; - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No13水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No13水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No13水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No13水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No14水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No14水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No14水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No14水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No15水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No15水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No15水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No15水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No16水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No16水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No16水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No16水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No17水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No17水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No17水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No17水洗压力.下限[1].Value.ToString("F2"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No18水洗压力.下限[0].Value.ToString("F1"); - grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No18水洗压力.下限[1].Value.ToString("F1"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No18水洗压力.下限[0].Value.ToString("F2"); + grid.Cell(row++, 8).Text = OmronPLC.SXYL水洗压力.No18水洗压力.下限[1].Value.ToString("F2"); #endregion grid.Range(0, 0, grid.Rows - 1, grid.Cols - 1).ForeColor = Color.Black; diff --git a/KorbeRTR/Models/OmronData.cs b/KorbeRTR/Models/OmronData.cs index 82140af..ba51204 100644 --- a/KorbeRTR/Models/OmronData.cs +++ b/KorbeRTR/Models/OmronData.cs @@ -747,31 +747,31 @@ namespace KorbeRTR.Models public class Type槽水洗压力 { [Variable] - public readonly BCDF1Uint16[] 压力值; + public readonly BCDF2Uint16[] 压力值; [VariableLog] [Variable] - public readonly BCDF1Uint16[] 上限; + public readonly BCDF2Uint16[] 上限; [VariableLog] [Variable] - public readonly BCDF1Uint16[] 下限; + public readonly BCDF2Uint16[] 下限; public Type槽水洗压力(string Name, int BaseAddr) { var group = new VariableGroupAttribute("D", 4700); - 压力值 = new BCDF1Uint16[2]; - 压力值[0] = new BCDF1Uint16("D", BaseAddr+0, string.Format("{0}水洗压力1", Name), group); - 压力值[1] = new BCDF1Uint16("D", BaseAddr+1, string.Format("{0}水洗压力2", Name), group); + 压力值 = new BCDF2Uint16[2]; + 压力值[0] = new BCDF2Uint16("D", BaseAddr+0, string.Format("{0}水洗压力1", Name), group); + 压力值[1] = new BCDF2Uint16("D", BaseAddr+1, string.Format("{0}水洗压力2", Name), group); - 上限 = new BCDF1Uint16[2]; - 上限[0] = new BCDF1Uint16("D", BaseAddr + 30, string.Format("{0}水洗压力1上限", Name), group); - 上限[1] = new BCDF1Uint16("D", BaseAddr + 31, string.Format("{0}水洗压力2上限", Name), group); + 上限 = new BCDF2Uint16[2]; + 上限[0] = new BCDF2Uint16("D", BaseAddr + 30, string.Format("{0}水洗压力1上限", Name), group); + 上限[1] = new BCDF2Uint16("D", BaseAddr + 31, string.Format("{0}水洗压力2上限", Name), group); - 下限 = new BCDF1Uint16[2]; - 下限[0] = new BCDF1Uint16("D", BaseAddr + 60, string.Format("{0}水洗压力1下限", Name), group); - 下限[1] = new BCDF1Uint16("D", BaseAddr + 61, string.Format("{0}水洗压力2下限", Name), group); + 下限 = new BCDF2Uint16[2]; + 下限[0] = new BCDF2Uint16("D", BaseAddr + 60, string.Format("{0}水洗压力1下限", Name), group); + 下限[1] = new BCDF2Uint16("D", BaseAddr + 61, string.Format("{0}水洗压力2下限", Name), group); } } -- Gitee