Bläddra i källkod

整理宏GD_AREA_ZHONGSHAN_2020_ZC;

lch 6 månader sedan
förälder
incheckning
c37bd2622b

+ 9 - 9
dtu/dtu_main_t536/app/IECComm.c

@@ -3511,7 +3511,7 @@ bool selectRunParId(WORD sw, WORD parId, BYTE *pbuf)
 	//茂名局要求5001:定值区号 5013:常规继电保护模式/5051:电压电流型继电保护模式/508d:智能分布式保护模式/50ab:转换把手位置/504c、507e:远方整定投入软压板 只读,不可更改
 	if(parId==0x5001 || parId==0x5013 || parId==0x5051 || parId==0x508d || parId==0x50ab || parId==0x504c || parId==0x507e)
 		return false;
-#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC || defined GD_AREA_ZHONGSHAN
+#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN
 /*19年中山要求5001:保护总投退 5002:电流型保护模式投退 5003:电压电流型保护模式投退 5004:智能分布式保护模式投退 5011:远方修改功能只读,不可更改
 19年中山要求5001:保护总投退 5002:电流型保护模式投退 5003:电压电流型保护模式投退 5004:智能分布式保护模式投退 5005:远方修改功能只读,不可更改*/
 	if(parId==0x5001 || parId==0x5002 || parId==0x5003 || parId==0x5004)
@@ -3519,7 +3519,7 @@ bool selectRunParId(WORD sw, WORD parId, BYTE *pbuf)
 
 	#ifdef GD_AREA_ZHONGSHAN
 		if(parId==0x5011)
-	#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+	#elif defined GD_AREA_ZHONGSHAN_2020
 		if(parId==0x5005)
 	#endif
         return false;
@@ -3667,7 +3667,7 @@ bool wirteRunParId(WORD sw, WORD parId, BYTE *pbuf,u8 ti)
 	//茂名局要求5001:定值区号 5013:常规继电保护模式/5051:电压电流型继电保护模式/508d:智能分布式保护模式/50ab:转换把手位置/504c、507e:远方整定投入软压板 只读,不可更改
 	if(parId==0x5001 || parId==0x5013 || parId==0x5051 || parId==0x508d || parId==0x50ab || parId==0x504c || parId==0x507e)
 		return false;
-#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC || defined GD_AREA_ZHONGSHAN
+#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN
 /*19年中山要求5001:保护总投退 5002:电流型保护模式投退 5003:电压电流型保护模式投退 5004:智能分布式保护模式投退 5011:远方修改功能只读,不可更改
 19年中山要求5001:保护总投退 5002:电流型保护模式投退 5003:电压电流型保护模式投退 5004:智能分布式保护模式投退 5005:远方修改功能只读,不可更改*/
 	if(parId==0x5001 || parId==0x5002 || parId==0x5003 || parId==0x5004)
@@ -3675,7 +3675,7 @@ bool wirteRunParId(WORD sw, WORD parId, BYTE *pbuf,u8 ti)
 	
 	#ifdef GD_AREA_ZHONGSHAN
 		if(parId==0x5011)
-	#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+	#elif defined GD_AREA_ZHONGSHAN_2020
 		if(parId==0x5005)
 	#endif
         return false;
@@ -3752,7 +3752,7 @@ bool readRunParId(WORD sw, WORD parId, BYTE *pbuf)
 {
 	int parTable=0;
 	SET_VALUE *parBuf;
-#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020
 	SET_VALUE *pparaBuf;
 #endif
 #ifdef FUNC_YT_HARD_YB
@@ -3771,7 +3771,7 @@ bool readRunParId(WORD sw, WORD parId, BYTE *pbuf)
 		return false;
 	}
 	
-#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020
 	pparaBuf = rt_malloc(EQUIP_PARA_NUMBER*4);	
 	if(!pparaBuf)
 	{
@@ -3835,7 +3835,7 @@ bool readRunParId(WORD sw, WORD parId, BYTE *pbuf)
 			return true;
 		}
 	}
-#elif defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#elif defined GD_AREA_ZHONGSHAN_2020
 	if(parId==0x5001)
 	{
 		int i;
@@ -4048,7 +4048,7 @@ bool readRunParId(WORD sw, WORD parId, BYTE *pbuf)
 		GetDefSet((float*)parBuf);
 	}
 	
-#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020
 	if(!ReadPara((void*)pparaBuf,EEP_EQUIP_PARA_ADDR,EQUIP_PARA_NUMBER,&tEquipParaTable[0]))// 读参数
 	{
 		GetDefPara((void*)pparaBuf,EQUIP_PARA_NUMBER,&tEquipParaTable[0]);		
@@ -4090,7 +4090,7 @@ bool readRunParId(WORD sw, WORD parId, BYTE *pbuf)
 		return true;
 	}
 
-#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#if defined GD_AREA_ECZD_MAOMING || defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020
 	parTable=getSetTableOffset(&tEquipParaTable[0],EQUIP_PARA_NUMBER,parId,SETGROUP_TYPE_PARA, false);
 	if(parTable != -1)
 	{

+ 1 - 1
dtu/dtu_main_t536/app/IECComm.h

@@ -99,7 +99,7 @@ extern u8 TI_SELECT_NUM;
 
 
 #define FOS_PAR_STATR_ADDR 		0X5001	//遥参起始地址
-#if defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC || defined GD_AREA_ZHONGSHAN
+#if defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN
 	#define FOS_PAR_SW_NUM 			130		//遥参单回路开关遥参数量
 #elif defined GD_AREA_ECZD_MAOMING
 	#define FOS_PAR_SW_NUM 			180		//遥参单回路开关遥参数量

+ 1 - 1
dtu/dtu_main_t536/app/Sys.h

@@ -66,7 +66,7 @@ SOE 512
 #define EEP_SETGROUP_ADDR			(1024+800+EEP_SET_BASE)       // 定值索引:(1024-800)/4=56pcs
 
 
-#if defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#if defined GD_AREA_ZHONGSHAN_2020
 	#define EEP_PUB_ADDR			((2*1024)+EEP_SET_BASE)     //公共定值开始位置
 	#define EEP_SET_ADDR			((5*1024)+EEP_SET_BASE)     //开关定值开始位置(此值于中山新增备用定值后更改)
 #elif defined GD_AREA_ECZD_2020

+ 0 - 11
dtu/dtu_main_t536/app/defineSys.h

@@ -109,7 +109,6 @@
 #define GD_AREA_MAIN_2020_V2
 #define GD_AREA_ECZD_2020              // 2020广东配网终端二次功能指导意见
 #define GD_AREA_ZHONGSHAN_2020         // 中山局2020要求
-#define GD_AREA_ZHONGSHAN_2020_ZC      // 中山局2020要求正超版本
 #define GD_AREA_FOS_2021               // 佛山21年新标准(针对环网柜)
 #define GD_AREA_HEYUAN_2021            // 广东标准2020分支-河源兼容20年硬件配置及19年非标需求
 #define GD_AREA_ECZD_MAOMING           // 广东标准2020分支-茂名局
@@ -300,16 +299,6 @@
 	#define RCD_STRAN_M			/*录波传输*/
 	#define RCD_STRAN_S			/*录波传输*/
 
-#elif defined  GD_AREA_ZHONGSHAN_2020_ZC  //正超单独生成一个版本
-    #define VER_NUM 				    30104			// 版本号30.102->30.104
-    #define GD_AREA_ZHONGSHAN_2020
-	#define PUB_SET_SECTION
-    #define ADD_DEBUG_RECORD_FUN    //增加调试记录功能选项
-    #define ADD_DEBUG_RECORD_AUTO_SHOW_FUN    //增加调试记录功能自动显示功能  
-	#define GEN_QUEUE	
-	#define RCD_STRAN_M			/*录波传输*/
-	#define RCD_STRAN_S			/*录波传输*/
-
 #elif defined  GD_AREA_ECZD_MEIZHOU_2021		////梅州20二次指导意见分支
 	#ifdef __IEC61850_GOOSE_FUNC__
 		#define VER_NUM 					31201			// 版本号31.201

+ 1 - 1
dtu/dtu_main_t536/app/set.c

@@ -2160,7 +2160,7 @@ const  TFIXEDSETTABLE tfixedsettable[]=         //
 	{FIXED_SET_COM,		0x50A6,	STR_R,	"101-2016,104-2016",		"通信规约",},
 	{FIXED_SET_TPE,		0x50A3,	STR_R,	"DFTU-8000",				"出厂型号",},
 	{FIXED_SET_ID,		0x50A1,	STR_R,	"",							"终端ID号",},
-#elif defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#elif defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020
 	{FIXED_SET_EQU, 	0x8001, STR_R,	"D30",						"终端类型",},
 	{FIXED_SET_SYS, 	0x8002, STR_R,	"Linux 2.6.29.1",			"操作系统",},
 	{FIXED_SET_MAU, 	0x5077, STR_R,	"", 						"  制造商",},

+ 1 - 1
dtu/dtu_main_t536/app/set.h

@@ -26,7 +26,7 @@
 
 #ifdef GD_AREA_ECZD_MAOMING
 	#define MAX_SET_NUMBER 			360		// 最大定值个数
-#elif defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020 || defined GD_AREA_ZHONGSHAN_2020_ZC
+#elif defined GD_AREA_ZHONGSHAN || defined GD_AREA_ZHONGSHAN_2020
 	#define MAX_SET_NUMBER 			500		// 最大定值个数
 #else
 	#define MAX_SET_NUMBER 			2000		// 最大定值个数