基于FPGA的裁切机步进电机控制算法设计
2022,30(11):127-132
摘要:针对传统加减速算法中减速点不易确定,为了确保在裁切机运动控制系统中加减速算法的实时性和准确性。对比分析常用的加减速算法,在分析传统的梯形加减速算法原理上,提出了一种基于FPGA(Field Programmable Gate Array)的改进梯形加减速算法,采用该算法实现了运动控制系统的设计,利用Vivado仿真系统进行仿真,搭建实验平台对算法进行验证。实验结果表明,改进的梯形加减速算法能够自动确定减速点的位置并达到实时性的要求,通过理想曲线与实际曲线的对比,可以看出电机实际运行速度曲线平滑,转速误差小。
关键词:裁切机;运动控制;FPGA;梯形加减速;减速点;自适应
FPGA-based motion control system design for cutting machine
Abstract:In order to ensure the real-time performance and accuracy of the acceleration and deceleration algorithm in the motion control system of the cutting machine, the traditional acceleration and deceleration algorithm is not easy to determine the deceleration point. In order to ensure the accuracy of the acceleration and deceleration algorithm in the motion control system of the cutting machine, the proposed trapezoidal acceleration and deceleration algorithm based on FPGA (Field Programmable Gate Array) is compared and analysed with the commonly used acceleration and deceleration algorithms, and the Vivado simulation system is used to simulate and build an experimental platform to verify the algorithm. The experimental results show that the improved trapezoidal acceleration/deceleration algorithm can automatically determine the position of the deceleration point and meet the requirements of real-time, and the comparison between the ideal curve and the actual curve shows that the actual running speed curve of the motor is smooth and the speed error is small.
Key words:cutting machine; motion control; FPGA; trapezoidal acceleration/deceleration; deceleration point; adaptive
收稿日期:2022-05-25
基金项目:
