同步控制算法是数控系统的关键技术,基于ARM与FPGA双核架构运动控制器提出一种模块化同步控制算法.该算法巧妙地令ARM和FPGA在执行运动指令时形成闭环,使同步过程自发进行.在ARM中建立具备速度优化的同步控制算法模块,并向FPGA发送运动指令.在FPGA中建立FIFO存储运动指令使同步过程流畅,并建立同步执行模块解析运动命令完成多轴同步控制.最后通过详细设计直线和圆弧同步算法,来实验验证该同步算法效果,结果表明该模块化同步算法有效易行,可推广使用.%Synchronization control algorithm is the key technology of CNC system,this paper proposes a modular synchronization control algorithm based on ARM and FPGA dual core architecture motion controller.The algorithm cleverly makes ARM and FPGA to form a closed loop in the execution of motor commands and does synchronization process by itself.In ARM,a speed optimized synchronization control algorithm module is set up,and the motion command is sent to the FPGA.In FPGA,the FIFO storing motion instruction is built to make the synchronization process flow smoothly,and synchronous execution module is established to resolve motion commands to complete multi axis synchronization control.Finally,through the detailed design of linear and arc synchronization algorithm,to verify the effect of the synchronization algorithm,the results show that the modular synchronization algorithm is effective and can be widely used.
展开▼