基于plc的步进电机控制系统设计 下载本文

哈尔滨理工大学学士学位论文 基于PLC步进电机控制系统

摘要

随着微电子和计算机技术的发展,步进电机的需求量与日俱增,它广泛用于打印机、电动玩具等消费类产品以及数控机床、工业机器人、医疗器械等机电产品中,其在各个国民经济领域都有应用。研究步进电机的控制系统,对提高控制精度和响应速度、节约能源等都具有重要意义。

步进电机是将电脉冲信号变换成机械角位移的一种装置,每个脉冲使转轴步进一个步距角增量,输出角位移与输入脉冲数成正比,转速与输入脉冲成正比,转速与输入脉冲频率成正比。步进电机的控制方式简单,属于开环控制,且无累积定位误差,有较高的定位精度,而PLC作为一种工业控制微机,是实现电机一体化的有力工具,因此基于PLC的步进电机控制技术已广泛用于数字定位控制中。

本控制系统的设计,由硬件设计和软件设计两部分组成。其中,硬件设计主要包括步进电机的工作原理、步进电机的驱动电路设计、PLC的输入输出特性、PLC的外围电路设计以及PLC与步进电机的连接与匹配等问题的实现。软件设计包括主程序以及各个模块的控制程序,最终实现对步进电机转动方向及转动速度的控制。本系统具有智能性、实用性及可靠性的特点。

关键词 :步进电机、PLC、转速控制、方向控制

- I -

哈尔滨理工大学学士学位论文 Stepping motor control system based on PLC

Abstract

With the development of microelectronics and computer technology, the stepper motor is increasing demanded, which is widely used in printers, electric toys and other consumer products, and CNC machine tools, industrial robots, medical equipment and other electrical machinery products, and is applied in the national economy in various fields. Researching of stepper motor control system to improve the control accuracy and response speed, energy conservation is so important.

Stepper motor is a device which will transform electrical pulses into mechanical angular displacement so that Shaft of each pulse to a step angle stepping increment, SO output angular displacement is proportional to the input pulses, speed is proportional to the input pulse speed and speed is proportional to input pulse frequency. Stepper motor control is simple, is open-loop control, and no accumulation of positioning error, a high positioning accuracy,and the PLC as an industrial control computer, is a powerful tool for the integration of the motor, Therefore, the stepper motor control based on PLC technology has been widely used for digital positioning control.

The control system consists of hardware and software design of two parts. Among them, the hardware design includes the working principle of stepper motor, stepper motor drive circuit design, PLC input and output characteristics, PLC and PLC external circuit connection with the stepper motor and matching Problem. Software design, including the main program and each module of the control program, ultimately realizes on the stepper motor rotation direction and rotation speed control This system has the intelligence, practicality and reliability features.

Keywords : Stepper motor, PLC, speed control, direction control

- II -

哈尔滨理工大学学士学位论文

目录

摘要 ...................................................................................................................... I Abstract ............................................................................................................... II

基于PLC步进电机控制系统 .............................................................................. I 第1章 绪论 ........................................................................................................ 1 1.1 课题背景 .................................................................................................. 1 1.2 问题的提出 .............................................................................................. 2 1.3 设计目的及系统功能 .............................................................................. 2 第2章 PLC及步进电机的概述 ........................................................................ 4 2.1 PLC的基本概念 ..................................................................................... 4 2.2 PLC的基本结构 ....................................................................................... 4 2.3 PLC的特点 ............................................................................................... 5 2.4 步进电机的特性 ...................................................................................... 7 2.5 步进电机的种类 ...................................................................................... 7 2.6 反应式步进电机的控制 .......................................................................... 8 2.7 本设计所用步进电机 ............................................................................ 12 第3章 硬件电路设计 ...................................................................................... 14 3.1 硬件设计思路 ........................................................................................ 14 3.2 总设计图框 ............................................................................................ 14 3.3 外围电路设计及分析 ............................................................................ 15 3.4 LED数码显示器电路 ............................................................................. 23 3.5 步进电机控制系统电路图 .................................................................... 25 第4章 软件的设计 .......................................................................................... 27 4.1 可编程序控制器的工作原理 ................................................................ 27 4.2 存储空间的计算 .................................................................................... 28 第5章 PLC控制程序设计 ......................................................................... 29 5.1 PLC提供的编程语言 ............................................................................. 29 5.2 PLC实用驱动电源控制环节 ................................................................. 31 结论 .................................................................................................................... 35 致谢 .................................................................................................................... 37 参考文献 ............................................................................................................ 38 附录 .................................................................................................................... 39

- III -

哈尔滨理工大学学士学位论文

第1章 绪论

1.1 课题背景

在电气时代的今天,电动机一直在现代化的生产和生活中起着十分重要的作用。无论是在工农业生产还是在日常生活中的家用电器,都大量地使用着各种各样的电动机。因此对电动机的控制变得越来越重要了。电动机的控制技术的发展得力于微电子技术、电力电子技术、传感器技术、永磁材料技术、自动控制技术、微机应用技术的最新发展成就。正是这些技术的进步使电动机控制技术化。

步进电机是机电控制中一种常用的执行机构,其原理是通过对它每相线圈中的电流和顺序切换来使电机作步进式旋转。驱动电路由脉冲信号来控制,所以调节脉冲信号的频率便可改变步进电机的转速。通俗地说:当步进驱动器接收到一个脉冲信号,它就驱动步进电机按设定的方向转动一个固定的角度(及步进角)。通过控制脉冲个数即可以控制角位移量,从而达到准确定位的目的。同时通过控制脉冲频率来控制电机转动的速度和加速度,从而达到调速的目的,现在比较常用的步进电机包括反应式步进电机(VR)、永磁式步进电机(PM),混合式步进电机(HB)和单相式步进电机等。永磁式步进电机一般为两相,转矩和体积较小,步进角一般为7.50;反应式步进电机一般为三相,可实现大转矩输出,步进角一般为1.50,但噪声和振动都很大。反应式步进电机的转子磁路由软磁材料制成,定子上有多相励磁绕组,利用磁导的变化产生转矩。混合式步进电机是指混合了永磁式和反应式的优点。它又分为两相和五相:两相步进角一般为1.8“而五相步进角一般为0.720。这种步进电机的应用最为广泛。

- 1 -