From 33ef17ff9568e2f4598c667b9b6a5e0e6a827204 Mon Sep 17 00:00:00 2001 From: jfmartel Date: Thu, 4 Jul 2024 16:00:03 -0400 Subject: [PATCH] Dev Historien... --- Configuration/ZTSettings.ztc | Bin 41 -> 41 bytes sftpbatch | 2 +- sources/Modbus/PIHistorianDefs.h.autosave | 139 ---------------------- sources/Modbus/PIHistorianManager.cpp | 12 +- 4 files changed, 7 insertions(+), 146 deletions(-) delete mode 100644 sources/Modbus/PIHistorianDefs.h.autosave diff --git a/Configuration/ZTSettings.ztc b/Configuration/ZTSettings.ztc index d4476a56d4d00519ab4bbaca6ff9d0338fd98e77..d7191e9c232797e572a1119ffeafe29553d8f0fc 100644 GIT binary patch literal 41 fcmdnB_B10hU;u$yAWi{dMn;AMDmZTDetectionConfig[DETECTION_FCT_FN].AnalysisActive == true || DetectionCfg->mZTDetectionConfig[DETECTION_FCT_FN].TKActive == true) + if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_FN].AnalysisActive == true && DetectionCfg->mZTDetectionConfig[DETECTION_FCT_FN].TKActive == true) { StatusReg |= HISTORIAN_ZT1_FN_ENABLED_FLAG_MASK; } @@ -99,7 +99,7 @@ int CPIHistorianManager::UpdateDetectionFunctions(CZTDetectionFunctionConfig *De StatusReg &= ~HISTORIAN_ZT1_FN_ENABLED_FLAG_MASK; } - if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PG].AnalysisActive == true || DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PG].TKActive == true) + if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PG].AnalysisActive == true && DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PG].TKActive == true) { StatusReg |= HISTORIAN_ZT1_PG_ENABLED_FLAG_MASK; } @@ -108,7 +108,7 @@ int CPIHistorianManager::UpdateDetectionFunctions(CZTDetectionFunctionConfig *De StatusReg &= ~HISTORIAN_ZT1_PG_ENABLED_FLAG_MASK; } - if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP].AnalysisActive == true || DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP].TKActive == true) + if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP].AnalysisActive == true && DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP].TKActive == true) { StatusReg |= HISTORIAN_ZT1_PP_ENABLED_FLAG_MASK; } @@ -117,7 +117,7 @@ int CPIHistorianManager::UpdateDetectionFunctions(CZTDetectionFunctionConfig *De StatusReg &= ~HISTORIAN_ZT1_PP_ENABLED_FLAG_MASK; } - if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP2].AnalysisActive == true || DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP2].TKActive == true) + if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP2].AnalysisActive == true && DetectionCfg->mZTDetectionConfig[DETECTION_FCT_PP2].TKActive == true) { StatusReg |= HISTORIAN_ZT2_PP_ENABLED_FLAG_MASK; } @@ -126,7 +126,7 @@ int CPIHistorianManager::UpdateDetectionFunctions(CZTDetectionFunctionConfig *De StatusReg &= ~HISTORIAN_ZT2_PP_ENABLED_FLAG_MASK; } - if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT1].AnalysisActive == true || DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT1].TKActive == true) + if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT1].AnalysisActive == true && DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT1].TKActive == true) { StatusReg |= HISTORIAN_ZT_ZT1_ENABLED_FLAG_MASK; } @@ -135,7 +135,7 @@ int CPIHistorianManager::UpdateDetectionFunctions(CZTDetectionFunctionConfig *De StatusReg &= ~HISTORIAN_ZT_ZT1_ENABLED_FLAG_MASK; } - if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT2].AnalysisActive == true || DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT2].TKActive == true) + if(DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT2].AnalysisActive == true && DetectionCfg->mZTDetectionConfig[DETECTION_FCT_ZT2].TKActive == true) { StatusReg |= HISTORIAN_ZT_ZT2_ENABLED_FLAG_MASK; }