Beispiel #1
0
 public static void CopyTo(DigitVar desVar, DigitVar srcVar)
 {
     desVar.VarName          = srcVar.VarName;
     desVar.VarUnit          = srcVar.VarUnit;
     desVar.VarScale         = srcVar.VarScale;
     desVar.VarByteNum       = srcVar.VarByteNum;
     desVar.IsBalance        = srcVar.IsBalance;
     desVar.IsAFE            = srcVar.IsAFE;
     desVar.isTemperatureVar = srcVar.isTemperatureVar;
     desVar.VarPromptStatus  = srcVar.VarPromptStatus;
     desVar.VarValue         = srcVar.VarValue;
 }
Beispiel #2
0
        public StateVar(string name, int byte_index, int bit_index, string type = "Normal",
                        DigitVar linkDigit = null, CtrlVar linkCtrl = null)
        {
            StateName = name;
            StateType = type;
            ByteIndex = byte_index;
            BitIndex  = bit_index;

            StateValue = false;

            LinkCtrlVar  = linkCtrl;
            LinkDigitVar = linkDigit;
        }