using DataBlockHelper.Entity.DB1Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataBlockHelper.DBHelpers { public class DB1Helper : DBHelper { public DB1Helper() { bytes = PlcConnect.Instance.Read("DB1.0.0", 1320).Content; } public ForAnaLogIn PR1DBT01 => new ForAnaLogIn(0, bytes); public ForAnaLogIn PR1DBT02 => new ForAnaLogIn(20, bytes); public ForAnaLogIn PR1DBT03 => new ForAnaLogIn(40, bytes); public ForAnaLogIn PR1DBT04 => new ForAnaLogIn(60, bytes); public ForAnaLogIn PR2DBT01 => new ForAnaLogIn(80, bytes); public ForAnaLogIn PR2DBT02 => new ForAnaLogIn(100, bytes); public ForAnaLogIn PR2DBT03 => new ForAnaLogIn(120, bytes); public ForAnaLogIn PR2DBT04 => new ForAnaLogIn(140, bytes); public ForAnaLogIn PR3DBT01 => new ForAnaLogIn(160, bytes); public ForAnaLogIn PR3DBT02 => new ForAnaLogIn(180, bytes); public ForAnaLogIn PR3DBT03 => new ForAnaLogIn(200, bytes); public ForAnaLogIn PR3DBT04 => new ForAnaLogIn(220, bytes); public ForAnaLogIn PR1ASI01 => new ForAnaLogIn(240, bytes); public ForAnaLogIn PR1BSI01 => new ForAnaLogIn(260, bytes); public ForAnaLogIn PR1CSI01 => new ForAnaLogIn(280, bytes); public ForAnaLogIn PR1DSI01 => new ForAnaLogIn(300, bytes); public ForAnaLogIn PR1ESI01 => new ForAnaLogIn(320, bytes); public ForAnaLogIn PR1FSI01 => new ForAnaLogIn(340, bytes); public ForAnaLogIn PR1GSI01 => new ForAnaLogIn(360, bytes); public ForAnaLogIn PR1HSI01 => new ForAnaLogIn(380, bytes); public ForAnaLogIn PR1ISI01 => new ForAnaLogIn(400, bytes); public ForAnaLogIn PR1JSI01 => new ForAnaLogIn(420, bytes); public ForAnaLogIn PR1KSI01 => new ForAnaLogIn(440, bytes); public ForAnaLogIn PR1LSI01 => new ForAnaLogIn(460, bytes); public ForAnaLogIn PR1MSI01 => new ForAnaLogIn(480, bytes); public ForAnaLogIn PR1NSI01 => new ForAnaLogIn(500, bytes); public ForAnaLogIn PR1OSI01 => new ForAnaLogIn(520, bytes); public ForAnaLogIn PR1PCP01 => new ForAnaLogIn(540, bytes); public ForAnaLogIn PR1PCP02 => new ForAnaLogIn(560, bytes); public ForAnaLogIn PR1PCP03 => new ForAnaLogIn(580, bytes); public ForAnaLogIn LS1ASI01 => new ForAnaLogIn(600, bytes); public ForAnaLogIn LS1BSI01 => new ForAnaLogIn(620, bytes); public ForAnaLogIn LS1CSI01 => new ForAnaLogIn(640, bytes); public ForAnaLogIn LS1DSI01 => new ForAnaLogIn(660, bytes); public ForAnaLogIn LS1ESI01 => new ForAnaLogIn(680, bytes); public ForAnaLogIn LS1FSI01 => new ForAnaLogIn(700, bytes); public ForAnaLogIn LS1GSI01 => new ForAnaLogIn(720, bytes); public ForAnaLogIn LS1HSI01 => new ForAnaLogIn(740, bytes); public ForAnaLogIn LS1ISI01 => new ForAnaLogIn(760, bytes); public ForAnaLogIn LS1JSI01 => new ForAnaLogIn(780, bytes); public ForAnaLogIn LS1KSI01 => new ForAnaLogIn(800, bytes); public ForAnaLogIn LS1LSI01 => new ForAnaLogIn(820, bytes); public ForAnaLogIn LS1MSI01 => new ForAnaLogIn(840, bytes); public ForAnaLogIn LS1NSI01 => new ForAnaLogIn(860, bytes); public ForAnaLogIn LS1OSI01 => new ForAnaLogIn(880, bytes); public ForAnaLogIn HR1ASI01 => new ForAnaLogIn(900, bytes); public ForAnaLogIn HR1BSI01 => new ForAnaLogIn(920, bytes); public ForAnaLogIn HR1CSI01 => new ForAnaLogIn(940, bytes); public ForAnaLogIn HR1DSI01 => new ForAnaLogIn(960, bytes); public ForAnaLogIn HR1ESI01 => new ForAnaLogIn(980, bytes); public ForAnaLogIn HR1FSI01 => new ForAnaLogIn(1000, bytes); public ForAnaLogIn HR1GSI01 => new ForAnaLogIn(1020, bytes); public ForAnaLogIn HR1HSI01 => new ForAnaLogIn(1040, bytes); public ForAnaLogIn HR1ISI01 => new ForAnaLogIn(1060, bytes); public ForAnaLogIn HR1JSI01 => new ForAnaLogIn(1080, bytes); public ForAnaLogIn HR1KSI01 => new ForAnaLogIn(1100, bytes); public ForAnaLogIn HR1LSI01 => new ForAnaLogIn(1120, bytes); public ForAnaLogIn HR1MSI01 => new ForAnaLogIn(1140, bytes); public ForAnaLogIn HR1NSI01 => new ForAnaLogIn(1160, bytes); public ForAnaLogIn HR1OSI01 => new ForAnaLogIn(1180, bytes); public ForAnaLogOut SPV1DBT01 => new ForAnaLogOut(1200, bytes); public ForAnaLogOut SPV1DBT02 => new ForAnaLogOut(1220, bytes); public ForAnaLogOut SPV2DBT01 => new ForAnaLogOut(1240, bytes); public ForAnaLogOut SPV2DBT02 => new ForAnaLogOut(1260, bytes); public ForAnaLogOut SPV3DBT01 => new ForAnaLogOut(1280, bytes); public ForAnaLogOut SPV3DBT02 => new ForAnaLogOut(1300, bytes); /// /// 温度 /// /// public List GetWeiDu() { var plc = PlcConnect.Instance; List list = new List(); list.Add(plc.ReadFloat("DB1.1334").Content.ToString("0.00")); //a list.Add(plc.ReadFloat("DB1.1354").Content.ToString("0.00")); //b list.Add(plc.ReadFloat("DB1.1374").Content.ToString("0.00")); //c list.Add(plc.ReadFloat("DB1.1394").Content.ToString("0.00")); //d list.Add(plc.ReadFloat("DB1.1414").Content.ToString("0.00")); //e list.Add(plc.ReadFloat("DB1.1434").Content.ToString("0.00")); //f list.Add(plc.ReadFloat("DB1.1454").Content.ToString("0.00")); //G list.Add(plc.ReadFloat("DB1.1474").Content.ToString("0.00")); //h list.Add(plc.ReadFloat("DB1.1494").Content.ToString("0.00")); //I list.Add(plc.ReadFloat("DB1.1514").Content.ToString("0.00")); //J list.Add(plc.ReadFloat("DB1.1534").Content.ToString("0.00")); //k list.Add(plc.ReadFloat("DB1.1554").Content.ToString("0.00")); //L list.Add(plc.ReadFloat("DB1.1574").Content.ToString("0.00")); //M list.Add(plc.ReadFloat("DB1.1594").Content.ToString("0.00")); //N list.Add(plc.ReadFloat("DB1.1614").Content.ToString("0.00")); //0 list.Add(plc.ReadFloat("DB1.1634").Content.ToString("0.00")); list.Add(plc.ReadFloat("DB1.1654").Content.ToString("0.00")); return list; } } }