Ejemplo n.º 1
0
        private void decodeSetMessage(ModbusMessage msg)
        {
            String setType = (String)msg.Data["SetType"];

            if ("Mode".Equals(setType))
            {
                String mode = (String)msg.Data["Mode"];
                MMA_TestMode = stringToJianCeMoShi(mode);
            }
        }
Ejemplo n.º 2
0
        public static String jianCeMoShiToString(MMA_TestMethod m)
        {
            switch (m)
            {
            case MMA_TestMethod.OD:
                return("OD");

            case MMA_TestMethod.Flu:
                return("YG");

            case MMA_TestMethod.Che:
                return("HXFG");
            }
            return("OD");
        }
Ejemplo n.º 3
0
 public static String jianCeMoShiToString(MMA_TestMethod m)
 {
     switch (m)
     {
         case MMA_TestMethod.OD:
             return "OD";
         case MMA_TestMethod.Flu:
             return "YG";
         case MMA_TestMethod.Che:
             return "HXFG";
     }
     return "OD";
 }
Ejemplo n.º 4
0
 private void decodeSetMessage(ModbusMessage msg)
 {
     String setType = (String)msg.Data["SetType"];
     if ("Mode".Equals(setType))
     {
         String mode = (String)msg.Data["Mode"];
         MMA_TestMode = stringToJianCeMoShi(mode);
     }
 }