//泵状态解析 public static xd100x.PumpState PumpParse(byte state) { xd100x.PumpState grPs = new xd100x.PumpState(); grPs._CM1 = DataInfo.GetPumpState(state, 0); grPs._CM2 = DataInfo.GetPumpState(state, 1); grPs._CM3 = DataInfo.GetPumpState(state, 2); grPs._RM1 = DataInfo.GetPumpState(state, 3); grPs._RM2 = DataInfo.GetPumpState(state, 4); return(grPs); }