Jelajahi Sumber

2020-01-18 / Alston Lin

Actions
1. Add alarm code for DC self-test failure

Files
1. As follow commit history
Alston 5 tahun lalu
induk
melakukan
45e8cefc84
1 mengubah file dengan 21 tambahan dan 3 penghapusan
  1. 21 3
      EVSE/Projects/define.h

+ 21 - 3
EVSE/Projects/define.h

@@ -564,13 +564,22 @@ char AlarmStatusCode[128][6]=
 	"012276", 	// PSU Three Phase Input Inadequate
 	"012277", 	// PSU Three Phase Onput Imbalance
 	"012278", 	// PSU Ffc Side ShutDown
+	"012279", 	//Reserved
+	"012280", 	// Self test Failed due to communication of Relayboard failure
+	"012281", 	// Self test Failed due to communication of Fanboard failure
+	"012282", 	// Self test Failed due to communication of Primary failure
+	"012283", 	// Self test Failed due to communication of Chademoboard failure
+	"012284", 	// Self test Failed due to communication of CCSboard failure
+	"012285", 	// Self test Failed due to AC Contact failure
+	"012286", 	// Self test Failed due to communication of PSU failure
+	"012287", 	//Reserved
 };
 struct AlarmCodeData
 {
-	unsigned char PreviousAlarmVal[10];
+	unsigned char PreviousAlarmVal[11];
 	union
 	{
-		unsigned char AlarmVal[10];
+		unsigned char AlarmVal[11];
 		struct
 		{
 			//AlarmVal[0]
@@ -662,7 +671,16 @@ struct AlarmCodeData
 			unsigned char PsuThreePhaseInputInadequate :1;				//bit 4
 			unsigned char PsuThreePhaseOnputImbalance :1;				//bit 5
 			unsigned char PsuFfcSideShutDown :1;						//bit 6
-			unsigned char :1;									//bit 7
+			unsigned char :1;
+			//AlarmVal[10]
+			unsigned char RelayboardStestFail :1;					//bit 0
+			unsigned char FanboardStestFail :1;					//bit 1
+			unsigned char PrimaryStestFail :1;					//bit 2
+			unsigned char ChademoboardStestFail :1;			//bit 3
+			unsigned char CCSboardStestFail :1;				//bit 4
+			unsigned char AcContactStestFail :1;				//bit 5
+			unsigned char PsuModuleStestFail :1;						//bit 6
+			unsigned char :1;									//bit 7									//bit 7
 		}bits;
 	}AlarmEvents;
 };