forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

周巍
2024-04-11 91ef77c00ed797b1048c5187f416e351e646a009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include "system_realtime_run_para.h"
 
calendar_obj   calendar;
sClockBCD      Time_BCD_g; //BCD
LLJ_PARA_T     llg_data_g;
BILLING_PARA_T billing_para_g;
SYSTEM_STATUS_PARA_T system_status_para_g;
ALARM_REPORT_PARA_T alarm_report_para_g;
 
 
/******************************************
 * func: alarm_cnt_clear
 * desc: Ã¿Ì챨¾¯¿ØÖÆ´ÎÊý²ÎÊýÇåÁã
 * input: none
 * output: none
 * return: none
 *****************************************/
void alarm_cnt_clear(void)
{
    if(alarm_report_para_g.Last_day != calendar.date)
    {
        //ÿÌìÇåÁ㱨¾¯´ÎÊý¼ÆÊý£¬  Ã¿ÖÖ±¨¾¯Ã¿ÌìÏÞÖÆ±¨¾¯´ÎÊý£¬·ÀÖ¹·´¸´Æµ·±±¨¾¯£¬¼õÉÙµç³ØÊÙÃü
        alarm_report_para_g.Last_day = calendar.date;
        
        alarm_report_para_g.extern_power_connect_cnt=0;
        alarm_report_para_g.cover_open_cnt=0;
        alarm_report_para_g.mainboard_remove_cnt=0;
        
        //¼Æ·ÑÓë·§ÃÅ״̬
        alarm_report_para_g.balance_small_1_cnt=0;   
        alarm_report_para_g.balance_small_2_cnt=0;    
        alarm_report_para_g.balance_small_3_cnt=0;
        alarm_report_para_g.balance_small_4_cnt=0;
        alarm_report_para_g.balance_small_5_cnt=0;
 
        alarm_report_para_g.many_days_no_gas_cnt=0;
        alarm_report_para_g.many_days_no_report_cnt=0;
        alarm_report_para_g.cumulant_reaches_set_value_cnt=0;    
 
        alarm_report_para_g.valve_op_cl_cnt=0;
        alarm_report_para_g.valve_abnormal_cnt=0;
        
        //µç³ØÓë¶Ô½ÓÉ豸״̬
        alarm_report_para_g.lith_bat_low_cnt=0;
        alarm_report_para_g.lith_bat_down_cnt=0;
        alarm_report_para_g.lith_bat_remove_cnt=0;
        
        alarm_report_para_g.alka_bat_low_cnt=0;
        alarm_report_para_g.alka_bat_down_cnt=0;
        alarm_report_para_g.alka_bat_remove_cnt=0;    
        
        alarm_report_para_g.flow_bat_low_cnt=0;
        alarm_report_para_g.flow_bat_down_cnt=0;
        
        alarm_report_para_g.gprs_com_cnt=0;    
        alarm_report_para_g.rs485_com_cnt=0;
        alarm_report_para_g.rs485_read_small_cnt=0;
        
        alarm_report_para_g.pulse_broken_cnt=0;
        alarm_report_para_g.valve_bat_low_cnt=0;
        alarm_report_para_g.valve_bat_down_cnt=0;
        alarm_report_para_g.rtc_bat_cnt=0;
        
        //ÎÂѹ״̬
        alarm_report_para_g.system_tem_alarm_fault_cnt=0;
        alarm_report_para_g.system_tem_alarm_up_cnt=0;
        alarm_report_para_g.system_tem_alarm_up_up_cnt=0;
        alarm_report_para_g.system_tem_alarm_low_cnt=0;
        alarm_report_para_g.system_tem_alarm_low_low_cnt=0;
        
        alarm_report_para_g.system_pre_alarm_fault_cnt=0;
        alarm_report_para_g.system_pre_alarm_up_cnt=0;
        alarm_report_para_g.system_pre_alarm_up_up_cnt=0;
        alarm_report_para_g.system_pre_alarm_low_cnt=0;
        alarm_report_para_g.system_pre_alarm_low_low_cnt=0;
        
        alarm_report_para_g.ambient_tem_alarm_up_cnt=0;
        alarm_report_para_g.ambient_tem_alarm_low_cnt=0;
        alarm_report_para_g.ambient_temp_sudden_change_cnt=0;//»·Î¾ç±ä    
        
        //¼ÆÁ¿×´Ì¬
        
        //ÆäËû״̬
        alarm_report_para_g.gas_leak_cnt=0;
        alarm_report_para_g.lcd_overrun_cnt=0;
        alarm_report_para_g.lcd_temp_low_cnt=0;
 
        alarm_report_para_g.flow_up1_cnt=0;
        alarm_report_para_g.flow_up2_cnt=0;
        alarm_report_para_g.flow_up3_cnt=0;
        
        alarm_report_para_g.valve_close_but_flow_cnt=0;
        alarm_report_para_g.e2p_write_abnormal_cnt=0;
        alarm_report_para_g.e2p_read_abnormal_cnt=0;
    }
}