PLC-controlled Stepper Motor Drive For NC Position
PLC-controlled Stepper Motor Drive For NC Position
net/publication/269611096
CITATIONS READS
0 1,164
1 author:
Hussein Sarhan
Al-Balqa' Applied University
23 PUBLICATIONS 56 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Hussein Sarhan on 21 September 2015.
Copyright © 2014 Hussein Sarhan. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use,
distribution, and reproduction in any medium, provided the original work is properly cited.
Abstract
In this paper, an electric drive system for precision control of numerically-controlled positioning system is designed,
assembled and experimentally tested. The proposed drive system is based on PLC-controlled stepper motor. The PLC is
used as an indexer to perform full stepping, half stepping and microstepping modes of operation of stepper motor. The
drive system has been implemented in two-axes NC positioning system. The linear displacement for each machine axis
has been evaluated and compared for the three stepping modes of stepper motor. Experimental and calculation results
show that the response per pulse (resolution) for full stepping mode is 8.35000m , for half stepping mode is
4.17500m and for microstepping mode is 1.04375m , which means that the microstepping mode is the best one for
precision control of NC positioning system.
Keywords: Electric Drive, NC Positioning System, PLC, Stepper Motor, Stepping Mode.
1. Introduction
The stepper motor is an electromechanical actuator which converts the input pulse train into a precisely defined
increment in the shaft position. Each pulse moves the shaft through a fixed angle, called step angle. Stepper motors
have emerged as cost-effective alternatives for DC servomotors in high-speed, motion control applications, where the
high torque is not required, with the improvements in permanent magnets and the incorporation of solid-state circuitry
and logic devices in their drive systems. These motors are commonly used in measurement and control applications,
such as positioning systems for NC machines, ink jet printers, volumetric pumps, computer peripherals, automotive
devices, and small business machines [1], [2].
A stepper motor system, as shown in figure 1, consists of the following three basic components, often combined with
user interface [3-5]:
1) Indexer or controller used to generate pulse trains and perform other sophisticated command functions.
2) Driver (or amplifier) who converts the indexer command signals into the power necessary to energize the motor
windings.
3) Stepper motor, which converts the pulses into mechanical motion.
According to their construction, stepper motors are classified into three types: variable reluctance, permanent magnet
and hybrid. The variable reluctance stepper motor does not use a permanent magnet. As a result, the motor rotor can
move without constraint or "detent" torque. The permanent magnet stepper motor has a permanent magnet rotor. It is
International Journal of Engineering & Technology 299
relatively low speed, low torque device with large step angles of either 45 or 90 degrees. Hybrid stepper motors
combine the best characteristics of variable reluctance and permanent magnet motors.
According to the stator windings, stepper motors are classified into unipolar motors, as shown in figure 2, and bipolar
motors, as shown in figure 3.
Depending on stepping mode (value of step angle), stepper motors drives are classified as:
1) Half stepping, where the drive alternates between two phases ON and a single phase ON. This increases the
angular resolution.
2) Full stepping, where two phases are always ON, so the motor will provide its maximum rated torque.
3) Micro stepping, which is typically used in applications, requiring accurate positioning and fine resolution over a
wide range of speeds [6-8].
In this paper, a control circuit of stepper motor based on PLC is designed, assembled and experimentally tested for two-
axes, open-loop NC- positioning system. The control circuit enables the stepper motor to operate at any stepping mode.
The machine axes can be controlled for three different levels of linear motion (velocity): slow, medium and fast.
The control circuit consists of user interface, indexer and driver. The function of user interface is to determine the
operation mode, select the machine axis, select the velocity of table and avoid the table to exceed the range of motion
axis. The PLC is used as indexer. The 470 resistors in the PLC outputs are used for protection purpose. The dual-H
bridge L298 (figure 6) is used to drive the stepper motors coils according to the required sequence of stepping.
The PLC is managed to achieve the following stepping modes:
1) Full stepping mode, according to the sequence shown in table 2.
The legend "0" means coil OFF, "+" means current flows in one direction, and "-" means current flows in the opposite
direction.
Figure 7 illustrates the voltage waveform for full stepping mode.
To realize the previous sequence, the outputs of PLC (H-bridge inputs) are defined as in table 3.
The above results are arranged in table 4. The decimal numbers are obtained from binary numbers, and they represent
the PLC outputs from Q0.0 to Q0.7.
To realize the previous sequence, the outputs of PLC (H-bridge inputs) are defined as in table 6.
The above results are arranged in table 7. The decimal numbers are obtained from binary numbers, and they represent
the PLC outputs from Q0.0 to Q0.7.
3) Micro stepping mode, which can be achieved by one of the following methods: the first one is to make the current
in winding A follow the sin function, and the current in winding B follow the cos function and the second
method, the current in one winding is kept constant over half of the complete step and current in other winding is
varied as a function of sin to maximize the motor torque. The first method can be realized by varying PWM
duty cycle to control the current through the coils. The resultant current in any coil at any angle should remain
constant and equal to peak value.
Table 8 was designed to decide the values of the PWM through the duty cycle for sin and cos functions.
The microstepping chart for the first method is shown in figure 10.
In the second method of microstepping, the current in one winding is kept constant over a half of the complete step
(900), and the current in the other winding varies as a function of sin to maximize the motor torque.
Figure 11 illustrates the circuit for microstepping mode. PWM1 and PWM2 show the current percentage in each
winding. CD1 and CD2 show the current direction in each winding, which determines the motor direction (FWD or
REV).
The microstepping sequence is shown in table 9 and the microstepping chart is shown in figure 12.
The first column in table 9 shows the number of steps or pulses, the second column shows the electrical angle for each
pulse, the third one shows the current percentage in winding A, and the fourth one shows the current in winding B.
The PLC acts as indexer, which gives the desired pulses according to the stepping mode and table velocity. The logic
block controls the current direction, which depends on the motor speed direction. The motor driver (dual H-bridge)
enables the current in the same winding to flow in different directions. PLC here acts like an indexer, which give pulses
decide the direction and the working mode (Full or Half or Microstepping mode) and the velocity, and make controlling
for other things.
Table 9: Micro stepping Sequence (Second Method)
International Journal of Engineering & Technology 305
The control panel is shown in figure 13. It contains ON/ OFF push button to turn ON or OFF the system, stepping mode
selector, two push buttons to change the speed, and four push buttons to select the direction.
The PLC has been programmed to perform the desired tasks according to the different stepping modes.
3. Main results
The proposed system was assembled, programmed and tested to control NC positioning system according to three
stepping modes. The results are given in tables (10-12).
4. Conclusion
In this paper, a PLC-based control scheme is proposed to provide any stepping mode of stepper motor to control the
motion of two-axes NC positioning system with high accuracy. Experimental and calculation results confirm the
validity of the proposed system. The main advantage of the proposed system is its simplicity, high accuracy and it does
not need conventional programming codes.
References
[1] Aranjo. B., Soori P. K. and Talukder P., “Stepper Motor Drives for Robotic Applications”, Proceedings of power engineering and
optimization conference (PEDCO), Melaka, Malaysia, (2012), pp. 361-366
[2] Barhoumi E.M, Ben Salah B, “New Positioning Control of Stepper Motor Using BP Neural Networks”, Journal of emerging trends in
computing and information sciences, Vol. 2, No. 6, (2011), pp. 300-306
[3] Sharan R. V., Onwubolu G. C., “Simulation the Arm Movements of a Stepper Motor Controlled Pick-and-Place Robot Using the Stepper
Motor Model”, International journal of advanced sciences and technology, Vol. 60, (2013), pp. 59-66
[4] Sagarika Pal, Niladri S. Tripathy, “Remote Position Control System of Stepper Motor Using DTMF Technology”, International journal of
control and automation, Vol. 4, No. 2, (2011), pp. 35-42
[5] Maher Dababneh, Walid Emar and Issam Ttrad, “Chopper Control of a Bipolar Stepper Motor”, International journal of engineering (IJE),
Vol. 7, No. 2, (2013), pp. 61-73
[6] D Carrica, M. A. Funes and S. A. Gonzalea, “Novel Stepper Motor Controller Based on FPGA Hardware Implementation”, IEEE/ ASME
Trans. Mechatronics, Vol. 8, No. 1, (2003), pp. 120-124
[7] Kausik Chakraborty et al, “Design and Development Stepper Motor Position Control System Using Atmel 85c51 Microcontroller”,
International journal of emerging research in management and technology, Vol. 2, No. 12, (2013), pp. 44-48
[8] N. Naresh, T.S. Sirish and Dr. K.S. Sivanandan, “Design and Implementation of Driving Circuits for Stepper Motor Control Using PIC”,
International journal of emerging trends in engineering and development, Vol. 2, No. 2, (2012), pp. 106-112