using WorkerSynReport.Plc; namespace WorkerSynReport; public class DB2107Helper : DBHelper { public DB2107Helper() { bytes = PlcConnect.Instance.Read("DB2107.0.0", 2064).Content; } // public OperateResult GetAll=>PlcConnect.Instance.Read("DB2107.0.0", 2057); public NormalStatusEntity NormalStatus => NormalS(bytes); private NormalStatusEntity NormalS(byte[] bytes) { return new NormalStatusEntity(bytes); } public ControlSignEntity ControlSign => ControlS(bytes); private ControlSignEntity ControlS(byte[] bytes) { return new ControlSignEntity(bytes); } public PressureEntity Pressure => Press(bytes); private PressureEntity Press(byte[] bytes) { return new PressureEntity(bytes); } public PIDEntity PID => Pid(bytes); private PIDEntity Pid(byte[] bytes) { return new PIDEntity(bytes); } public WeightEntity Weight => Weigh(bytes); private WeightEntity Weigh(byte[] bytes) { return new WeightEntity(bytes); } public WeightPraEntity WeightPra => WeightP(bytes); private WeightPraEntity WeightP(byte[] bytes) { return new WeightPraEntity(bytes); } public SpeedEntity Speed => Spee(bytes); private SpeedEntity Spee(byte[] bytes) { return new SpeedEntity(bytes); } public List Dryer => new UntiStatusHMIArrayManager(4, 1408, 32, bytes).GetList(); public List Gelater => new UntiStatusHMIArrayManager(8, 1536, 32, bytes).GetList(); public List Weter => new UntiStatusHMIArrayManager(8, 1792, 32, bytes).GetList(); public ValveEntity Valve => Val(bytes); private ValveEntity Val(byte[] bytes) { return new ValveEntity(bytes); } public LevelEntity Level => Lev(bytes); private LevelEntity Lev(byte[] bytes) { return new LevelEntity(bytes); } }