| | |
| | |
|
| | | private void read_ACDC_LD() {
|
| | |
|
| | | String acdcDeviceName = pwrDev_rtData.PowerDevProtocolName + "CPSS";
|
| | | String acdcDeviceName = pwrDev_rtData.PowerDevProtocolName + "CPSS" + pwrDev_rtData.PowerDevProtocolIndex;
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥测量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsCpssYc)", acdcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | DataSet ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsCpssYc").copy();
|
| | | if(acdcDeviceName.contains("ZJDY")) {
|
| | | //紫晶电源遥测
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsMeasure1)", acdcDeviceName);
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsMeasure1");
|
| | | |
| | | }else {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsCpssYc)", acdcDeviceName);
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsCpssYc");
|
| | | }
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size();
|
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | |
| | | boolean origin_val;
|
| | | int timeout_tag;
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥信量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsCpssYx)", acdcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | DataSet ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsCpssYx").copy();
|
| | | if(acdcDeviceName.contains("ZJDY")) {
|
| | | //紫晶电源遥信
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsState1)", acdcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsState1");
|
| | | }else {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsCpssYx)", acdcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsCpssYx");
|
| | | }
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size();
|
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | |
| | | } catch (IOException e) {
|
| | | setErrCommCountInc(0);
|
| | | logger.error(e.toString(), e);
|
| | | } |
| | | }
|
| | | |
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 紫晶电源告警量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | if(acdcDeviceName.contains("ZJDY")) {
|
| | | //紫晶电源遥信
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAlm1)", acdcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acdcDeviceName + "/LLN0.dsAlm1");
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size(); |
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | | for (int n = 0; n<size_cnt; n++) {
|
| | | if(null == ds.getMembers().get(n).getChild("stVal")) {
|
| | | continue;
|
| | | } |
| | | FcModelNode fc_mode = (FcModelNode) ds.getMembers().get(n).getChild("stVal");
|
| | | |
| | | FcModelNode fc_mode_t = (FcModelNode) ds.getMembers().get(n).getChild("t");
|
| | | if(null != fc_mode) {
|
| | | String fc_model_str = fc_mode.toString1();
|
| | | if(fc_model_str.contains("gswGGIO1.Alm")) {
|
| | | origin_val = pwrDev_rtData.m_acdcData.is_acIn1_trip; |
| | | pwrDev_rtData.m_acdcData.is_acIn1_trip = ((BdaBoolean)fc_mode).getValue();
|
| | | if(origin_val==false && pwrDev_rtData.m_acdcData.is_acIn1_trip==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_ACDC_AcIn1_Trip_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO2.Alm")) {
|
| | | origin_val = pwrDev_rtData.m_acdcData.is_acIn2_trip;
|
| | | pwrDev_rtData.m_acdcData.is_acIn2_trip = ((BdaBoolean)fc_mode).getValue();
|
| | | if(origin_val==false && pwrDev_rtData.m_acdcData.is_acIn2_trip==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_ACDC_AcIn2_Trip_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO3.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_acdcData.is_loader_fuse;
|
| | | pwrDev_rtData.m_acdcData.is_loader_fuse = ((BdaBoolean)fc_mode).getValue();
|
| | | if(origin_val==false && pwrDev_rtData.m_acdcData.is_loader_fuse==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(acdcDeviceName + "/gswGGIO3.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_ACDC_LoaderFuse_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO4.Alm.stVal")) {///gswGGIO4.Alm.stVal
|
| | | origin_val = pwrDev_rtData.m_acdcData.is_battgroup1_fuse;
|
| | | pwrDev_rtData.m_acdcData.is_battgroup1_fuse = ((BdaBoolean)fc_mode).getValue();
|
| | | if(origin_val==false && pwrDev_rtData.m_acdcData.is_battgroup1_fuse==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(acdcDeviceName + "/gswGGIO4.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_ACDC_BattGrp1Fuse_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO5.Alm.stVal")) {///gswGGIO5.Alm.stVal
|
| | | origin_val = pwrDev_rtData.m_acdcData.is_battgroup2_fuse;
|
| | | timeout_tag = 0;
|
| | | pwrDev_rtData.m_acdcData.is_battgroup2_fuse = ((BdaBoolean)fc_mode).getValue();
|
| | | if(origin_val==false && pwrDev_rtData.m_acdcData.is_battgroup2_fuse==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(acdcDeviceName + "/gswGGIO5.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_ACDC_BattGrp2Fuse_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | pwrDev_rtData.setCommSuccessCountInc();
|
| | | resetErrCommCount();
|
| | | } catch (IOException e) {
|
| | | setErrCommCountInc(0);
|
| | | logger.error(e.toString(), e);
|
| | | }
|
| | |
|
| | | /*****
|
| | | //************ 遥测量 **************
|
| | |
| | |
|
| | | private void read_AC_LD() {
|
| | |
|
| | | String acDeviceName = pwrDev_rtData.PowerDevProtocolName + "ACSWIB";
|
| | | String acDeviceName = pwrDev_rtData.PowerDevProtocolName + "ACSWIB" + pwrDev_rtData.PowerDevProtocolIndex;
|
| | |
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥测量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAcswibYc)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | DataSet ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsAcswibYc").copy();
|
| | | if(acDeviceName.contains("ZJDY")) {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsMeasure1)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsMeasure1");
|
| | | }else {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAcswibYc)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsAcswibYc");
|
| | | }
|
| | | if(null == ds) {
|
| | | //没有交流配电柜时跳出读取
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size();
|
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | |
| | | boolean origin_val;
|
| | | int timeout_tag;
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥信量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAcswibYx)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | DataSet ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsAcswibYx").copy();
|
| | | if(acDeviceName.contains("ZJDY")) {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsState1)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsState1");
|
| | | }else {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAcswibYx)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsAcswibYx");
|
| | | }
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size();
|
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | |
| | | logger.error(e.toString(), e);
|
| | | }
|
| | |
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥信量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | if(acDeviceName.contains("ZJDY")) {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAlm1)", acDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(acDeviceName + "/LLN0.dsAlm1");
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size(); |
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | | int fsw1_Trip_idx = 0;
|
| | | int fsw2_Trip_idx = 0;
|
| | | for (int n = 0; n<size_cnt; n++) {
|
| | | if(null == ds.getMembers().get(n).getChild("stVal")) {
|
| | | continue;
|
| | | } |
| | | FcModelNode fc_mode = (FcModelNode) ds.getMembers().get(n).getChild("stVal");
|
| | | |
| | | FcModelNode fc_mode_t = (FcModelNode) ds.getMembers().get(n).getChild("t");
|
| | | |
| | | if(null != fc_mode){ |
| | | String fc_model_str = fc_mode.toString1(); |
| | | |
| | | if(fc_model_str.contains("/etmGGIO1.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_acData.is_ac_tempAlarm;
|
| | | pwrDev_rtData.m_acData.is_ac_tempAlarm = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_acData.is_ac_tempAlarm = readBooleanNodeData(acDeviceName + "/etmGGIO1.Alm.stVal", Fc.ST, pwrDev_rtData.m_acData.is_ac_tempAlarm); |
| | | if(origin_val==false && pwrDev_rtData.m_acData.is_ac_tempAlarm==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | // Date dt = readNodeTimeStamp(acDeviceName + "/etmGGIO1.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_AC_TempAlarm_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO1.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_acData.is_acIn1_trip;
|
| | | pwrDev_rtData.m_acData.is_acIn1_trip = ((BdaBoolean)fc_mode).getValue();
|
| | | //pwrDev_rtData.m_acData.is_acIn1_trip = readBooleanNodeData(acDeviceName + "/gswGGIO1.Alm.stVal", Fc.ST, pwrDev_rtData.m_acData.is_acIn1_trip);
|
| | | if(origin_val==false && pwrDev_rtData.m_acData.is_acIn1_trip==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(acDeviceName + "/gswGGIO1.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_AC_AcIn1_Trip_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO2.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_acData.is_acIn2_trip;
|
| | | timeout_tag = 0;
|
| | | pwrDev_rtData.m_acData.is_acIn2_trip = ((BdaBoolean)fc_mode).getValue();
|
| | | //pwrDev_rtData.m_acData.is_acIn2_trip = readBooleanNodeData(acDeviceName + "/gswGGIO2.Alm.stVal", Fc.ST, pwrDev_rtData.m_acData.is_acIn2_trip);
|
| | | if(origin_val==false && pwrDev_rtData.m_acData.is_acIn2_trip==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(acDeviceName + "/gswGGIO2.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_AC_AcIn2_Trip_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/fsw1GGIO") && fc_model_str.contains("Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_acData.is_fsw1_Trip_SW[fsw1_Trip_idx];
|
| | | //1段交流母线输出开关 |
| | | pwrDev_rtData.m_acData.is_fsw1_Trip_SW[fsw1_Trip_idx] = ((BdaBoolean)fc_mode).getValue();
|
| | | //pwrDev_rtData.m_acData.is_fsw1_Trip_SW[fsw1_Trip_idx] = readBooleanNodeData(acDeviceName + ref, Fc.ST, pwrDev_rtData.m_acData.is_fsw1_Trip_SW[i]); |
| | | if(origin_val==false && pwrDev_rtData.m_acData.is_fsw1_Trip_SW[fsw1_Trip_idx]==true) {
|
| | | //Date dt = readNodeTimeStamp(acDeviceName + reft, Fc.ST);
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_AC_MX1_SW_N_Trip_ID, (fsw1_Trip_idx+1), timeout_tag,dt);
|
| | | }
|
| | | fsw1_Trip_idx++;
|
| | | |
| | | }else if(fc_model_str.contains("/fsw2GGIO") && fc_model_str.contains("Alm.stVal")) {
|
| | | //2段交流母线输出开关
|
| | | //System.out.println(fc_model_str+"=="+fsw2_Trip_idx++);
|
| | | origin_val = pwrDev_rtData.m_acData.is_fsw2_Trip_SW[fsw2_Trip_idx];
|
| | | pwrDev_rtData.m_acData.is_fsw2_Trip_SW[fsw2_Trip_idx] = ((BdaBoolean)fc_mode).getValue();
|
| | | //pwrDev_rtData.m_acData.is_fsw2_Trip_SW[fsw2_Trip_idx] = readBooleanNodeData(acDeviceName + ref, Fc.ST, pwrDev_rtData.m_acData.is_fsw2_Trip_SW[i]); |
| | | if(origin_val==false && pwrDev_rtData.m_acData.is_fsw2_Trip_SW[fsw2_Trip_idx]==true) {
|
| | | //Date dt = readNodeTimeStamp(acDeviceName + reft, Fc.ST);
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_AC_MX2_SW_N_Trip_ID, (fsw2_Trip_idx+1), timeout_tag,dt);
|
| | | }
|
| | | fsw2_Trip_idx ++;
|
| | | }else if(fc_model_str.contains("/calmGGIO1.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_acData.is_total_alarm;
|
| | | pwrDev_rtData.m_acData.is_total_alarm = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_acData.is_total_alarm = readBooleanNodeData(acDeviceName + "/calmGGIO1.Alm.stVal", Fc.ST, pwrDev_rtData.m_acData.is_total_alarm);
|
| | | if(origin_val==false && pwrDev_rtData.m_acData.is_total_alarm==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | // Date dt = readNodeTimeStamp(acDeviceName + "/calmGGIO1.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_AC_TolalAlarm_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | pwrDev_rtData.setCommSuccessCountInc();
|
| | | resetErrCommCount();
|
| | | } catch (IOException e) {
|
| | | setErrCommCountInc(0);
|
| | | logger.error(e.toString(), e);
|
| | | } |
| | | /***
|
| | | //************ 遥测量 **************
|
| | | pwrDev_rtData.SetPwrDeviceCommErrState(false);
|
| | |
| | | ***/
|
| | | }
|
| | |
|
| | | private void read_DC_LD() {
|
| | | |
| | | String dcDeviceName = pwrDev_rtData.PowerDevProtocolName + "DCSWIB";
|
| | | |
| | | private void read_DC_LD() { |
| | | String dcDeviceName = pwrDev_rtData.PowerDevProtocolName + "DCSWIB" + pwrDev_rtData.PowerDevProtocolIndex;
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥测量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsDcswibYc)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | DataSet ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsDcswibYc").copy();
|
| | | if(dcDeviceName.contains("ZJDY")) { |
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsMeasure1)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsMeasure1");
|
| | | }else {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsDcswibYc)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsDcswibYc");
|
| | | }
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size();
|
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | |
| | | boolean origin_val;
|
| | | int timeout_tag;
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 遥信量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsDcswibYx)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ///-------------------------------------------------------------------------------------//
|
| | | DataSet ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsDcswibYx").copy();
|
| | | if(dcDeviceName.contains("ZJDY")) {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsState1)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsState1");
|
| | | }else {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsDcswibYx)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsDcswibYx");
|
| | | }
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size();
|
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | |
| | | logger.error(e.toString(), e);
|
| | | }
|
| | |
|
| | | try {
|
| | | DataSet ds = null;
|
| | | //************ 紫晶电源告警量 **************
|
| | | //---------------------------------Log Level.TRACE-------------------------------------//
|
| | | if(dcDeviceName.contains("ZJDY")) {
|
| | | logger.printf(Level.TRACE, "m_ServerModel.getDataSet(%s/LLN0.dsAlm1)", dcDeviceName);
|
| | | //-------------------------------------------------------------------------------------//
|
| | | ds = m_ServerModel.getDataSet(dcDeviceName + "/LLN0.dsAlm1");
|
| | | if(null == ds) {
|
| | | return;
|
| | | }
|
| | | ds = ds.copy();
|
| | | int size_cnt = ds.getMembers().size(); |
| | | m_Association.getDataSetValues(ds);
|
| | | int m = 0;
|
| | | int fsw1_Trip_idx = 0;
|
| | | int fsw2_Trip_idx = 0;
|
| | | |
| | | for (int n = 0; n<size_cnt; n++) {
|
| | | if(null == ds.getMembers().get(n).getChild("stVal")) {
|
| | | continue;
|
| | | } |
| | | FcModelNode fc_mode = (FcModelNode) ds.getMembers().get(n).getChild("stVal");
|
| | | |
| | | FcModelNode fc_mode_t = (FcModelNode) ds.getMembers().get(n).getChild("t");
|
| | | |
| | | if(null != fc_mode){ |
| | | String fc_model_str = fc_mode.toString1();
|
| | | |
| | | if(fc_model_str.contains("/etmGGIO.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_dcData.is_tempalarm;
|
| | | pwrDev_rtData.m_dcData.is_tempalarm = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_dcData.is_tempalarm = readBooleanNodeData(dcDeviceName + "/etmGGIO.Alm.stVal", Fc.ST, pwrDev_rtData.m_dcData.is_tempalarm); |
| | | if(origin_val==false && pwrDev_rtData.m_dcData.is_tempalarm==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | // Date dt = readNodeTimeStamp(dcDeviceName + "/etmGGIO.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_DC_TempAlarm_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO1.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_dcData.is_in1_swtrip;
|
| | | pwrDev_rtData.m_dcData.is_in1_swtrip = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_dcData.is_in1_swtrip = readBooleanNodeData(dcDeviceName + "/gswGGIO1.Alm.stVal", Fc.ST, pwrDev_rtData.m_dcData.is_in1_swtrip);
|
| | | if(origin_val==false && pwrDev_rtData.m_dcData.is_in1_swtrip==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | // Date dt = readNodeTimeStamp(dcDeviceName + "/gswGGIO1.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_DC_DcIn1_Trip_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/gswGGIO2.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_dcData.is_in2_swtrip;
|
| | | pwrDev_rtData.m_dcData.is_in2_swtrip = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_dcData.is_in2_swtrip = readBooleanNodeData(dcDeviceName + "/gswGGIO2.Alm.stVal", Fc.ST, pwrDev_rtData.m_dcData.is_in2_swtrip); |
| | | if(origin_val==false && pwrDev_rtData.m_dcData.is_in2_swtrip==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | // Date dt = readNodeTimeStamp(dcDeviceName + "/gswGGIO2.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_DC_DcIn2_Trip_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }else if(fc_model_str.contains("/fsw1GGIO") && fc_model_str.contains("Alm.stVal")) {
|
| | | //System.out.println(fc_model_str + "===" + fsw1_Trip_idx); |
| | | |
| | | origin_val = pwrDev_rtData.m_dcData.is_fsw1_Trip_SW[fsw1_Trip_idx];
|
| | | pwrDev_rtData.m_dcData.is_fsw1_Trip_SW[fsw1_Trip_idx] = ((BdaBoolean)fc_mode).getValue();
|
| | | //pwrDev_rtData.m_dcData.is_fsw1_Trip_SW[fsw1_Trip_idx] = readBooleanNodeData(dcDeviceName + ref, Fc.ST, pwrDev_rtData.m_dcData.is_fsw1_Trip_SW[fsw1_Trip_idx]); |
| | | if(origin_val==false && pwrDev_rtData.m_dcData.is_fsw1_Trip_SW[fsw1_Trip_idx]==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(dcDeviceName + reft, Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_DC_DC1_SW_N_Trip_ID, (fsw1_Trip_idx+1), timeout_tag,dt);
|
| | | }
|
| | | fsw1_Trip_idx ++;
|
| | | }else if(fc_model_str.contains("/fsw2GGIO") && fc_model_str.contains("Alm.stVal")) {
|
| | | //System.out.println(fc_model_str + "===" + fsw2_Trip_idx); |
| | | origin_val = pwrDev_rtData.m_dcData.is_fsw2_Trip_SW[fsw2_Trip_idx];
|
| | | pwrDev_rtData.m_dcData.is_fsw2_Trip_SW[fsw2_Trip_idx] = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_dcData.is_fsw2_Trip_SW[i] = readBooleanNodeData(dcDeviceName + ref, Fc.ST, pwrDev_rtData.m_dcData.is_fsw2_Trip_SW[i]); |
| | | if(origin_val==false && pwrDev_rtData.m_dcData.is_fsw2_Trip_SW[fsw2_Trip_idx]==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | //Date dt = readNodeTimeStamp(dcDeviceName + reft, Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_DC_DC2_SW_N_Trip_ID, (fsw2_Trip_idx+1), timeout_tag,dt);
|
| | | }
|
| | | fsw2_Trip_idx ++;
|
| | | }else if(fc_model_str.contains("/calmGGIO.Alm.stVal")) {
|
| | | origin_val = pwrDev_rtData.m_dcData.is_total_alarm;
|
| | | pwrDev_rtData.m_dcData.is_total_alarm = ((BdaBoolean)fc_mode).getValue();
|
| | | // pwrDev_rtData.m_dcData.is_total_alarm = readBooleanNodeData(dcDeviceName + "/calmGGIO.Alm.stVal", Fc.ST, pwrDev_rtData.m_dcData.is_total_alarm);
|
| | | if(origin_val==false && pwrDev_rtData.m_dcData.is_total_alarm==true) {
|
| | | Date dt = ((BdaTimestamp)fc_mode_t).getDate();
|
| | | // Date dt = readNodeTimeStamp(dcDeviceName + "/calmGGIO.Alm.t", Fc.ST);
|
| | | timeout_tag = checkIfBoolNodeTimeOut(dt);
|
| | | |
| | | PowerData_RT_SQL.make_TimeOutTag(m_ConnPool, pwrDev_rtData.PowerDevDeviceId, PwrDeviceAlarm_Data.ALM_TYPE_DC_TolalAlarm_ID, 0, timeout_tag,dt);
|
| | | }
|
| | | }
|
| | | |
| | | |
| | | }
|
| | | }
|
| | | }
|
| | | pwrDev_rtData.setCommSuccessCountInc();
|
| | | resetErrCommCount();
|
| | | } catch (IOException e) {
|
| | | setErrCommCountInc(0);
|
| | | logger.error(e.toString(), e);
|
| | | }
|
| | | |
| | | /***
|
| | | //************ 遥测量 **************
|
| | | pwrDev_rtData.m_dcData.dcIn1_vol = (float)54.1+float_rand_data;//readFloatNodeData(dcDeviceName + "/dciGGIO1.AnIn1.mag.f", Fc.MX, pwrDev_rtData.m_dcData.dcIn1_vol);
|