📄 xuliang.lst
字号:
*** ERROR C202 IN LINE 79 OF BOTTOM\XULIANG.C: 'RAM': undefined identifier
80 1 temp_max.lword=Longdate_from_xbcd(wr_buff,3);
*** ERROR C202 IN LINE 80 OF BOTTOM\XULIANG.C: 'temp_max': undefined identifier
81 1 data_addr.word[1]=addr_currnt; //读取当前需量值
*** ERROR C202 IN LINE 81 OF BOTTOM\XULIANG.C: 'data_addr': undefined identifier
82 1 Read_data(RAM,3);
*** ERROR C202 IN LINE 82 OF BOTTOM\XULIANG.C: 'RAM': undefined identifier
83 1 curr_xuliang=Longdate_from_xbcd(wr_buff,3);
*** ERROR C202 IN LINE 83 OF BOTTOM\XULIANG.C: 'curr_xuliang': undefined identifier
84 1 if(curr_xuliang>temp_max.lword) //如果当前需量比最大需量大,则保存
*** ERROR C202 IN LINE 84 OF BOTTOM\XULIANG.C: 'curr_xuliang': undefined identifier
85 1 { temp_max.lword=curr_xuliang; //保存最大需量
*** ERROR C202 IN LINE 85 OF BOTTOM\XULIANG.C: 'temp_max': undefined identifier
86 2 for(i=0;i<3;i++)
*** ERROR C202 IN LINE 86 OF BOTTOM\XULIANG.C: 'i': undefined identifier
87 2 wr_buff[i]=temp_max.byte[i+1];
*** ERROR C202 IN LINE 87 OF BOTTOM\XULIANG.C: 'i': undefined identifier
88 2 wr_buff[3]=RTCTIME.rYear; //最大需量时间
*** ERROR C202 IN LINE 88 OF BOTTOM\XULIANG.C: 'wr_buff': undefined identifier
89 2 wr_buff[4]=RTCTIME.rMonth;
*** ERROR C202 IN LINE 89 OF BOTTOM\XULIANG.C: 'wr_buff': undefined identifier
90 2 wr_buff[5]=RTCTIME.rDate;
*** ERROR C202 IN LINE 90 OF BOTTOM\XULIANG.C: 'wr_buff': undefined identifier
91 2 wr_buff[6]=RTCTIME.rHour;
*** ERROR C202 IN LINE 91 OF BOTTOM\XULIANG.C: 'wr_buff': undefined identifier
92 2 wr_buff[7]=RTCTIME.rMinute;
*** ERROR C202 IN LINE 92 OF BOTTOM\XULIANG.C: 'wr_buff': undefined identifier
93 2 data_addr.word[1]=addr;
*** ERROR C202 IN LINE 93 OF BOTTOM\XULIANG.C: 'data_addr': undefined identifier
94 2 Write_data(RAM,8);
*** ERROR C202 IN LINE 94 OF BOTTOM\XULIANG.C: 'RAM': undefined identifier
95 2 value=1;
*** ERROR C202 IN LINE 95 OF BOTTOM\XULIANG.C: 'value': undefined identifier
96 2 }
97 1 return value;
*** ERROR C202 IN LINE 97 OF BOTTOM\XULIANG.C: 'value': undefined identifier
98 1 }
99 //==============================================================
100 //函数功能:需量处理模块
101 //
102 //==============================================================
103 void xuliangmode(void)
104 { uint8 i;
*** ERROR C202 IN LINE 104 OF BOTTOM\XULIANG.C: 'uint8': undefined identifier
*** ERROR C141 IN LINE 104 OF BOTTOM\XULIANG.C: syntax error near 'i'
105 1 struct coredata_tablestruct *p;
*** ERROR C141 IN LINE 105 OF BOTTOM\XULIANG.C: syntax error near 'struct'
*** ERROR C202 IN LINE 105 OF BOTTOM\XULIANG.C: 'coredata_tablestruct': undefined identifier
106 1 if(flag_xuliangmode==1) // 需量1秒运行一次
*** ERROR C202 IN LINE 106 OF BOTTOM\XULIANG.C: 'flag_xuliangmode': undefined identifier
107 1 { flag_xuliangmode=0;
*** ERROR C202 IN LINE 107 OF BOTTOM\XULIANG.C: 'flag_xuliangmode': undefined identifier
108 2 if(num_xuliangCF_z!=0) // 如果正向有功有脉冲,计数器累加
*** ERROR C202 IN LINE 108 OF BOTTOM\XULIANG.C: 'num_xuliangCF_z': undefined identifier
109 2 time_count_z++;
*** ERROR C202 IN LINE 109 OF BOTTOM\XULIANG.C: 'time_count_z': undefined identifier
110 2 // if(num_xuliangCF_f!=0) // 如果反向有功有脉冲,计数器累加
111 2 // time_count_f++;
112 2 if(flag_xuliangminut!=RTCTIME.rMinute) // 每分钟做一次需量计算
*** ERROR C202 IN LINE 112 OF BOTTOM\XULIANG.C: 'flag_xuliangminut': undefined identifier
113 2 { flag_xuliangminut=RTCTIME.rMinute;
C51 COMPILER V7.06 XULIANG 11/24/2008 09:37:08 PAGE 4
*** ERROR C202 IN LINE 113 OF BOTTOM\XULIANG.C: 'flag_xuliangminut': undefined identifier
114 3 time_xuliangcount++;
*** ERROR C202 IN LINE 114 OF BOTTOM\XULIANG.C: 'time_xuliangcount': undefined identifier
115 3 Read_datafromID(ID_PRIOXUL);
*** ERROR C202 IN LINE 115 OF BOTTOM\XULIANG.C: 'ID_PRIOXUL': undefined identifier
116 3 xuliang_zhouqi=value_hex_from_bcd(wr_buff[1]);
*** ERROR C202 IN LINE 116 OF BOTTOM\XULIANG.C: 'xuliang_zhouqi': undefined identifier
117 3 if(time_xuliangcount>=xuliang_zhouqi) //如果到需量周期
*** ERROR C202 IN LINE 117 OF BOTTOM\XULIANG.C: 'time_xuliangcount': undefined identifier
118 3 { time_xuliangcount=0;
*** ERROR C202 IN LINE 118 OF BOTTOM\XULIANG.C: 'time_xuliangcount': undefined identifier
119 4 if(num_xuliangCF_z>1) //正向有功需量计算
*** ERROR C202 IN LINE 119 OF BOTTOM\XULIANG.C: 'num_xuliangCF_z': undefined identifier
120 4 { addr_baseonIDandtype(RAM,ID_XULPOSENGCURT); //读取当前需量地址
*** ERROR C202 IN LINE 120 OF BOTTOM\XULIANG.C: 'RAM': undefined identifier
121 5 jisuanxuliang(num_xuliangCF_z,time_maichong_z,(*ID_coretalbpoint[0]).dataaddr);
*** ERROR C202 IN LINE 121 OF BOTTOM\XULIANG.C: 'num_xuliangCF_z': undefined identifier
122 5 p=ID_coretalbpoint[0];
*** ERROR C202 IN LINE 122 OF BOTTOM\XULIANG.C: 'p': undefined identifier
123 5 addr_baseonIDandtype(RAM,ID_XULENGPOSSUM); //读取当前月最大需量地址
*** ERROR C202 IN LINE 123 OF BOTTOM\XULIANG.C: 'RAM': undefined identifier
124 5 if(max_xuliangchuli((*p).dataaddr,(*ID_coretalbpoint[0]).dataaddr)==1)
*** ERROR C202 IN LINE 124 OF BOTTOM\XULIANG.C: 'p': undefined identifier
125 5 F_refreshxuliang=1; //如果最大需量有更新,则置位保存标志位
*** ERROR C202 IN LINE 125 OF BOTTOM\XULIANG.C: 'F_refreshxuliang': undefined identifier
126 5 }
127 4 /*
128 4 if(num_xuliangCF_f>1) //正向有功需量计算
129 4 { jisuanxuliang(num_xuliangCF_f,time_maichong_f,RAM_currntxuliang_f);
130 4 if(max_xuliangchuli(RAM_currntxuliang_f,RAM_maxxuliang_f)==1)
131 4 F_refreshxuliang=1; //如果最大需量有更新,则置位保存标志位
132 4 }
133 4 */
134 4 Start_xuliang(); //初始化需量计量,重新开始计量
135 4 }
136 3 }
137 2 }
138 1 /* if(F_refreshxuliang==1) //如果需要保存最大需量
139 1 { if(F_askerasxuliang!=1)
140 1 { if(offset_xuliangaddr==55) //存贮空间以满
141 1 { F_askerasxuliang=1;
142 1 offset_xuliangaddr=0xff;
143 1 }
144 1 else if(offset_xuliangaddr==0xff)
145 1 { offset_xuliangaddr=0;
146 1 }
147 1 else
148 1 offset_xuliangaddr++;
149 1 if(offset_xuliangaddr<56) //保存数据
150 1 { F_refreshxuliang=0;
151 1 addr_baseonIDandtype(RAM,ID_XULENGPOSSUM); //读取当前月最大需量地址
152 1 wr_buff[8]=0;
153 1 for(i=0;i<8;i++)
154 1 { wr_buff[i]=ram[i+(*ID_coretalbpoint[0]).dataaddr];
155 1 wr_buff[8]+=wr_buff[i];
156 1 }
157 1 data_addr.word[1]=FL_maxxuliang+offset_xuliangaddr*9;
158 1 Write_data(FLASH,9);
159 1 }
160 1 }
161 1
162 1 }*/
C51 COMPILER V7.06 XULIANG 11/24/2008 09:37:08 PAGE 5
163 1 }
C51 COMPILATION COMPLETE. 2 WARNING(S), 75 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -