0% found this document useful (0 votes)
58 views

Sliding Mode Control of A Servo System in LabVIEW

This document discusses using LabVIEW to simulate and implement different control methods, including PI, PID, and sliding mode control, on a DC servo motor system. It first provides background on these control methods and describes using LabVIEW's Control Design and Simulation module to simulate the control strategies. It then explains implementing the control methods on a real DC servo motor using a National Instruments myRIO device. The document concludes that LabVIEW provides an effective platform for both simulating and implementing control systems in education due to its intuitive graphical programming and connection to real hardware.

Uploaded by

Saleem Riaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Sliding Mode Control of A Servo System in LabVIEW

This document discusses using LabVIEW to simulate and implement different control methods, including PI, PID, and sliding mode control, on a DC servo motor system. It first provides background on these control methods and describes using LabVIEW's Control Design and Simulation module to simulate the control strategies. It then explains implementing the control methods on a real DC servo motor using a National Instruments myRIO device. The document concludes that LabVIEW provides an effective platform for both simulating and implementing control systems in education due to its intuitive graphical programming and connection to real hardware.

Uploaded by

Saleem Riaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Sliding mode control of a servo system in

LabVIEW: Comparing different control methods

Janos Mate Kiss1, Peter Tamas Szemes1p and Petra Aradi2


International Review of 1
Department of Mechatronics, Faculty of Engineering, University of Debrecen, Debrecen, Hungary
Applied Sciences and 2
Engineering Department of Mechatronics, Optics, and Mechanical Engineering Informatics, Faculty of
Mechanical Engineering, Budapest University of Technology and Economics, Budapest, Hungary

Received: January 24, 2021 • Accepted: March 26, 2021


DOI:
10.1556/1848.2021.00250
© 2021 The Author(s)

ABSTRACT
The main contribution of this paper is to present the efficiency of LabVIEW in simulating and con-
trolling a servo system with conventional methods (PI and PID control), as well as sliding mode control
(SMC). The control of an actual system with LabVIEW and NI hardware provides an efficient
ORIGINAL RESEARCH implementation platform, using both LabVIEW’s graphical programming and the text-based m-file
PAPER language MathScript RT. Both programming environments and the connection to NI hardware are
relatively easy to use, therefore, ideal for education. The graphical “coding” can help novice users to see
through their algorithms. However, the mathematical background of sliding mode control is difficult
compared to conventional PID control; the SMC implementation for practical uses can be quite simple,
as the presented example demonstrates. The first didactic step is a simulation with the Control Design
and Simulation, as well as MathScript RT Modules. Then a myRIO Student Embedded Device is used to
control a real servo system. LabVIEW code can be compiled to run on computers, (soft) real-time
targets, and FPGAs (hard real-time targets), so students can easily and quickly step up to real industrial
measurement and control problems without the need to learn new programming environments.

KEYWORDS
DC servo motor, PI and PID control, sliding mode control, simulation, real-world system, measurement, LabVIEW,
education

1. INTRODUCTION
Simulating control systems helps students understand control methods better than written
textbook examples. The ability to experiment with the effects of different control strategies on
real-world processes is even more helpful. Conventional PID control is part of the control
engineering curriculum for bachelor-level courses. However, the more robust but mathe-
matically far more challenging sliding mode control is usually introduced later in graduate
studies.
Permanent-magnet brushed DC motors, and servo drives are widespread in industry and
DIY home projects, ranging from low-power versions to vehicle drive systems. Both speed
and position control are possible with a wide range of controllers, with the most common
control method being PI or PID [1, 2]. PI and PID control usually satisfies the most common
requirements. However, when the system has a variable load, rather than nominal ones, using
a PI or PID controller does not result in a fast and stable output voltage response.
Another possible method is sliding mode control (SMC). Because of the switching
p behaviour of sliding mode control, it is commonly used in power electronics [3–5].
Corresponding author.
E-mail: [email protected] SMC is usually referred to as an interesting theory, as the mathematical model itself works
very well on a theoretical level, but implementation can be a significant challenge. In the
literature, some hybrid solutions are reported to overcome this problem [3, 6].
The project aims to implement PI, PID, and SMC control of a DC servo system, both as a
simulation and real-world measurement. This simple system can be used as a teaching tool.

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


2 International Review of Applied Sciences and Engineering

The chosen programming environment is National In- The output of the proportional term is proportional to the
struments (NI) LabVIEW, a graphical programming envi- error signal, the integrating term is proportional to the integral
ronment with excellent hardware connections to real-world of the error signal, and the derivative term is proportional to
processes. LabVIEW programming is similar to drawing the the derivative of the error signal. As the gain of the propor-
algorithm’s block diagram with user interface elements tional member increases, the value of the control signal and
represented as nodes, programming structures such as loops, with it the error increase proportionally. The controller will try
and built-in functions and procedures. The Control Design to respond faster to the error signal, but at the same time, the
and Simulation Module consists of many VIs (Virtual In- overshoot will also increase. With the help of the integrating
struments, the name of LabVIEW subroutines) for control member, not only the rise time but also the steady-state error
theory applications, both in time- and frequency domain. can be reduced. The disadvantage is that it can slow down the
Simulation loops provide a graphical model definition, system and cause oscillations when the sign of the error signal
similar to the one in Simulink, and are used to the timestep changes because it may take some time to follow it. The output
by timestep simulation of various dynamical systems. The of the PI controller is described by Eq. (1).
MathScript RT Module is a text-based m-file programming Z t
environment incorporated into LabVIEW. MathScript can uðtÞ ¼ Kp $eðtÞ þ Ki $ eðτÞdτ (1)
be used as an individual application that functions similarly 0

to MATLAB. MathScript text-based codes can also be used Kp is the gain of the proportional term, e is the error signal
within a graphical LabVIEW program when inserted into a given by the difference between the setpoint (reference
so-called MathScript Node that acts as a VI. signal) and the process variable, Ki is the gain of the inte-
LabVIEW can interface with measurement and auto- grating term, and τ is the integration time.
mation products from various manufacturers, besides de- By adding a derivative term, the controller can predict the
vices from LabVIEW’s developer National Instruments. NI error in advance. It can be used to amplify the control signal
has specific hardware products for students, such as the while keeping the amplitude of the error relatively small. This
myRIO Student Embedded Device that was chosen for the will dampen the system and reduce overshoot while not
measurement and control of the real-world DC servo sys- affecting the steady-state error. The output of a complete PID
tem. The servo system was first simulated in LabVIEW. PI, controller supplemented with a derivative term is described
PID, and SMC control methods were programmed in Lab- by Eq. (2), where Kd is the gain of the derivative term.
VIEW/MathScript, and various experiments were performed Z t
deðtÞ
to evaluate the control strategies. Implementing the simu- uðtÞ ¼ Kp $eðtÞ þ Ki $ eðτÞdτ þ Kd $ (2)
lation and measurement setup is relatively simple; the pro- 0 dt
gramming environment is clear-cut and self-explaining. There are other mathematical representations of the PID-
LabVIEW does not require long to learn; therefore, it is controller’s transfer function; in LabVIEW the transfer
excellent for demonstrational purposes in higher-level edu- function version of Eq. (2) is called Parallel, with the
cation. There are even versions of LEGO robots, e.g. Ro- following parameters:
botics Invention System that shipped with a special 1
LabVIEW version. Further gain by using LabVIEW is that Kc þ þ Td s (3)
Ti s
the developed controller code can be compiled to run not
just on computers but (soft) real-time targets and FPGAs The other two formats are Academic:
(hard real-time targets). That way, students can easily and  
1
quickly step up from computer simulation to real industrial Kc 1 þ þ Td s (4)
Ti s
measurement and control problems without the need to
learn new programming environments. and Series:
The presented example of the sliding mode control is far  
1
from the complex industrial applications; however, the Kc 1 þ ð1 þ Td sÞ (5)
Ti s
measurement setup provides an excellent possibility to
introduce the basics of this control method with an existing The low-pass filter of the derivative term can be specified
physical system even for bachelor-level students. The DC- with the a parameter, in each representation, when appro-
motor system can further be used to test other control priate:
strategies both with the simulated and the actual process. 1
(6)
aTd s þ 1
2. PI AND PID CONTROLLERS
The PI or PID controller is the most used solution for con- 3. SLIDING MODE CONTROL
trolling the speed of motors. Their operation is based on error
signal compensation. They consist of a total of two or three Sliding mode control was developed in the Soviet Union pri-
parallelly connected terms whose initials give their name. P marily for aerospace and missile applications in the 1970s [7,
stands for proportional, I for integrating, and D for derivative. 8]. The mathematical basis of SMC design can be found in [9].

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


International Review of Applied Sciences and Engineering 3

Although understanding the exact mathematical 


−1; s<0
description behind the method can be challenging, in many s¼ (11)
þ1; s ≥ 0
cases, it is relatively easy to apply SMC without a deeper
knowledge of its complex mathematical background. The use of the sign function may lead to chattering, which
Because of this and its robustness, it is widespread, for can have a harmful effect on the motor, so avoiding this
example, in robotics, power electronics, and servo drive phenomenon is very important for SMC. One method to
control, where variable system structures are common [3–5, prevent chattering is to replace the sign function with the
10]. pseudo function:
SMC’s aim is to bring the system into a state in which s
its dynamics can be described by a differential equation u ¼ K$ (12)
jsj þ d
with a lower degree of freedom, in which case, in theory,
the system is completely independent of changes in certain where d is a small positive constant called a tuning param-
types of parameters and certain types of external distur- eter to reduce the chattering [14]. The choice of d is a crucial
bances. This condition is called sliding mode. Although, consideration because if it is too small, the chattering may
according to the theory, sliding mode control appears to be still be present, but if it is too large, reaching the reference
a well-functioning and robust control method, unfortu- value may cause a problem to the controller [15].
nately, there are severe limitations to its practical imple- Figure 1 shows the MathScript implementation of the
mentation. The main problem is the so-called chattering sliding mode controller as a LabVIEW MathScript Node
[11], which means a high-frequency oscillation around the with inputs on the left side and the controller output on the
sliding surface that significantly reduces the efficiency and right side of the frame.
robustness of the controller. While, in theory, SMC pro-
vides superior performance of the closed-loop system in
sliding mode, the practical limitations discourage some 4. LABVIEW MOTOR MODEL
researchers. The need for higher sampling frequency than
other control strategies to reduce the high-frequency The transfer functions of the DC motor’s electrical and
oscillation phenomenon (chattering) is the limiting factor. mechanical characteristics can be created using the built-in
There are approaches to overcome this problem, such as function block of the Construct Transfer Function Model
an observer-based, discrete-time, sliding mode control VI. The numerator of the transfer function is given by the
design that prevents the system from entering the critical constant value of 1, and the denominator consists of an
domain [12, 13]. indexed array, the elements of which are read from the
The first step in designing a sliding mode controller is to cluster containing the motor parameters in SI units
define the sliding surface. The sliding surface is as follows: (Table 1). The symbols are as follows: armature resistance
 n−1 and inductance are denoted by Ra and La, respectively. J is
deðtÞ
s¼ þ C$eðtÞ (7) the moment of inertia, and B represents the friction coeffi-
dt
cient. Kv is the back-EMF constant, and Kt is the torque
s is the sliding surface, C is a strictly positive constant that constant. The transfer function elements are listed in
determines the bandwidth of the system (also mentioned as descending order of degree. In the next step, the generated
λ in some literature), n is the degree of the system, and e is transfer function is converted by the Convert Control
the error signal. The transfer function of the brushed DC Design to Simulation VI function block to a form that can be
motor is second degree, so by substituting the speed, the used in the simulation loop (Fig. 2).
sliding surface is obtained as follows: The block diagram of Fig. 2 represents the transfer
due ðtÞ function between the motor’s voltage input and rotational
s¼ þ C$ue (8) speed output (the integrator labelled Position calculates the
dt
Rotational speed ue is the error signal defined as the
difference between the reference signal and the process
variable. Once the sliding surface has been determined, the
next step is to create a control signal with which the sliding
surface can be reached and maintained. This is subject to:
_
s$s>0 (9)
In order to satisfy this condition, the principle of the
discontinuous controller output signal is obtained with the
sign function, where the variable is the instantaneous value
of the sliding surface and K is a positive constant:
u ¼ K$sgnðsÞ (10)
Fig. 1. Calculation of the control signal of the sliding mode
The sign (sgn) function in (6) is defined as controller

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


4 International Review of Applied Sciences and Engineering

Table 1. Parameters of motors for the transfer function current value of the test signal, the motor speed, the current,
Parameter Test1 Test2 Test3 and the position is stored in the file after each iteration.
The simulation results obtained with each parameter are
Ra 2 0.6 1 shown in Fig. 3.
La 0.5 0.8 0.2
Kt 0.1 0.2 0.2
Kv 0.1 0.2 0.8 5. SIMULATION RESULTS
J 0.2 0.9 0.4
B 0.02 0.7 0.5
The controller parameters were determined with LabVIEW’s
Control Design and Simulation Module’s built-in tuning
integral of rotational speed and is not included in the blocks for the PI and PID controllers with the use of various
following transfer function): available tuning methods (ZN: Ziegler-Nichols, CC: Cohen-
Kt Coon, CHR: Chien-Hrones-Reswick, IMC: Internal Model
GðsÞ ¼ (13)
ðLs þ RÞðJs þ BÞ þ Kt Kv Control). The details of these tuning methods are available
in the official user manual and help.
Each parameter can be saved or loaded in XML format for
The controller parameters determined by Internal Model
the repeatability of the simulations. The XML file’s path can
Control are used, as this method gave the fastest operation,
be input via the program’s user interface or hard-coded into
according to the simulation results. The parameters of the PI
the program. The parameters can be validated by pressing
and PID controllers are shown in Table 2.
the apply button.
The parameter values of the sliding mode controller are
The model’s correct behaviour can be tested with several
C 5 10, K 5 40 and d 5 0.05.
test functions available in LabVIEW, or the user can create an
own test VI. A function generator has been placed in the
5.1. Step function
program, which can be freely configured in the user interface
to create several general test signals. Configurable parameters The first test for each controller was a step function test in
are duty cycle, period, amplitude, and offset. An Express VI is which the speed setpoint jumped from 0 to 10 rad/s in the
also included in the program to save the simulation data to an first second of the simulation. The speed responses obtained
xlsx spreadsheet file. The current time of the simulation, the for this are summarized in Fig. 4.

Fig. 2. Block diagram of the model

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


International Review of Applied Sciences and Engineering 5

Fig. 3. Results of motor model testing with different parameters

Fig. 4. Comparison of controllers with step function


The simulation results in Table 3 show that the theoretical
differences between controllers are significant. As expected,
the PI controller is the slowest and has the most extensive Table 3. Simulation results
overshoot. The PID, which has an additional derivative Rise time Settling Overshoot Undershoot
member, produced a slightly smaller overshoot, and both the Controller (s) time (s) (%) (%)
rise and settling times are shorter. Of the three controllers, the
sliding mode controller performed outstandingly well. Both PI 0.395 1.977 13.56 4.97
PID 0.326 1.687 11.61 5.17
the rise and settling times are quicker than the PI and PID
SMC 0.281 0.591 – –
controllers, and there is no overshoot.
The phase margin value was nearly identical for the PI
and PID controller: 53.368 for PI and 53.738 for PID.
Figure 5 shows the control signal for different controllers
with the characteristic alternating in the sliding mode con-
troller’s control signal and the PID controller’s relatively
large initial value.
Figure 6 shows the error and error derivative plots of the
different controllers with the two distinctive parts for the
sliding mode controller.

5.2. Tracking
In this case, the initial value of the speed reference signal is
10 rad/s, and after the steady-state is reached, it is changed
abruptly to 5 rad/s in the fifth second. The comparison is
shown in Fig. 7. The results again reflect the difference
described in theory as in the previous case of the step Fig. 5. The control signal of different controllers
function. The sliding mode control was spectacularly better
in this study as well, as it was able to follow the change of the 5.3. Speed function
reference signal the fastest and to reach the new steady-state
asymptotically. The tracking results show similar perfor- In the case of the speed function, the result is similar to the
mance to step response results. Sliding mode control per- previous ones; the sliding mode controller performed best,
formed best; the undershoot and settling time of the loop as it was able to follow the signal almost perfectly in the case
with the PID controller were smaller than those of the one of the ideal motor model. The difference between PI and
with the PI controller. PID controllers is as expected from the theory. The response

Table 2. Parameters of controllers


Parameter Controller ZN CC CHR IMC
Kc PI 2.120 2.228 1.413 2.356
PID 2.635 3.466 2.238 6.011
Ti (min) PI 0.012 0.006 0.014 0.006
PID 0.007 0.007 0.008 0.008
Td (min) PI – – – –
PID 0.002 0.001 0.001 0.001

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


6 International Review of Applied Sciences and Engineering

5.4. Sine test signal


Similar conclusions can be drawn from the curves for the
sinusoidal test signal as for the speed function. Here, how-
ever, for both PI and PID controllers, the parameters of
Internal Modern Control proved to be the most efficient in
tracking the sinusoidal signal. In Fig. 9, the angular velocity
or rotational speed response curve obtained with the sliding
mode controller almost wholly covers the reference signal,
the difference being noticeable only in a few places.

5.5. Summary
Overall, similar results were obtained for all four test sce-
narios, according to which the sliding mode control produced
much better results at the brushed DC motor speed control.
The theoretical differences between the three different con-
trollers were also well visible in the simulations. By choosing
the appropriate parameters, it was possible to make the
Fig. 6. Error and derivative of the error
sliding mode controller work more efficiently than the PI and
PID controllers while also eliminating the chattering phe-
nomenon, which did not happen in any of the tests. The
summary of control performance indicators are shown in
Table 4 and 5. Smaller number means better control per-
formance. According to the results, the SMO has the best
control performance against PI and PID control laws.

Fig. 7. Comparison of controller's signal tracking capability

of the controllers is shown in Fig. 8. For the comparison, the


results of the best performers were used, so in the case of the
PI controller, the curves obtained with the smallest average
error are Cohen-Coon, while in the case of the PID
controller, the curves were obtained with the parameters of
the Internal Model Control method. Fig. 9. Sine test signal response comparison

Table 4. Error results of controllers


Largest
Average error Average error Largest
Controller (rad/s) error (%) (rad/s) error (%)
PI 0.91 6.35 0.91 6.35
PID 0.48 3.15 0.48 3.15
SMC 0.02 0.12 0.02 0.12

Table 5. Error results of controllers


Controller Average error (rad/s) Largest error (rad/s)
PI 5.65 9.42
PID 3.79 6.35
SMC 0.07 0.43
Fig. 8. Speed response of the controllers

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


International Review of Applied Sciences and Engineering 7

6. MEASUREMENT AND CONTROL SYSTEM Table 6. Parameters of the real motor

WITH A REAL MOTOR Resistance [Ω] 2.32


Inductance [mH] 0.238
Speed constant [(1/min)/V] 408
The main components of the physical system are the power Torque constant [m Nm/A] 23.4
supply, the NI myRIO Student Embedded Device, that Rotor inertia [g cm2] 10.8
serves as the interface between the real-world system and the
computer running the LabVIEW code, the motor drive
circuit, the permanent magnetic brush DC electric motor, signals, and instead of rotational speed in rad/s, RPM in
and the speed feedback encoder. The assembly is illustrated 1/min is used. It is somewhat intentional because students
in Fig. 10. The myRIO has dedicated inputs corresponding are required to analyse results and implement the simula-
to terminals A and B of the quadratic encoder, which are tion with the experiments’ parameters, not just check
digital inputs DIO18 and DIO22. It also contains dedicated whether the simulated results look like the real-world
outputs for the PWM signal, for which the digital output measurements.
DIO27/PWM0 has been used. A 5V high signal is required In the real DC-motor system PI and PID controllers are
on the motor drive circuit to turn on the motor, which is implemented with the built-in VIs, like in the case of the
specified at output DIO13. ideal motor model. It is important to note that the step size
The main parameters of the motor are summarized in of the simulation and the step size of the PID VI must be
Table 6. consistent so that the instantaneous speed is calculated
Figure 11 shows part of the LabVIEW program used in correctly from the encoder signal. The definition of the
the experimental setup. The encoder’s signal represents the parameters and the operation of the program are the same as
process value. The reference signal and process value are the those used for the ideal model. The parameters determined
inputs of the PID controller block, together with the PID for each controller with the use of various tuning methods
parameters, that come from the tuning process. The PID are summarized in Table 7.
block’s output is the control signal connected to the DC- The sliding mode control parameters this time are C 5 2,
motor’s input via the PWM block. This typical LabVIEW K 5 1 and d 5 0.9. The value of K determines the range of
“program code” illustrates the ease of use and transparency the output and since the duty cycle can take a value between
of LabVIEW applications with connected hardware com- 0 and 1 according to the Express VI used, it also determines
ponents via a connecting device, in this example, a myRIO the value of the parameter. The value of C was determined
Student Embedded Device. empirically, in the case of further increase, the control was
not functional, and the value of d still had to be chosen to be
0.9.
7. RESULTS WITH THE REAL MOTOR Responses to various test scenarios are shown in
Figs 12–15. It is important to note that the results seem to
Real-world measurements differ from the simulation in show the effect of saturation that was not present in the
motor parameters that result in different timescales, test simulation.

Fig. 10. The measuring system

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


8 International Review of Applied Sciences and Engineering

Fig. 11. Part of the real-world DC-motor control LabVIEW Block Diagram

Table 7. Parameters of controllers


Parameter Controller ZN CC CHR IMC
Kc PI 0.39 0.40 0.26 0.44
PID 0.52 0.59 0.41 0.90
Ti (min) PI 1.34E- 1.18E- 1.61E- 6.09E-
05 05 05 05
PID 8.04E- 9.62E- 9.65E- 6.29E-
06 06 06 05
Td (min) PI – – – –
PID 2.01E- 1.44E- 1.69E- 1.95E-
06 06 06 06

7.1. Step function


Fig. 13. Comparison of controllers in terms of signal tracking with
The responses to the step function measured by the con- a real motor.
trollers are as expected. The Ziegler-Nichols parameters gave
the best results for the PI controller and the Cohen-Coon
parameters for the PID controller. According to the theory,
the PID controller gave a more favourable result in terms of
overshoot. There is no significant difference in rise-time and

Fig. 14. Comparison of controllers based on speed function with a


real motor

settling time. The sliding mode controller was able to ach-


ieve better results without overshoot, with the steady-state
Fig. 12. Comparison of controllers based on step function with a settling in nearly a third of that time. The results obtained
real motor are shown in Table 8.

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


International Review of Applied Sciences and Engineering 9

Table 10. Results of speed function tests


Largest
Average Average error (rad/ Largest
Controller error (rad/s) error (%) s) error (%)
PI 16.50 1.12 71.39 47.56
PID 12.37 0.83 63.38 52.72
SMC 40.00 2.67 88.80 3.03

Barely noticeable differences can be seen in Fig. 15; de-


tails are presented in Table 11.

8. SUMMARY
Fig. 15. Comparison of controllers with sinusoidal test signal with
real motor
When comparing the results of the performed experiments,
the sliding mode control worked excellently in the case of the
ideal theoretical model. For all experiments, SMC was able to
7.2. Tracking follow the reference signal extremely well for both abrupt
In tracking the abrupt change of the reference signal. the changes and continuously changing signals. In the case of PI
PID controller performed surprisingly well with the pa- and PID controllers, there was a significant difference in the
rameters of the Internal Model Control method compared to parameters determined by different controller tuning
the other results. methods, although not all test signals gave the best results.
The sliding mode controller performed best, followed by With the real motor, the sliding mode controller no
the PID and then the PI in the last place. Table 9 shows the longer had a clear advantage. Although in cases where there
characteristics of the responses. was an abrupt change in the reference signal value it has
performed much better, in the case of continuously changing
signals such as the speed function or the sine signal it has
7.3. Speed function already lagged behind the other two controllers.
For the speed function test signal. the Ziegler-Nichols pa- Simulation is a very useful tool as students can check
rameters gave the best results for the PI and PID controllers. various controller parameter settings, comparing the results,
After the start. the error is roughly constant with the PI and, therefore, understand the role of the PID-controller’s
and PID controllers. while SMC’s error increases more and parts and their interaction. Experimenting with the tuning of
more with the increase of the input signal. The properties of a simulated control system often provides deeper knowledge
the response signals are shown in Table 10. than the use of controller tuning methods from textbooks
without understanding the underlying principles.
7.4. Sine signal The problems of saturation and integral windup usually
occur in real-world physical systems. There is an educational
In the case of the sinusoidal test signal, a better measure- value of showing these problems with relatively small-scale
ment result was obtained with the Cohen-Coon parameters real-world systems without the risk of serious damage, as
at least, however, this difference may also be due to the well as including the appropriate simulated versions beyond
measurement error mentioned earlier. the idealistic simulated system without considering satura-
tion and integral windup. The detailed discussion of satu-
Table 8. Results of step input tests ration and integral windup is going to be included in the
laboratory experiments’ handouts soon.
Rise time Settling Overshoot Undershoot The whole process of modelling the DC servo system,
Controller (s) time(s) (%) (%)
designing controllers and simulating the closed-loop control
PI 0.0005 0.0017 7.17 – system, and later performing experiments in a real-world
PID 0.0018 4.01 – – system based on the simulation results has a significant
SMC 0.0004 0.0006 – – educational value. Control engineering is considered a rather

Table 9. Results of tracking tests Table 11. Results of sine signal tests
Controller Settling time (s) Undershoot (%) Overshoot (%) Controller Average error (rad/s) Largest error (rad/s)
PI 0.0017 24.30 0.78 PI 16.60 26.66
PID 0.0009 4.40 – PID 11.42 18.47
SMC 0.0001 – – Sliding mode 89.81 149.15

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC


10 International Review of Applied Sciences and Engineering

difficult subject all over the world [16, 17]; therefore, it is well Electron., vol. 54, no. 3, pp. 1298–310, 2007. https://www.doi.org/
worth introducing the applications of the theory with exper- 10.1109/TIE.2007.893053.
iments like the one presented above. As the pandemic situa- [7] V. I. Utkin and K. D. Yang, “Methods for construction of
tion enforces distant education worldwide, the value and discontinuity planes in multidimensional variable structure sys-
importance of simulation increases. Students are not allowed tems,” Autom. Remote Control, vol. 39, no. 10, pp. 1466–70, 1979.
to participate in laboratory experiments, so the chance of using [8] K. D. Young, “Controller design for a manipulator using theory of
real-world devices is reduced. Educational devices, such as the variable structure systems,” IEEE Trans. Syst. Man. Cybernetics,
presented NI myRIO, offer the possibility of self-paced ex- vol. 8, no. 2, pp. 101–9, Feb. 1978, https://doi.org/10.1109/TSMC.
periments. especially when students can gain access to them by 1978.4309907.
borrowing or use via the Internet. The expansion of the pre- [9] K. Szell and P. Korondi, “Mathematical basis of sliding mode
sented system to Internet access is currently being investigated. control of an uninterruptible power supply,” Acta Polytech.
Hungarica., vol. 11, no. 3. 2014. https://doi.org/10.12700/aph.11.
03.2014.03.6.
ACKNOWLEDGEMENT [10] P. Korondi and H. Hashimoto, “Sliding mode design for motion
control,” in Applied Electromagnetics and Computational Tech-
This research was funded by TKS2020-NKA-04. Project no. nology II : Proceedings of the 5th Japan-Hungary Joint Seminar on
TKP2020-NKA-04 has been implemented with the support Applied Electromagnetics in Materials and Computational Tech-
provided from the National Research, Development and nology. IOS Press, 2000, pp. 221–32.
Innovation Fund of Hungary, financed under the 2020- [11] V. Utkin and H. Lee, “Chattering problem in sliding mode control
4.1.1-TKP2020 funding scheme. systems,” IFAC Proc. Volumes, vol. 39, no. 5, p. 1, 2006. https://
doi.org/10.3182/20060607-3-IT-3902.00003.
[12] P. Korondi, H. Hashimoto, and V. Utkin, “Discrete sliding mode
control of two mass system,” in 1995 Proceedings of the IEEE
REFERENCES International Symposium on Industrial Electronics, Athens,
Greece, vol. 1, 1995, pp. 338–43, https://doi.org/10.1109/ISIE.
[1] T. Wildi, Electrical Machines. Drives and Power Systems. Upper 1995.497019.
Saddle River. NJ. USA: Pearson Prentice Hall, 2006. [13] P. Korondi, H. Hashimoto, and V. Utkin, “Direct torsion control
[2] G. Sziebig, B. Takarics, and P. Korondi, “Control of an embedded of flexible shaft in an observer-based discrete-time sliding mode,”
system via Internet,” IEEE Trans. Ind. Electron., vol. 57, no. 10, pp. IEEE Trans. Ind. Electron., vol. 45, no. 2, pp. 291–6, April 1998,
3324–33, Oct. 2010, https://doi.org/10.1109/TIE.2010.2041132. https://doi.org/10.1109/41.681228.
[3] K. Al-Hosani, A. Malinin, and V. I. Utkin, “Sliding mode PID [14] H. Maghfiroh, A. Sujono, M. Ahmad, A. Brillianto, and H.
control of buck converters,” in 2009 European Control Conference Chico, “Basic tutorial on sliding mode control in speed control
(ECC), Budapest, 2009, pp. 2740–4, https://doi.org/10.23919/ECC. of DC-motor,” J. Electr. Electron. Inf. Commun. Technol., vol. 2,
2009.7074821. no. 1, pp. 1–4, 2020. https://www.doi.org/10.20961/jeeict.2.1.
[4] P. Korondi and H. Hashimoto, “Park vector based sliding mode 41354.
control of UPS with unbalanced and nonlinear load,” in Variable [15] E. H. Dursu and A. Durdu, “Speed control of a DC motor with
Structure Systems. Sliding Mode and Nonlinear Control, K D. Young variable load using sliding mode control,” Int. J. Comput. Electr.
and U. € uner, Eds., London. UK: Springer, 1999, pp. 193–209.
€ Ozg€ Eng., vol. 8, no. 3, pp. 219–26, 2016. https://www.doi.org/10.
[5] P. Korondi, S. H. Yang, H. Hashimoto, and F. Harashima, “Sliding 17706/IJCEE.2016.8.3.219-226.
mode controller for Parallel resonant dual converters,” J. Circuits. [16] P. Albertos and I. Mareels, Feedback and Control for Everyone.
Syst. Comput., vol. 5, no. 4, pp. 735–46, 1995. https://doi.org/10. Berlin, Heidelberg, Germany: Springer, 2010.
1142/S0218126695000424. [17] K. Zenger, “Control engineering. system theory and mathematics:
[6] R. E. Precup, S. Preitl, and P. Korondi, “Fuzzy controllers with the teacher’s challenge,” Eur. J. Eng. Edu., vol. 32, no. 6, pp. 687–94,
maximum sensitivity for servosystems,” IEEE Trans. Ind. 2007. https://doi.org/10.1080/03043790701520719.

Open Access. This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License (https://creativecommons.org/
licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited, a link to the CC
License is provided, and changes – if any – are indicated. (SID_1)

Unauthenticated | Downloaded 05/18/21 05:19 AM UTC

You might also like