?? lcm.c
字號:
case 5:
LCM_WriteEnglish(x,y,No5); //寫數字“0”
break; //中斷退出
case 6:
LCM_WriteEnglish(x,y,No6); //寫數字“0”
break; //中斷退出
case 7:
LCM_WriteEnglish(x,y,No7); //寫數字“0”
break; //中斷退出
case 8:
LCM_WriteEnglish(x,y,No8); //寫數字“0”
break; //中斷退出
case 9:
LCM_WriteEnglish(x,y,No9); //寫數字“0”
break; //中斷退出
default:
LCM_WriteEnglish(x,y,FH0); //寫數字“*”
break;
}
switch(ge)
{
case 0:
LCM_WriteEnglish(x,y+1,No0); //寫數字“0”
break; //中斷退出
case 1:
LCM_WriteEnglish(x,y+1,No1); //寫數字“0”
break; //中斷退出
case 2:
LCM_WriteEnglish(x,y+1,No2); //寫數字“0”
break; //中斷退出
case 3:
LCM_WriteEnglish(x,y+1,No3); //寫數字“0”
break; //中斷退出
case 4:
LCM_WriteEnglish(x,y+1,No4); //寫數字“0”
break; //中斷退出
case 5:
LCM_WriteEnglish(x,y+1,No5); //寫數字“0”
break; //中斷退出
case 6:
LCM_WriteEnglish(x,y+1,No6); //寫數字“0”
break; //中斷退出
case 7:
LCM_WriteEnglish(x,y+1,No7); //寫數字“0”
break; //中斷退出
case 8:
LCM_WriteEnglish(x,y+1,No8); //寫數字“0”
break; //中斷退出
case 9:
LCM_WriteEnglish(x,y+1,No9); //寫數字“0”
break; //中斷退出
default:
LCM_WriteEnglish(x,y+1,FH0); //寫數字“*”
break;
}
}
/*=========================================================
函數名:LCM_EmptyPart()
功能:LCM顯示區不存在函數
入口參數:區域號(1個字節)
出口參數:無
=========================================================*/
void LCM_EmptyPart(Uchar part)
{
//顯示【第X區為空!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x60; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0E,W83); //“第”
LCM_No(y,0x10,part); //“X”
LCM_WriteChinese(y,0x12,W84); //“區”
LCM_WriteChinese(y,0x14,W82); //“為”
LCM_WriteChinese(y,0x16,W35); //“空”
LCM_WriteChinese(y,0x18,W77); //“!”
if(part<60) //如果區地址小于60
{
//顯示【正在進行第X+1區抄表操作…】
y=0x78; //定位行坐標
LCM_WriteChinese(y,0x08,W59); //“正”
LCM_WriteChinese(y,0x0A,W60); //“在”
LCM_WriteChinese(y,0x0C,W61); //“進”
LCM_WriteChinese(y,0x0E,W62); //“行”
LCM_WriteChinese(y,0x10,W83); //“第”
LCM_No(y,0x12,part+1); //“X+1”
LCM_WriteChinese(y,0x14,W84); //“區”
LCM_WriteChinese(y,0x16,W79); //“抄”
LCM_WriteChinese(y,0x18,W50); //“表”
LCM_WriteChinese(y,0x1A,W75); //“操”
LCM_WriteChinese(y,0x1C,W76); //“作”
LCM_WriteChinese(y,0x1E,W66); //“…”
}
}
/*=========================================================
函數名:LCM_CheckPartOver()
功能:LCM顯示區抄完成函數
入口參數:區域號(1個字節)
出口參數:無
=========================================================*/
void LCM_CheckPartOver(Uchar part)
{
//顯示【第X區抄表完成!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x60; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0C,W83); //“第”
LCM_No(y,0x0E,part); //“X”
LCM_WriteChinese(y,0x10,W84); //“區”
LCM_WriteChinese(y,0x12,W79); //“抄”
LCM_WriteChinese(y,0x14,W50); //“表”
LCM_WriteChinese(y,0x16,W55); //“完”
LCM_WriteChinese(y,0x18,W56); //“成”
LCM_WriteChinese(y,0x1A,W77); //“!”
if(part<60) //如果區地址小于60
{
//顯示【正在進行第X+1區抄表操作…】
y=0x78; //定位行坐標
LCM_WriteChinese(y,0x08,W59); //“正”
LCM_WriteChinese(y,0x0A,W60); //“在”
LCM_WriteChinese(y,0x0C,W61); //“進”
LCM_WriteChinese(y,0x0E,W62); //“行”
LCM_WriteChinese(y,0x10,W83); //“第”
LCM_No(y,0x12,part+1); //“X+1”
LCM_WriteChinese(y,0x14,W84); //“區”
LCM_WriteChinese(y,0x16,W79); //“抄”
LCM_WriteChinese(y,0x18,W50); //“表”
LCM_WriteChinese(y,0x1A,W75); //“操”
LCM_WriteChinese(y,0x1C,W76); //“作”
LCM_WriteChinese(y,0x1E,W66); //“…”
}
}
/*=========================================================
函數名:LCM_FileOpen()
功能:LCM顯示文件打開函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_FileOpen(void)
{
//顯示【文件打開操作完成!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0B,W85); //“文”
LCM_WriteChinese(y,0x0D,W86); //“件”
LCM_WriteChinese(y,0x0F,W87); //“打”
LCM_WriteChinese(y,0x11,W88); //“開”
LCM_WriteChinese(y,0x13,W75); //“操”
LCM_WriteChinese(y,0x15,W76); //“作”
LCM_WriteChinese(y,0x17,W55); //“完”
LCM_WriteChinese(y,0x19,W56); //“成”
LCM_WriteChinese(y,0x1B,W77); //“!”
}
/*=========================================================
函數名:LCM_FileShut()
功能:LCM顯示文件關閉函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_FileShut(void)
{
//顯示【文件關閉操作完成!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0B,W85); //“文”
LCM_WriteChinese(y,0x0D,W86); //“件”
LCM_WriteChinese(y,0x0F,W89); //“關”
LCM_WriteChinese(y,0x11,W90); //“閉”
LCM_WriteChinese(y,0x13,W75); //“操”
LCM_WriteChinese(y,0x15,W76); //“作”
LCM_WriteChinese(y,0x17,W55); //“完”
LCM_WriteChinese(y,0x19,W56); //“成”
LCM_WriteChinese(y,0x1B,W77); //“!”
}
/*=========================================================
函數名:LCM_SD_ReadBlockERR()
功能:LCM顯示讀取SD卡數據失敗函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_SD_ReadBlockERR(void)
{
//顯示【讀取SD卡數據失敗!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0B,W93); //“讀”
LCM_WriteChinese(y,0x0D,W94); //“取”
LCM_WriteEnglish(y,0x0F,No28); //寫字母“S”
LCM_WriteEnglish(y,0x10,No13); //寫字母“D”
LCM_WriteChinese(y,0x11,W41); //“卡”
LCM_WriteChinese(y,0x13,W53); //“數”
LCM_WriteChinese(y,0x15,W54); //“據”
LCM_WriteChinese(y,0x17,W44); //“失”
LCM_WriteChinese(y,0x19,W45); //“敗”
LCM_WriteChinese(y,0x1B,W77); //“!”
}
/*=========================================================
函數名:LCM_SD_WriteBlockERR()
功能:LCM顯示寫入SD卡數據失敗函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_SD_WriteBlockERR(void)
{
//顯示【寫入SD卡數據失敗!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0B,W128); //“寫”
LCM_WriteChinese(y,0x0D,W129); //“入”
LCM_WriteEnglish(y,0x0F,No28); //寫字母“S”
LCM_WriteEnglish(y,0x10,No13); //寫字母“D”
LCM_WriteChinese(y,0x11,W41); //“卡”
LCM_WriteChinese(y,0x13,W53); //“數”
LCM_WriteChinese(y,0x15,W54); //“據”
LCM_WriteChinese(y,0x17,W44); //“失”
LCM_WriteChinese(y,0x19,W45); //“敗”
LCM_WriteChinese(y,0x1B,W77); //“!”
}
/*=========================================================
函數名:LCM_NowDateERR()
功能:LCM顯示當日無數據函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_NowDateERR(void)
{
//顯示【當日無數據!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0E,W91); //“當”
LCM_WriteChinese(y,0x10,W20); //“日”
LCM_WriteChinese(y,0x12,W92); //“無”
LCM_WriteChinese(y,0x14,W53); //“數”
LCM_WriteChinese(y,0x16,W54); //“據”
LCM_WriteChinese(y,0x18,W77); //“!”
}
/*=========================================================
函數名:LCM_MainDataOver()
功能:LCM顯示當日無數據函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_MainDataOver(void)
{
//顯示【抄表數據發送完成!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0B,W79); //“抄”
LCM_WriteChinese(y,0x0D,W50); //“表”
LCM_WriteChinese(y,0x0F,W53); //“數”
LCM_WriteChinese(y,0x11,W54); //“據”
LCM_WriteChinese(y,0x13,W98); //“發”
LCM_WriteChinese(y,0x15,W99); //“送”
LCM_WriteChinese(y,0x17,W55); //“完”
LCM_WriteChinese(y,0x19,W56); //“成”
LCM_WriteChinese(y,0x1B,W77); //“!”
}
/*=========================================================
函數名:LCM_ProgramRunERR()
功能:LCM顯示當日無數據函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_ProgramRunERR(void)
{
//顯示【程序運行錯誤!】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x68; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0D,W95); //“程”
LCM_WriteChinese(y,0x0F,W96); //“序”
LCM_WriteChinese(y,0x11,W97); //“運”
LCM_WriteChinese(y,0x13,W62); //“行”
LCM_WriteChinese(y,0x15,W80); //“錯”
LCM_WriteChinese(y,0x17,W81); //“誤”
LCM_WriteChinese(y,0x19,W77); //“!”
}
/*=========================================================
函數名:LCM_WarnTest()
功能:LCM顯示正在巡檢函數
入口參數:無
出口參數:無
=========================================================*/
void LCM_WarnTest(void)
{
//顯示【正在巡檢,請稍候……】
Uchar y; //聲明變量
LCM_ClearWorkSpace(); //清除工作區
y=0x40; //顯示縱坐標賦值
LCM_WriteChinese(y,0x0B,W59); //“正”
LCM_WriteChinese(y,0x0D,W60); //“在”
LCM_WriteChinese(y,0x0F,W100); //“巡”
LCM_WriteChinese(y,0x11,W51); //“檢”
LCM_WriteChinese(y,0x13,W78); //“,”
LCM_WriteChinese(y,0x15,W63); //“請”
LCM_WriteChinese(y,0x17,W64); //“稍”
LCM_WriteChinese(y,0x19,W65); //“候”
LCM_WriteChinese(y,0x1B,W66); //“…”
}
/*=========================================================
函數名:LCM_0x87()
功能:LCM顯示空調箱缺相函數
入口參數:縱坐標(1字節)
出口參數:無
=========================================================*/
void LCM_0x87(Uchar y)
{
//顯示【空調箱缺相】
LCM_WriteChinese(y,0x0D,W35); //“空”
LCM_WriteChinese(y,0x0F,W36); //“調”
LCM_WriteChinese(y,0x11,W102); //“箱”
LCM_WriteChinese(y,0x13,W103); //“缺”
LCM_WriteChinese(y,0x15,W104); //“相”
}
/*=========================================================
函數名:LCM_0x88()
功能:LCM顯示檔壞函數
入口參數:縱坐標(1字節)
出口參數:無
=========================================================*/
void LCM_0x88(Uchar y)
{
//顯示【檔壞】
LCM_WriteChinese(y,0x0D,W105); //“檔”
LCM_WriteChinese(y,0x0F,W106); //“壞”
}
/*=========================================================
函數名:LCM_0xEE()
功能:LCM顯示通訊故障函數
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -