Exemple #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;
        }
Exemple #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));
        }
Exemple #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;
        }
 public GRReadTempWLAlarmSetCommand(GRStation st)
     : base(st)
 {
 }
Exemple #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public void Remove(GRStation st)
 {
     base.InternalRemove(st);
 }
Exemple #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public void Add(GRStation st)
 {
     ArgumentChecker.CheckNotNull(st);
     base.InternalAdd(st);
 }
Exemple #7
0
 public GRReadPressAlarmSetCommand(GRStation st)
     : base(st)
 {
 }
Exemple #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="station"></param>
 public GRRealDataCommand(GRStation station)
 {
     ArgumentChecker.CheckNotNull(station);
     this.Station = station;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public GRReadTLCommand(GRStation st)
 {
     ArgumentChecker.CheckNotNull(st);
     Station = st;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public GRWriteOTGT2Line(GRStation st, TemperatureLine tl)
 {
     Station = st;
     _tl     = tl;
 }
Exemple #11
0
 public GRReadTwoPressChaCommand(GRStation st)
 {
     ArgumentChecker.CheckNotNull(st);
     this.Station = st;
 }
Exemple #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;
 }
Exemple #13
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="st"></param>
 public GRReadRepumpPressSettings(GRStation st)
 {
     this.Station = st;
 }