全功能逆变/假负载61850通信程序
iec61852_forQGN/src/com/battdata_rt/BattData_RT_Array.java
@@ -83,7 +83,7 @@
         sql.sqlMysqlUseDB(Sql_Mysql.DB_BATT_INF);
         
         String sql_str = "SELECT DISTINCT "
                     + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,"
                     + " FBSDeviceId,FBSDeviceIp,BattGroupName6,GroupIndexInFBSDevice,FBSDeviceName,comm_port,"
                     + " BattGroupId,BattGroupNum,MonCount,BattFloatCurrent,FloatVolLevel,MonCapStd,MonVolStd"
                     + " FROM " + Sql_Mysql.BattInf_Table
                     + " WHERE FLOOR(FBSDeviceId/10000)=61852"
@@ -106,6 +106,11 @@
            float float_vol_lev = res.getFloat("FloatVolLevel");
            float float_curr_lev = res.getFloat("BattFloatCurrent");
            int GroupIndexInFBSDevice = res.getInt("GroupIndexInFBSDevice");
            int commPort = res.getInt("comm_port");                        //通信端口
            if(commPort == 0) {
               commPort = 102;
            }
            if(GroupIndexInFBSDevice > 3) {
               GroupIndexInFBSDevice = 3;
            }
@@ -136,6 +141,11 @@
                  
                  if(GroupIndexInFBSDevice != brt.GroupIndexInFBSDevice) {
                     brt.GroupIndexInFBSDevice = GroupIndexInFBSDevice;
                     param_changed = true;
                  }
                  if(commPort != brt.getCommPort()) {
                     brt.setCommPort(commPort);
                     param_changed = true;
                  }
                  
@@ -178,7 +188,7 @@
               if(rtdata.MonCount < 0) {
                  rtdata.MonCount = 0;
               }
               rtdata.setCommPort(commPort);            //设置通信端口
               rtdata.MonStdCap = res.getFloat("MonCapStd");
               rtdata.MonStdVol = res.getFloat("MonVolStd");
               rtdata.setBattFloatVolCurrLevel(res.getFloat("FloatVolLevel"), res.getFloat("BattFloatCurrent"));