位置环增益调整

上传人:博****1 文档编号:558446829 上传时间:2023-11-13 格式:DOCX 页数:7 大小:242.82KB
返回 下载 相关 举报
位置环增益调整_第1页
第1页 / 共7页
位置环增益调整_第2页
第2页 / 共7页
位置环增益调整_第3页
第3页 / 共7页
位置环增益调整_第4页
第4页 / 共7页
位置环增益调整_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《位置环增益调整》由会员分享,可在线阅读,更多相关《位置环增益调整(7页珍藏版)》请在金锄头文库上搜索。

1、1:准备在调节位置环之前,一定首先调节伺服驱动器上速度环PID参数。本篇文章是在以下假 设条件下完成的:速度环响应特性良好,电机双向都有一段安全运动距离。在调节位置环时, 为了使增益参数准确,需要在带实际负载的情况下进行调节。下面是用来调节参数的程序,在控制器内执行。这段程序让电机在正负八分之一圈内来 回旋转。Intialise the axis for P Loop tuningBASE(O)UNITS=1DEFPOS(O)WAIT UNTIL OFFPOS=0counts_per_rev=4000set speed to 3000 rpmSPEED=counts_per_rev*3000/

2、60ACCEL=SPEED*1000DECEL=ACCELFE_LIMIT=counts_per_rev/2SERVO=ONWDOG=ONstepsize=INT(counts_per_rev/8)WHILE TRUETRIGGERWA(20)MOVE(stepsize)WA(500)MOVE(-stepsize)WA(480)WEND如果机械结果决定只能向一个方向运动。程序修改如下:stepsize=INT(counts_per_rev/8)WHILE TRUETRIGGERWA(20)MOVE(stepsize)WA(480)DEFPOS(0)WEND在运行程序之前,确定该轴当前运动状态为

3、IDLE。打开轴参数和示波器。设置示波器观测 参数为该轴的MPOS和DPOS,横轴时间参数为20msec。点击option,设置每格采样点数为10 或20 设置示波器为程序触发。2:调节P参数安全起见,P参数先给一个比较小的值,编码器如果是1000到1024线,最好从0.5调 起,其他增益参数都设置为0运行程序,并触发示波器,响应曲线应该如下图所示:接下来一点一点的,小心的增加P参数,直到曲线显示如下图:如果曲线如下图所示,证明P参数过大了,此是应该适当减小。一般系统只用P参数就可以了,如果需要进一步减小跟随误差,可以用以下两种方法:1) ,用P参数和VFF参数2) ,用P,I,D三个参数3,

4、设置VFF参数设置VFF方法比较简单,有计算法和尝试法两种。在用前面讲过的方法设好P参数后, 让电机在额定速度的30%到60%之间常速运动,逐渐加VFF参数,直到跟差减小到最小范 围。设定好后,这个参数在其他速度下也是正确的。如果计算,按一下公式,12位DC (dac_scale=16):VFF_GAIN = (60 / motor_rpm_10V) * (1000 / encoder_pulses_per_rev) * 204816位 DC:VFF_GAIN = (60 / motor_rpm_10V) * (1000 / encoder_pulses_per_rev) * 327684:设

5、置I和D参数:在设置I参数是,应加倍小心,以为I值一般很小就够了,一般可以从0.001开始调起。调 到如下图所显示的状态:超调相对只有P参数的时候要大,而且有多次震荡后才平稳。D参数可以削减震荡,D参数范围一般在8到20之间。下图显示的是PID参数调好后的运动 状态:超调明显减小,运动很快进入稳定状态。OV参数和D参数起的作用大致相同,一般可以不设,如果要设的话,应为负值。 附录:下面是手册上给出的各个参数的含义:Proportional GainDescription The proportional gain creates an output voltage, Op that is pr

6、oportional to the followi ng error E.Op = Kp x EAxis parameter is called P_GAINSyntax: P_GAIN=0.8Note: All practical systems use proportional gain, many use this gain parameter alone.Integral gainDescription The Integral gain creates an output Oi that is proportional to the sum of the errors that ha

7、ve occurred duri ng the system operati on.Oi=Ki x SEIn tegral gain can cause overshoot and so is usually used only on systems work ingat con sta nt speed or with a slow accelerati on.Axis parameter is called I_GAINSyntax: l_GAIN=0.0125Derivative gainDescription This produces an output Od that is pro

8、portional to the change in the following error and speeds up the resp onse to cha nges in error whilst maintaining the same relative stability.Od = Kd x DEThis gain may create a smoother resp on se. High values may lead to oscillati on.Axis parameter is called D_GAINSyntax: D_GAIN=5Output Velocity G

9、ainDescription This in creases the system damp ing, creati ng an output that is proporti onal to the cha nge in measured positi on.Oov = Kov x DPm.This parameter can be useful for smooth ing moti ons but will gen erate high followi ng errors. Note that a NEGATIVE OV_GAIN is required for dampi ng.Axi

10、s parameter is called OV_GAINSyntax: 0V_GAIN=-5Velocity Feed Forward GainDescription As movement is created by following errors at high speed the following error can be quite appreciable. To overcome this the Velocity Feed Forward creates an output proporti onal to the cha nge in dema nd positi on so creati ng moveme nt without the n eed for a follow ing error.Ov = Kvff x DPdAxis parameter is called VFF_GAINSyntax: VFF_GAIN=10The VFF_GAIN parameter can be set by mini misi ng the followi ng error at a con sta nt mach ine speed AFTER the other gains have bee n set.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号