基于虚拟仪器技术,提出了一种开放式的交流伺服硬件在回路仿真系统的设计方法。PC机运行实时操作系统,通过NIRIO板卡连接驱动器。对RIO板载FPGA编程实现多种模式,SVPWM和高精度模拟量采集。控制程序结构针对交流伺服设计,以图形化编程实现,控制模块接口统一.缩短了控制模块的开发和验证周期,使系统具有较高的扩展性。实验表明,该系统能够大幅度提高控制算法开发与验证效率,反馈采集与控制特性稳定,控制频率达到16kHz,满足交流伺服开发的需求。
An efficient AC Servo HIL Simulation System is designed. A PC used as a controller, which runs Pharlap RTOS, links to inverter via NI RIO board. The FPGA in the RIO is programmed as SVPWM generator and feedback collector. Controller program is designed to meet the needs of AC Servo system, which is written by graphic language. And the inter- face is uniform, which can reduce the period of development, enhance the expansibility. Experiments show that the system designed in this paper can increase the efficiency of servo system development. And control frequency is up to 16 kHz, meets the needs of servo system development.