📄 byq10.c
字号:
V_QHa=0;
V_QHb=0; //A,E
A_QH=1;
Uo_QH=1;
DCF1=0;
DCF3=0;
DCF5=0;
DCF2=1;
break;
case 3:
Dis_buff[0]=dis_char[3]; //显示2
Dis_buff[1]=dis_char[15]; //显示U
IRkey_value=1;
V_QHa=0;
V_QHb=0; //A,E
A_QH=1;
Uo_QH=1;
DCF1=0;
DCF2=0;
DCF5=0;
DCF3=1;
break;
case 4:
Dis_buff[0]=dis_char[4];
Dis_buff[1]=dis_char[15]; //显示U
IRkey_value=1;
V_QHa=0;
V_QHb=0; //A,E
A_QH=1;
Uo_QH=1;
DCF1=0;
DCF2=0;
DCF3=0;
DCF5=1;
break;
default:
Uokey_value=0; //程序键壮用
break;
}
}
else
{
switch(Iokey_value)
{
case 0:
Dis_buff[0]=dis_char[0]; //显示0
Dis_buff[1]=dis_char[0]; //显示0
if(IRkey_value==1)
{
V_QHa=0;
V_QHb=0; //A,E
}
else
{
V_QHa=0;
V_QHb=1; //B,C
}
Uo_QH=0;
A_QH=0;
DCF1=0;
DCF2=0;
DCF3=0;
DCF5=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[10];
Uo_QH=0;
A_QH=1;
DCF2=0;
DCF3=0;
DCF5=0;
DCF1=1;
break;
case 2:
Dis_buff[0]=dis_char[2];
Dis_buff[1]=dis_char[10];
Uo_QH=0;
A_QH=1;
DCF1=0;
DCF3=0;
DCF5=0;
DCF2=1;
break;
case 3:
Dis_buff[0]=dis_char[3];
Dis_buff[1]=dis_char[10];
Uo_QH=0;
A_QH=1;
DCF1=0;
DCF2=0;
DCF5=0;
DCF3=1;
break;
case 4:
Dis_buff[0]=dis_char[4];
Dis_buff[1]=dis_char[10];
Uo_QH=0;
A_QH=1;
DCF1=0;
DCF2=0;
DCF3=0;
DCF5=1;
break;
default:
Iokey_value=0; //程序键壮用
break;
}
}
}
/******************************************************************
功 能:16系列执行程序
说 明:
******************************************************************/
void lf2016(void)
{
ZL=1;
DCF3=0;
DCF4=0;
UIx=3; //确定路数
if(!uibz)
{
switch(Uokey_value)
{
case 0:
Dis_buff[0]=dis_char[0]; //显示0
Dis_buff[1]=dis_char[0]; //显示0
DCF1=0;
DCF2=0;
DCF5=0;
if(IRkey_value==1)
{
V_QHa=0;
V_QHb=0; //A,E
}
else
{
V_QHa=0;
V_QHb=1; //B,C
}
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[15];
A_QH=1;
Uo_QH=1;
V_QHa=0;
V_QHb=0; //A,E
DCF2=0;
DCF5=0;
DCF1=1;
break;
case 2:
Dis_buff[0]=dis_char[2];
Dis_buff[1]=dis_char[15];
A_QH=1;
Uo_QH=1;
V_QHa=0;
V_QHb=1; //A,E
DCF1=0;
DCF5=0;
DCF2=1;
break;
case 3:
Dis_buff[0]=dis_char[3];
Dis_buff[1]=dis_char[15];
A_QH=1;
Uo_QH=1;
V_QHa=0;
V_QHb=0; //A,E
DCF1=0;
DCF2=0;
DCF5=1;
break;
default:
Uokey_value=0; //程序键壮用
break;
}
}
else
{
switch(Iokey_value)
{
case 0:
Dis_buff[0]=dis_char[0]; //显示0
Dis_buff[1]=dis_char[0];
DCF1=0;
DCF2=0;
DCF5=0;
if(IRkey_value==1)
{
V_QHa=0;
V_QHb=0; //A,E
}
else
{
V_QHa=0;
V_QHb=1; //B,C
}
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1]; //显示1
Dis_buff[1]=dis_char[10];
DCF2=0;
DCF5=0;
Uo_QH=0;
A_QH=1;
DCF1=1;
break;
case 2:
Dis_buff[0]=dis_char[2]; //显示2
Dis_buff[1]=dis_char[10];
DCF1=0;
DCF5=0;
Uo_QH=0;
A_QH=1;
DCF2=1;
break;
case 3:
Dis_buff[0]=dis_char[3]; //显示3
Dis_buff[1]=dis_char[10];
DCF1=0;
DCF2=0;
Uo_QH=0;
A_QH=1;
DCF5=1;
break;
default:
Iokey_value=0;
break;
}
}
}
/******************************************************************
功 能:21系列执行程序
说 明:
******************************************************************/
void lf2021(void)
{
ZL=1;
V_QHa=1;
V_QHb=0; //B,C
DCF1=0;
DCF2=0;
DCF3=0;
DCF5=0;
UIx=1; //确定路数
if(!uibz)
{
switch(Uokey_value)
{
case 0:
Dis_buff[0]=dis_char[0]; //显示0
Dis_buff[1]=dis_char[0]; //显示0
DCF4=0;
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[15];
Uo_QH=1;
A_QH=1;
DCF4=1;
break;
default:
Uokey_value=0;
break;
}
}
else
{
switch(Iokey_value)
{
case 0:
Dis_buff[0]=dis_char[0];
Dis_buff[1]=dis_char[0];
DCF4=0;
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[10];
A_QH=1;
Uo_QH=0;
DCF4=0;
break;
default:
Iokey_value=0;
break;
}
}
}
/******************************************************************
功 能:27系列执行程序
说 明:
******************************************************************/
void lf2027(void)
{
ZL=0;
V_QHa=1;
V_QHb=0; //B,D
DCF2=0;
DCF3=0;
DCF5=0;
UIx=2; //确定路数
if(!uibz)
{
switch(Uokey_value)
{
case 0:
Dis_buff[0]=dis_char[0]; //显示0
Dis_buff[1]=dis_char[0]; //显示0
DCF1=0;
DCF4=0;
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[15];
DCF4=0;
Uo_QH=1;
A_QH=1;
DCF1=1;
break;
case 2:
Dis_buff[0]=dis_char[2];
Dis_buff[1]=dis_char[15];
DCF1=0;
Uo_QH=1;
A_QH=1;
DCF4=1;
break;
default:
Uokey_value=0;
break;
}
}
else
{
switch(Iokey_value)
{
case 0:
Dis_buff[0]=dis_char[0]; //显示0
Dis_buff[1]=dis_char[0]; //显示0
DCF1=0;
DCF4=0;
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[10];
DCF4=0;
Uo_QH=0;
A_QH=1;
DCF1=1;
break;
case 2:
Dis_buff[0]=dis_char[2];
Dis_buff[1]=dis_char[10];
DCF1=0;
Uo_QH=0;
A_QH=1;
DCF4=1;
break;
default:
Iokey_value=0;
break;
}
}
}
/******************************************************************
功 能:40系列执行程序
说 明:双路双通道电流传输系列的变压器
******************************************************************/
void lf2040(void)
{
ZL=0;
DCF4=0;
UIx=4; //确定路数
if(!uibz)
{
switch(Uokey_value)
{
case 0:
Dis_buff[0]=dis_char[0];
Dis_buff[1]=dis_char[0];
if(IRkey_value==1)
{
V_QHa=0;
V_QHb=0; //A,E 第一通道
}
else //第二通道
{
V_QHa=0;
V_QHb=1; //B,C
}
DCF1=0;
DCF2=0;
DCF3=0;
DCF5=0;
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[15];
DCF2=0;
DCF3=0;
DCF5=0;
V_QHa=0;
V_QHb=0;
Uo_QH=1;
A_QH=1;
DCF1=1;
break;
case 2:
Dis_buff[0]=dis_char[2];
Dis_buff[1]=dis_char[15];
DCF1=0;
DCF3=0;
DCF5=0;
V_QHa=0;
V_QHb=0;
Uo_QH=1;
A_QH=1;
DCF2=1;
break;
case 3:
Dis_buff[0]=dis_char[3];
Dis_buff[1]=dis_char[15];
DCF1=0;
DCF2=0;
DCF5=0;
V_QHa=0;
V_QHb=1;
Uo_QH=1;
A_QH=1;
DCF3=1;
break;
case 4:
Dis_buff[0]=dis_char[4];
Dis_buff[1]=dis_char[15];
DCF1=0;
DCF2=0;
DCF3=0;
V_QHa=0;
V_QHb=1;
Uo_QH=1;
A_QH=1;
DCF5=1;
break;
default:
Uokey_value=0;
break;
}
}
else
{
switch(Iokey_value)
{
case 0:
Dis_buff[0]=dis_char[0];
Dis_buff[1]=dis_char[0];
if(IRkey_value==1)
{
V_QHa=0;
V_QHb=0; //A,E 第一通道
}
else //第二通道
{
V_QHa=0;
V_QHb=1; //B,C
}
DCF1=0;
DCF2=0;
DCF3=0;
DCF5=0;
Uo_QH=0;
A_QH=0;
break;
case 1:
Dis_buff[0]=dis_char[1];
Dis_buff[1]=dis_char[10];
DCF2=0;
DCF3=0;
DCF5=0;
Uo_QH=0;
A_QH=1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -