[关键词]
[摘要]
为了方便对拉扭复合系统中2台伺服电机的控制,设计了基于MFC的上位机界面。通过串口通信,使用不同的按钮操作设置伺服驱动器相应参数,从而控制2台伺服电机的运行。上位机实时接收伺服驱动器监控数据绘制出转速、位移、转矩曲线。针对在数据接收过程中信息帧接收错误的情况,使用拼接两相邻错误信息帧的方法进行修复。结果表明:上位机界面实现了系统功能及对电机运行工况的监控。
[Key word]
[Abstract]
Aiming at facilitating the control of two servo motors in the tensiontorsion composite system, a host computer interface based on MFC was designed. Through the serial communication, the corresponding parameters of the servo driver were set by using different button operations to control the operation of two servo motors. The servo driver monitoring data were received by the host computer in real time to draw the speed, displacement and torque curves. For the case where the information frame was received incorrectly during data reception, the method of splicing two adjacent error information frames was used for repair. The results showed that the system function and the monitoring of motor operating conditions could be realized in the host computer interface.
[中图分类号]
TM 921.54+1
[基金项目]