摘要
研究并实现了基于LabVIEW的直线电机运动控制系统。以LabVIEW为平台,采用RS232串行通信方式实现上位机与直线电机控制器的通信,上位机通过预编程模式将电机运动轨迹控制参数和程序发送给电机控制器,采用PID和误差负反馈算法控制电机的位移和时间,同时从电机控制器中获取这些数据,在可视化界面上以趋势图的方式实时显示。经试验,对位移和时间控制误差进行了分析,结果显示,位移控制平均误差为-4.22μm,时间控制平均误差为0.002 ms,系统定位跟踪精度高,可用于需要精密定位或对运动轨迹进行控制的场合。
A motion controlling system of linear motor was researched and designed based on LabVIEW. By using RS232 serial communication, PC could send the controlling parameters and the precompiled program of the motor to the controller and then read the current displacement and time from the register of the controller. The algorithm of PID and negative feedback was used to control the motion. Subsequently, the graph of the actual curve between the displacement and time was given on the interface which was designed by LabVIEW. At last, the controlling error of those data was analyzed. The experiment result show that the mean error of the displacement is -4.22μm and the mean error of the time is 0.002 ms. The positioning and tracking accuracy of the system is high, and this system can be used to the field of precise positioning and tracking for displacement.
出处
《电子测量与仪器学报》
CSCD
2013年第3期264-269,共6页
Journal of Electronic Measurement and Instrumentation