数控电源程序gai.docxVIP

  • 10
  • 0
  • 约5.58千字
  • 约 15页
  • 2017-07-10 发布于河南
  • 举报
数控电源程序gai

unsignedintDAdata,step_data=1,ch;volatile unsigned intkey_value;//unsigned intADC_value;unsigned char routeway;unsignedintnc,flag;signedint temp_1;volatile unsigned int count;volatile unsigned char old_key;unsigned char i,j,k;typedefstructxxxx{ intSetPoint; intLastError; intPrevError; intSumError;} voidCalc( xxxx *pp, intNextPoint ) {intError;intx,y;Error = pp-SetPoint- NextPoint;x=pp-SumError;pp-SumError += Error;if(pp-SumError32000)pp-SumError=32000;else if(pp-SumError-30000)pp-SumError=-30000;y=pp-SumError;

文档评论(0)

1亿VIP精品文档

相关文档