📄 main.c.bak
字号:
Close_Power();
goto Pin_4;
}
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
{
Close_Time3();
goto Pin_14;
}
goto loop5;
//*****************************************
Pin_14: Disp_Pin(14);
RxLen = 0;
loop14: Flag_Rec = OFF;
while(Flag_Rec == OFF );
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_7;
goto loop14;
//*****************************************
Pin_6: Disp_Pin(6);
Flag_Rec = ON;
//*******Fix_Flow*****
Return_Point();
Move_Point(4,22);
Clear_Data(Point_Kong,8);
//********
Return_Point();
Move_Point(4,37);
Send_byte(0x25);
//********
utoa(Fix_Flow,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(4,22);
Disp_Date(Point_Date,a);
//******Fix_Press*****
Return_Point();
Move_Point(7,22);//15);
Clear_Data(Point_Kong,8);
//*******
Return_Point();
Move_Point(7,36);
Send_byte(0x6d);
Send_byte(0x54);
//********
utoa(Fix_Press,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(7,22);
Disp_Date(Point_Date,a);
//*******Fix_Time*****
Return_Point();
Move_Point(10,22);//15);
Clear_Data(Point_Kong,8);
//**********
Return_Point();
Move_Point(10,37);
Send_byte(0x53);
//**********
utoa(Fix_Time,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(10,22);
Disp_Date(Point_Date,a);
//**************************
loop6: Flag_Rec = OFF;
RxLen = 0;
while( Flag_Rec == OFF );
Asc_Dig();
//*********SET UP ****FLOW PRESSURE TIME ***
if((KEY_P6_rateP[0] <= X_Zb) && (X_Zb <= KEY_P6_rateP[2]) && (Y_Zb <=KEY_P6_rateP[1])&&(KEY_P6_rateP[3]<= Y_Zb))
{
Key_board( &Fix_Flow);
goto Pin_6;
}
if((KEY_P6_pressP[0] <= X_Zb) && (X_Zb <= KEY_P6_pressP[2]) && (Y_Zb <=KEY_P6_pressP[1])&&(KEY_P6_pressP[3]<= Y_Zb))
{
GonGon = Fix_Press;
Key_board( &Fix_Press);
if( Fix_18_Press > Fix_Press )
{
Fix_Press = GonGon;
goto Pin_19;
}
goto Pin_6;
}
if((KEY_P6_timeP[0] <= X_Zb) && (X_Zb <= KEY_P6_timeP[2]) && (Y_Zb <=KEY_P6_timeP[1])&&(KEY_P6_timeP[3]<= Y_Zb))
{
Key_board( &Fix_Time);
goto Pin_6;
}
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_18;
goto loop6;
//*****************************************
Pin_zx: Disp_Pin(6);
Flag_Rec = OFF;
RxLen = 0;
//*******Fix_Flow*****
Return_Point();
Move_Point(4,15);
Clear_Data(Point_Kong,8);
//********
Return_Point();
Move_Point(4,30);
Send_byte(0x25);
//********
utoa(Fix_Flow,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(4,15);
Disp_Date(Point_Date,a);
//******Fix_Press*****
Return_Point();
Move_Point(7,15);
Clear_Data(Point_Kong,8);
//*******
Return_Point();
Move_Point(7,29);
Send_byte(0x6d);
Send_byte(0x54);
//********
utoa(Fix_ZX,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(7,15);
Disp_Date(Point_Date,a);
//*******Fix_Time*****
Return_Point();
Move_Point(10,15);
Clear_Data(Point_Kong,8);
//**********
Return_Point();
Move_Point(10,30);
Send_byte(0x53);
//**********
utoa(Fix_Time,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(10,15);
Disp_Date(Point_Date,a);
//**************************
loopzx: while( Flag_Rec == OFF );
Flag_Rec = OFF;
RxLen = 0;
Asc_Dig();
//*********SET UP ****FLOW PRESSURE TIME ***
if((KEY_P6_rateP[0] <= X_Zb) && (X_Zb <= KEY_P6_rateP[2]) && (Y_Zb <=KEY_P6_rateP[1])&&(KEY_P6_rateP[3]<= Y_Zb))
{
Key_board( &Fix_Flow);
goto Pin_6;
}
if((KEY_P6_pressP[0] <= X_Zb) && (X_Zb <= KEY_P6_pressP[2]) && (Y_Zb <=KEY_P6_pressP[1])&&(KEY_P6_pressP[3]<= Y_Zb))
{
Key_board( &Fix_ZX);
goto Pin_6;
}
if((KEY_P6_timeP[0] <= X_Zb) && (X_Zb <= KEY_P6_timeP[2]) && (Y_Zb <=KEY_P6_timeP[1])&&(KEY_P6_timeP[3]<= Y_Zb))
{
Key_board( &Fix_Time);
goto Pin_6;
}
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_4;
goto loopzx;
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Pin_7: Disp_Pin(7);
Open_Power();
Write_Plump_SetPoint_1();
Return_Point();
Move_Point(7,12);
Clear_Data(Point_Kong,7);
Return_Point();
Move_Point(7,12);
Send_byte(0X2A);
Open_One_Min();
Flag_Rec = OFF;
RxLen = 0;
loop7: if( Flag_ONE == ON)
{
Flag_ONE = OFF;
Close_One_Min();
Close_Window();
goto Pin_5_1;
}
if( Flag_Rec == OFF )
goto loop7;
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
{
Close_One_Min();
goto Pin_4;
}
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
{
Close_One_Min();
Close_Window();
Write_Plump_SetPoint_1();
goto Pin_5_1;
}
Flag_Rec = OFF;
RxLen = 0;
goto loop7;
//*******************************************
Pin_5_1: Disp_Pin(5);
Flag_Rec = OFF;
RxLen = 0;
Open_Time3();
Brush51: PRESS_Write(PRESS_TX,6);
asm("nop");
if( Flag_ZD == ON)
{
Flag_ZD = OFF;
Disp_Press(7,12);
if( Fix_18_Press >= 1000)
{
if(WWW <= (Fix_18_Press/1000))
{
Close_Time3();
Write_Flow_Rat();
Write_Plump_SetPoint();
goto Pin_8;
}
}
else
{
if( (WWW1 !=0) && (WWW1 <= Fix_18_Press))
{
Close_Time3();
Write_Flow_Rat();
Write_Plump_SetPoint();
goto Pin_8;
}
}
}
loop51: while(Flag_Rec == OFF)
{
if(Flag_Time3 == ON)
{
Flag_Time3 = OFF;
goto Brush51;
}
}
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
{
Close_Time3();
goto Pin_4;
}
Flag_Rec = OFF;
RxLen = 0;
goto loop51;
//********************************************
Pin_8: Disp_Pin(8);
Buff_Time = Fix_Time;
Fix_Time = 300;
Open_Fix_Second();
Flag_Rec = OFF;
RxLen = 0;
PRESS_Write(PRESS_TX,6);
asm("nop");
asm("nop");
asm("nop");
asm("nop");
do
{
AAA1 = 0;
if( DD == 2)
{
DD = 0;
if( Flag_ZD == ON)
{
Flag_ZD = OFF;
Disp_Press(10,15);
Disp_Flow(6,15);
PRESS_Write(PRESS_TX,6);
asm("nop");
}
else
{
PRESS_Write(PRESS_TX,6);
asm("nop");
asm("nop");
asm("nop");
}
}
if(Flag_Rec == ON)
{
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
{
Close_Fix_Second();
Fix_Time = Buff_Time;
goto Pin_4;
}
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
{
Close_Fix_Second();
Fix_Time = Buff_Time;
goto Pin_9;
}
Flag_Rec = OFF;
RxLen = 0;
}
}while(Flag_1S == OFF );
Close_Fix_Second();
Fix_Time = Buff_Time;
goto Pin_9;
//********************************************
Pin_9: Disp_Pin(9);
Write_Plum_P();
Flag_Rec = OFF;
RxLen = 0;
loop9: while( Flag_Rec == OFF );
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_10;
Flag_Rec = OFF;
RxLen = 0;
goto loop9;
//********************************************
Pin_10: Disp_Pin(10);
Flag_Rec = ON;
RxLen = 0;
uchar k=0;
if( Fix_Time <= 20 )
AAA2 = 2;
else
AAA2 = (Fix_Time/9);
Return_Point();
Move_Point(4,20);
Clear_Data(Point_Kong,7);
Return_Point();
Move_Point(4,20);
Send_byte(0X2A);
Open_Fix_Second();
PRESS_Write(PRESS_TX,6);
asm("nop");
do
{
if( AAA1 == AAA2 )
{
AAA1 = 0;
k++;
Return_Point();
Move_Point(4,20+k);
Send_byte(0X2A);
}
if( DD == 2)
{
DD = 0;
if( Flag_ZD == ON)
{
Flag_ZD = OFF;
Disp_Press(10,20);
Disp_Flow(7,20);
PRESS_Write(PRESS_TX,6);
asm("nop");
}
else
{
PRESS_Write(PRESS_TX,6);
asm("nop");
asm("nop");
asm("nop");
}
}
}while(Flag_1S == OFF );
Close_Fix_Second();
goto Pin_11;
//****************************************
Pin_11: Disp_Pin(11);
Flag_Rec = OFF;
RxLen = 0;
loop11: while(Flag_Rec == OFF);
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
{
Write_Plump_SetPoint_8();
Close_Power();
Write_Flow_Rat_0();
goto Pin_12;
}
Flag_Rec = OFF;
RxLen = 0;
goto loop11;
//*****************************************
Pin_12: Disp_Pin(12);
Flag_Rec = OFF;
RxLen = 0;
uchar p=0;
//**********************
Return_Point();
Move_Point(7,12);
Clear_Data(Point_Kong,7);
Return_Point();
Move_Point(7,12);
Send_byte(0X2A);
Buff_Time = Fix_Time;
Fix_Time = 10;
Open_Fix_Min();
do
{
if(p<5)
{
if( GG == 2)
{
GG = 0;
Send_byte(0X2A);
p++;
}
}
if( Flag_Rec == ON )
{
Flag_Rec = OFF;
RxLen = 0;
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
{
Close_Fix_Min();
Fix_Time = Buff_Time;
goto Pin_4;
}
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
{
Close_Fix_Min();
Fix_Time = Buff_Time;
goto Pin_13;
}
}
}while(Flag_1M == OFF );
Close_Fix_Min();
Fix_Time = Buff_Time;
goto Pin_13;
loop12: while(Flag_Rec == OFF );
RxLen = 0;
Flag_Rec = OFF;
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_13;
goto loop12;
//******************************************
Pin_13: Disp_Pin(13);
Flag_Rec = OFF;
RxLen = 0;
Open_Window();
Write_Plump_SetPoint_1();
loop13: while( Flag_Rec == OFF );
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
{
Close_Power();
}
Flag_Rec = OFF;
RxLen = 0;
goto loop13;
//*******************************************
Pin_18: Disp_Pin(18);
//*******Fix_Flow*****
Return_Point();
Move_Point(4,22);
Clear_Data(Point_Kong,8);
//********
Return_Point();
Move_Point(4,36);
Send_byte(0x6d);
Send_byte(0x54);
//********
utoa(Fix_18_Press,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(4,22);
Disp_Date(Point_Date,a);
//******Fix_Press*****
Return_Point();
Move_Point(7,22);
Clear_Data(Point_Kong,8);
//*******
Return_Point();
Move_Point(7,37);
Send_byte(0x25);
//********
utoa(Fix_18_P,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(7,22);
Disp_Date(Point_Date,a);
//*******Fix_Time*****
Return_Point();
Move_Point(10,22);
Clear_Data(Point_Kong,8);
//**********
Return_Point();
Move_Point(10,37);
Send_byte(0x25);
//**********
utoa(Fix_18_D,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(10,22);
Disp_Date(Point_Date,a);
//**************************
Flag_Rec = OFF;
RxLen = 0;
loop18: while( Flag_Rec == OFF );
Asc_Dig();
//*********SET UP ****FLOW PRESSURE TIME ***
if((KEY_P6_rateP[0] <= X_Zb) && (X_Zb <= KEY_P6_rateP[2]) && (Y_Zb <=KEY_P6_rateP[1])&&(KEY_P6_rateP[3]<= Y_Zb))
{
Key_board( &Fix_18_Press);
if( Fix_18_Press > Fix_Press )
{
goto Pin_19;
}
goto Pin_6;
}
if((KEY_P6_pressP[0] <= X_Zb) && (X_Zb <= KEY_P6_pressP[2]) && (Y_Zb <=KEY_P6_pressP[1])&&(KEY_P6_pressP[3]<= Y_Zb))
{
Key_board( &Fix_18_P);
goto Pin_6;
}
if((KEY_P6_timeP[0] <= X_Zb) && (X_Zb <= KEY_P6_timeP[2]) && (Y_Zb <=KEY_P6_timeP[1])&&(KEY_P6_timeP[3]<= Y_Zb))
{
Key_board( &Fix_18_D);
goto Pin_6;
}
//**********************************************
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_4;
Flag_Rec = OFF;
RxLen = 0;
goto loop18;
//********************************************
Pin_17: Disp_Pin(17);
//******Fix_P*****
Return_Point();
Move_Point(6,15);
Clear_Data(Point_Kong,5);
utoa(Fix_P,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(6,15);
Disp_Date(Point_Date,a);
//*******Fix_D*****
Return_Point();
Move_Point(10,15);
Clear_Data(Point_Kong,5);
utoa(Fix_D,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(10,15);
Disp_Date(Point_Date,a);
//**************************
Flag_Rec = OFF;
RxLen = 0;
loop17: while( Flag_Rec == OFF );
Asc_Dig();
//*********SET UP **** P D ***
if((KEY_P17_pP[0] <= X_Zb) && (X_Zb <= KEY_P17_pP[2]) && (Y_Zb <=KEY_P17_pP[1])&&(KEY_P17_pP[3]<= Y_Zb))
{
Key_board( &Fix_P);
goto Pin_17;
}
if((KEY_P17_dP[0] <= X_Zb) && (X_Zb <= KEY_P17_dP[2]) && (Y_Zb <=KEY_P17_dP[1])&&(KEY_P17_dP[3]<= Y_Zb))
{
Key_board( &Fix_D);
goto Pin_17;
}
//**********************************************
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_4;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_4;
Flag_Rec = OFF;
RxLen = 0;
goto loop17;
//********************************************
Pin_19: Disp_Pin(19);
Return_Point();
Move_Point(7,18);
Disp_Date(Point_Kong,2);
Send_byte(0x6d);
Send_byte(0x54);
utoa(Fix_18_Press,Point_Date,10);
a = strnlen(Point_Date,10);
Return_Point();
Move_Point(7,12);
Disp_Date(Point_Kong,4);
Return_Point();
Move_Point(7,12);
Disp_Date(Point_Date,a);
Flag_Rec = OFF;
RxLen = 0;
//**************************
loop19: while( Flag_Rec == OFF );
Asc_Dig();
if((KEY_LEFT_P[0] <= X_Zb) && (X_Zb <= KEY_LEFT_P[2]) && (Y_Zb <=KEY_LEFT_P[1])&&(KEY_LEFT_P[3]<= Y_Zb))
goto Pin_6;
if((KEY_RIGH_P[0] <= X_Zb) && (X_Zb <= KEY_RIGH_P[2]) && (Y_Zb <=KEY_RIGH_P[1])&&(KEY_RIGH_P[3]<= Y_Zb))
goto Pin_6;
RxLen = 0;
Flag_Rec = OFF;
goto loop19;
Power_OFF: Close_Power();
while(1);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -