摘要
PLC对步进电机进行控制的方法有很多种。针对其中的一部分方法所产生的程序复杂、逻辑关系不清晰、程序冗余以及不方便修改。提出了采用西门子S7-300系列PLC中移位寄存器(shiftregister)的移位指令(shift instruction)的方法对步进电机控制方法进行研究,编写了步进电机的梯形图(LAD)程序。首先,对移位寄存器赋初值;然后,移位寄存发出移位脉冲控制步进;最后,通过移位寄存器发出的移位脉冲控制步进电机移位。通过该方法得到的程序语言简捷、清晰、便于操作与修改、柔性高。结果表明,控制系统完全满足控制要求。
There are many ways to control the stepping motor by PLC. Some of the methods are complex and the logic relations are not clear, the program is redundant and the modification is not convenient. A method for controlling the stepping motor with the shift instruction of the shift register is proposed in the SIEMENS S7-300 series PLC, the ladder control program is written. Firstly, shift register is assigned initial value; secondly, the shift register is shifted to control the stepping; finally, stepping motor is controlled by shift register. The program language is simple and easy to operate and modify. The results show that the control system fully meets the control requirements.
出处
《机械工程师》
2016年第3期31-33,共3页
Mechanical Engineer