|
|
@@ -1517,7 +1517,9 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
num_up_open--;
|
|
|
if (num_up_open == 0)
|
|
|
{
|
|
|
+#if JINGJIKUAN == 0
|
|
|
ctr_cangmen_up(OFF);
|
|
|
+#endif
|
|
|
num_up_open = 200;
|
|
|
system_status.upper_door_open_count +=1;
|
|
|
}
|
|
|
@@ -1529,7 +1531,9 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
num_up_close --;
|
|
|
if (num_up_close == 0)
|
|
|
{
|
|
|
+#if JINGJIKUAN == 0
|
|
|
ctr_cangmen_up(OFF);
|
|
|
+#endif
|
|
|
num_up_close= 200;
|
|
|
system_status.upper_door_close_count +=1;
|
|
|
}
|
|
|
@@ -1551,7 +1555,9 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
#endif
|
|
|
if (num_down_open == 0) //2025-07-07,增加限位检测
|
|
|
{
|
|
|
+#if JINGJIKUAN == 0
|
|
|
ctr_cangmen_down(OFF);
|
|
|
+#endif
|
|
|
num_down_open = 200;
|
|
|
system_status.lower_door_open_count +=1;
|
|
|
}
|
|
|
@@ -1564,7 +1570,9 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
|
|
|
if (num_down_close == 0)
|
|
|
{
|
|
|
+#if JINGJIKUAN == 0
|
|
|
ctr_cangmen_down(OFF);
|
|
|
+#endif
|
|
|
num_down_close = 200;
|
|
|
system_status.lower_door_close_count += 1;
|
|
|
}
|
|
|
@@ -1643,7 +1651,7 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
if(device_status.rain_status==1){
|
|
|
isnot_rain = 0;
|
|
|
if(is_rain==0){
|
|
|
- ctr_rain_motor(CLOSE);
|
|
|
+ ctr_Collect_Fan(OFF); //触发雨控
|
|
|
rt_thread_delay(2000);
|
|
|
device_status.ctr_up_motor = 2; //关闭上仓门
|
|
|
is_rain = 1;
|
|
|
@@ -1651,7 +1659,7 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
}else{
|
|
|
is_rain = 0;
|
|
|
if(isnot_rain == 0){
|
|
|
- ctr_rain_motor(OPEN);
|
|
|
+ ctr_Collect_Fan(ON); //解除雨控
|
|
|
isnot_rain = 1;
|
|
|
}
|
|
|
}
|
|
|
@@ -1870,7 +1878,8 @@ void Check_ParamConfig(void)
|
|
|
if(device_status.clt_time==0) device_status.clt_time = 10;
|
|
|
if(device_status.heattime==0) device_status.heattime = 10;
|
|
|
if(device_status.tph==0&&device_status.tpl==0){ //参数丢失
|
|
|
- ResetParamDefault_DC();
|
|
|
+ device_status.tpl = 5;
|
|
|
+ device_status.tph = 70;
|
|
|
}
|
|
|
if(device_status.heatvalue==0) device_status.heatvalue = 100;
|
|
|
if(device_status.work_mode>1) device_status.work_mode = 0;
|
|
|
@@ -1958,7 +1967,10 @@ void Check_ParamConfig(void)
|
|
|
rt_sprintf(device_status.sim,"1");
|
|
|
Sys_Motor_Task();
|
|
|
ctr_router(ON);
|
|
|
- ctr_Cold(ON);
|
|
|
+#if JINGJIKUAN == 1
|
|
|
+ ctr_Cold(ON); //球阀电机电源
|
|
|
+ ctr_Collect_Fan(ON); //雨控解除
|
|
|
+#endif
|
|
|
Hmi_Fresh();
|
|
|
Control_clear();
|
|
|
Control_Check(); //自检
|