📄 gy33485.c
字号:
DisStartT(1,200);
break;
case 2:
DisStopT(1,206);
break;
case 3:
DisStartT(2,212);
break;
case 4:
DisStopT(2,218);
break;
case 5:
DisStartT(3,224);
break;
case 6:
DisStopT(3,230);
break;
case 7:
DisStartT(4,236);
break;
case 8:
DisStopT(4,242);
break;
case 9:
DisStartT(5,248);
break;
case 10:
DisStopT(5,254);
break;
case 11:
DisStartT(6,260);
break;
case 12:
DisStopT(6,266);
break;
case 13:
DisStartT(7,272);
break;
case 14:
DisStopT(7,278);
break;
case 15:
DisStartT(8,284);
break;
case 16:
DisStopT(8,290);
break;
case 17:
DisStartT(9,296);
break;
case 18:
DisStopT(9,302);
break;
case 19:
DisStartT(0,308);
break;
case 20:
DisStopT(0,314);
break;
}
break;
case 3: //for Uc
Phase_select(Phase_C);
num3 %= 20;
num3++;
switch(num3)
{
case 1:
DisStartT(1,320);
break;
case 2:
DisStopT(1,326);
break;
case 3:
DisStartT(2,332);
break;
case 4:
DisStopT(2,338);
break;
case 5:
DisStartT(3,344);
break;
case 6:
DisStopT(3,350);
break;
case 7:
DisStartT(4,356);
break;
case 8:
DisStopT(4,362);
break;
case 9:
DisStartT(5,368);
break;
case 10:
DisStopT(5,374);
break;
case 11:
DisStartT(6,380);
break;
case 12:
DisStopT(6,386);
break;
case 13:
DisStartT(7,392);
break;
case 14:
DisStopT(7,398);
break;
case 15:
DisStartT(8,404);
break;
case 16:
DisStopT(8,410);
break;
case 17:
DisStartT(9,416);
break;
case 18:
DisStopT(9,422);
break;
case 19:
DisStartT(0,428);
break;
case 20:
DisStopT(0,434);
break;
}
break;
case 4: //for Ia
Phase_select(Phase_A);
num4 %= 20;
num4++;
switch(num4)
{
case 1:
DisStartT(1,440);
break;
case 2:
DisStopT(1,446);
break;
case 3:
DisStartT(2,452);
break;
case 4:
DisStopT(2,458);
break;
case 5:
DisStartT(3,464);
break;
case 6:
DisStopT(3,470);
break;
case 7:
DisStartT(4,476);
break;
case 8:
DisStopT(4,482);
break;
case 9:
DisStartT(5,488);
break;
case 10:
DisStopT(5,494);
break;
case 11:
DisStartT(6,500);
break;
case 12:
DisStopT(6,506);
break;
case 13:
DisStartT(7,512);
break;
case 14:
DisStopT(7,518);
break;
case 15:
DisStartT(8,524);
break;
case 16:
DisStopT(8,530);
break;
case 17:
DisStartT(9,536);
break;
case 18:
DisStopT(9,542);
break;
case 19:
DisStartT(0,548);
break;
case 20:
DisStopT(0,554);
break;
}
break;
case 5: //for Ic
Phase_select(Phase_C);
num5 %= 20;
num5++;
switch(num5)
{
case 1:
DisStartT(1,560);
break;
case 2:
DisStopT(1,566);
break;
case 3:
DisStartT(2,572);
break;
case 4:
DisStopT(2,578);
break;
case 5:
DisStartT(3,584);
break;
case 6:
DisStopT(3,590);
break;
case 7:
DisStartT(4,596);
break;
case 8:
DisStopT(4,602);
break;
case 9:
DisStartT(5,608);
break;
case 10:
DisStopT(5,614);
break;
case 11:
DisStartT(6,620);
break;
case 12:
DisStopT(6,626);
break;
case 13:
DisStartT(7,632);
break;
case 14:
DisStopT(7,638);
break;
case 15:
DisStartT(8,644);
break;
case 16:
DisStopT(8,650);
break;
case 17:
DisStartT(9,656);
break;
case 18:
DisStopT(9,662);
break;
case 19:
DisStartT(0,668);
break;
case 20:
DisStopT(0,674);
break;
}
break;
case 6: //for Ip
LCD_WD2(26,0x08); //no display A,B,C
num6 %= 20;
num6++;
switch(num6)
{
case 1:
DisStartT(1,680);
break;
case 2:
DisStopT(1,686);
break;
case 3:
DisStartT(2,692);
break;
case 4:
DisStopT(2,698);
break;
case 5:
DisStartT(3,704);
break;
case 6:
DisStopT(3,710);
break;
case 7:
DisStartT(4,716);
break;
case 8:
DisStopT(4,722);
break;
case 9:
DisStartT(5,728);
break;
case 10:
DisStopT(5,734);
break;
case 11:
DisStartT(6,740);
break;
case 12:
DisStopT(6,746);
break;
case 13:
DisStartT(7,752);
break;
case 14:
DisStopT(7,758);
break;
case 15:
DisStartT(8,764);
break;
case 16:
DisStopT(8,770);
break;
case 17:
DisStartT(9,776);
break;
case 18:
DisStopT(9,782);
break;
case 19:
DisStartT(0,788);
break;
case 20:
DisStopT(0,794);
break;
}
break;
default:
break;
}
SpIntval = 100;
//TR0 = 1;
TR2=1;
}
if(!SpIntval)
{
ResetNum = 1;//显示"第0次故障"
Init_IC1();
LCD_WD2(26,0x0F);
a_stop = 0;
a_start = 0;
TotalNumOfTrb(disnum[0]);
P2_5 = 0;
}
///////////////////////////////////////////
//if(Ia_in&&Ib_in&&Ic_in&&Ua_in&&Ub_in&&Uc_in&&!Ip_in&&!UX_in) //for low voltage ammeter
if(Ia_in&&Ic_in&&Ua_in&&Ub_in&&Uc_in&&!Ip_in) //for high voltage ammeter
{
//beep = 1; // for mute
xx();
}
// else beep=0;
if(clrbit==0) //5-22 shaded
{
delay(DL10ms);
delay(DL10ms);
if(clrbit==0) clear();
}
set_time();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -