示例#1
0
        public GRWriteTwoPressChaCommand(GRStation st,
//            byte cyclePumpCtrlMode,
                                         CyclePumpMode cyclePumpCtrlMode,
                                         float pressChaSet,
                                         float backPressSet)
        {
            ArgumentChecker.CheckNotNull(st);
            this.Station = st;

            _cycPumpCtrlMode   = cyclePumpCtrlMode;
            _pressChaSetValue  = pressChaSet;
            _backPressSetValue = backPressSet;
        }
示例#2
0
        public override byte[] MakeCommand()
        {
            if (!_isSpecify)
            {
                GRStation grSt = (GRStation)Station;
                if (grSt.OSTWorkMode == OutSideTempWorkMode.SetByComputer)
                {
                    _outSideTemp = Singles.S.OutSideTemperature;
                }
            }

            byte[] datas = BitConverter.GetBytes(_outSideTemp);
            return(GRCommandMaker.MakeCommand(Station.Address,
                                              GRDef.DEVICE_TYPE,         //0xA0,
                                              GRDef.FC_SET_OUTSIDE_TEMP, //41,
                                              datas));
        }
示例#3
0
        public GRWriteOpenDegree(GRStation st, byte min, byte max)
        {
            if (st == null)
            {
                throw new ArgumentNullException("st");
            }
            if (min > 100)
            {
                throw new ArgumentOutOfRangeException("min", min, "");
            }
            if (max > 100)
            {
                throw new ArgumentOutOfRangeException("max", max, "");
            }

            if (min > max)
            {
                throw new ArgumentException("min > max");
            }

            _min         = min;
            _max         = max;
            this.Station = st;
        }
示例#4
0
 public GRReadTempWLAlarmSetCommand(GRStation st)
     : base(st)
 {
 }
示例#5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public void Remove(GRStation st)
 {
     base.InternalRemove(st);
 }
示例#6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public void Add(GRStation st)
 {
     ArgumentChecker.CheckNotNull(st);
     base.InternalAdd(st);
 }
示例#7
0
 public GRReadPressAlarmSetCommand(GRStation st)
     : base(st)
 {
 }
示例#8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="station"></param>
 public GRRealDataCommand(GRStation station)
 {
     ArgumentChecker.CheckNotNull(station);
     this.Station = station;
 }
示例#9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public GRReadTLCommand(GRStation st)
 {
     ArgumentChecker.CheckNotNull(st);
     Station = st;
 }
示例#10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public GRWriteOTGT2Line(GRStation st, TemperatureLine tl)
 {
     Station = st;
     _tl     = tl;
 }
示例#11
0
 public GRReadTwoPressChaCommand(GRStation st)
 {
     ArgumentChecker.CheckNotNull(st);
     this.Station = st;
 }
示例#12
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 /// <param name="mode"></param>
 /// <param name="pressset"></param>
 public GRWriteRepumpPressSettings(GRStation st, RePumpMode mode, float pressset)
 {
     Station     = st;
     _repumpMode = mode;
     _perssset   = pressset;
 }
示例#13
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public GRReadRepumpPressSettings(GRStation st)
 {
     this.Station = st;
 }