Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/261021792

An Implementation of Time-Delay Compensation Scheme for Networked


Control Systems Using MATLAB/Simulink

Conference Paper · October 2011


DOI: 10.1109/CICN.2011.29

CITATIONS READS

6 1,446

2 authors, including:

Sumit Vardhan
National Academy of Legal Studies and Research
3 PUBLICATIONS   12 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Risk-Averse Mathematical Modelling of SDN for Computing Highest Available Route using Risk Profiling of a Seismic Zone View project

Optical Network View project

All content following this page was uploaded by Rajiv Kumar on 17 November 2015.

The user has requested enhancement of the downloaded file.


Cyber Journals: Multidisciplinary Journals in Science and Technology, Journal of Selected Areas in Telecommunications (JSAT), June Edition, 2011

Simulations for Time Delay Compensation in


Networked Control Systems
Sumit Vardhan, Student Member, IEEE, and Rajiv Kumar, Member, IEEE

Abstract—Time delay plays a critical role in the


performance of real-time Networked Control Systems
(NCS). It can destabilise the NCS as it deteriorates
the performance and stability of networked control
systems. Communication networks inevitably
introduce delays in NCS. Therefore, it is necessary to
compensate the time delay. The time taken by the
system depends upon the characteristics of the
network such as topology and routing algorithms
used in the network. However, this paper adopts the
prediction based delay compensation technique by the
use of Smith Predictor. The stability analysis has been
done for different plant transfer functions. Transport
layer protocol User Datagram Protocol (UDP) has
been used for communication. Simulations have been
done with help of MATLAB/Simulink. It has been
illustrated that delay compensation depends upon the Fig. 1. A Generalised Model of NCS [2].
order and time constant of the system.
Index Terms---Delay compensation, Networked The applications of networked control systems
Control Systems, PID Controller, Smith predictor. can be divided into two broad categories: i) time-
delay sensitive applications, and ii) time-delay
insensitive applications. Time delay causes
I. INTRODUCTION instability in time sensitive applications. Time
delay plays a critical role here. If the time delay
N ETWORKED Control Systems (NCS) are
real-time distributed systems where
exceeds the tolerable time limit, the performance of
the system deteriorates. This can also result in
components such as sensors, controllers, and damage to the system. Tele- operation via networks
actuators are connected through communication is an example of time-delay sensitive application
network [1]. The network as a medium of where it can be used for undersea operations, fire-
interconnection may be wired or wireless. A fighting operations, surgery operations, and
automated highway driving operations. On the
typical networked control system has been shown
other side, time delay insensitive applications
in Fig.1. In an NCS, information is exchanged include the systems where the deadlines are not
through the network among various control system critical. Examples of these applications are http, e-
components. mail, DNS and ftp [2].
The networked control systems operate over the
networks. So, there are many challenging issues
which arise in the design process of NCS. Network
Sumit Vardhan is pursuing the Bachelor of Technology reliability is one of the most important factor. The
degree in Electronics and Communication Engineering from presence of network in networked control systems
Jaypee University of Information Technology, Waknaghat, can introduce severe problems like delays, jitter,
Solan, H.P. ,INDIA 173234 (e-mail: packet losses, etc. The time taken for the
sumitvardhan2008@gmail.com). measurements by the system and to transmit a
Rajiv Kumar is faculty with the Department of Electronics control signal to the actuator and other components
and Communication Engineering, Jaypee University of
in NCS depends upon the characteristics of the
Information Technology, Waknaghat, Solan, H.P., INDIA
network such as topology and routing algorithms
173234 (e-mail: rajiv.kumar@juit.ac.in).
used in the network [2].

38
Networked control systems are distributed real- The signal takes some time to transmit between the
time systems. An NCS can be a multi-sensor and controller and actuator and between sensor and
multi-actuator system. So, the bandwidth allocation controller. The transmission time taken by the
in NCS should be given consideration. The signal depends upon the topology, routing scheme
scheduling methods and bandwidth allocation and the scheduling policy used in the system [5].
strategies should be such that they result in an
optimal and efficient utilisation of the available There are three kinds of delays in Networked
bandwidth. Control Systems:
Since its inception, time delay has been a 1. Data transfer delay between the sensor and the
challenging problem in NCS. All types of delays
severely degrade the performance of the system controller, τ ksc .
[1,2]. Generally, time delay is the sum of 2. Computational delay in the controller, τ k .
c
computation time, measurement time, process time
and the time taken by the controller or command 3. Data transfer delay between controller and
signal sent over the network. The design of NCS actuator, τ kca .
becomes complex since the network introduces where k indicates possible time dependence of
time delay uncertainty in the NCS components delays [5,7].
(actuators, sensors, controllers). The performance
of the system becomes worse when there arises
condition of data loss [7]. Time delay in NCS
The communication delay is the sum of τ ksc and
destabilise the system and it does not give the ca
τ The control delay, τ k , in an NCS is the time
k .
required response [3]. So it is a necessity to design
between the instant a measurement signal is
a controller for the compensation of time delays
sampled and when it is used in the actuator for
and for the improvement of the performance and
taking required action [6]. The control delay is the
stability of NCS.
sum of the communication delays and
There are various strategies for delay computational delay,
compensation and for making the system stable.
These include Smith Predictor control, PID control, τ k = τ ksc + τ kc + τ kca (1)
LQR control, fuzzy control, adaptive control,
intelligent control, robust control and various The variations in delay also causes problem in the
control algorithms [2]. We have to modify these design of the Networked Control Systems. The
control strategies as per the requirements to variations in time delay makes the system time-
compensate for delays and unpredictability. invariant and thus its designing becomes complex.
One of the ways to get rid of the time variations is
the introduction of clocked buffers at the input of
II. NCS TIME-DELAY the controller node and the actuator node. This
scheme makes the communication delay between
In a networked environment, many challenges the nodes deterministic. But it results in the use of
are to be taken care of during the design of NCS. old information which may result in degradation of
The compensation of time delays is one of the the performance of the system.
challenges in NCS which is necessary for the
optimal performance of the system. Time delay in
NCS severely degrades the performance of the
system and the system becomes unstable. So an
estimator can be used for the compensation of time
delay in NCS. The NCS estimator can predict the
state of the plant and thus the control system
components can take the necessary action without
delay. The different types of time delay
compensation schemes in NCS can be: Smith
Predictor, PID controller, LQR controller, fuzzy
controller, adaptive controller, intelligent
controller, robust control, sliding mode controller
etc.

A networked control system with plant,


sensor, actuator, controller and network is shown in
Fig.2. The centralized controller communicates Fig. 2. The NCS Model [5].
with the actuator and sensor over the network [6].

39
III. METHODOLOGY ADOPTED FOR 1950 is used as a predictive controller in
DELAY COMPENSATION networked control systems to compensate time
delay [9]. The Smith Predictor consists of PID
Generally, the classical tuning formula for controller with process mathematical model in the
typical PID controllers provides unsatisfactory feedback loop.
results in the control systems where the time delay
exceeds the critical value. The stability of the Smith Predictor acts as an estimator for the
networked control systems should always be the system. It is a feedback control technique having a
first concern and the controllers should be designed minor loop[9]. It provides a virtual system to PID
considering the stability and delay-characteristics controller without time delay. This technique of
of the NCS. Network-induced delay is one of the delay compensation can be applied to the
major problems in NCS. The network-induced networked control systems that have long loop
delays occur when the data is exchanged among the delays. Fig.3 shows the block diagram of Smith
sensors, controllers and actuators across the Predictor which is being used for delay
communication network. This delay can degrade compensation in the networked control systems.
the performance of the NCS if the control system is The block diagram consists of the plant which lies
designed without considering it and it can in the negative feedback loop with both feed
destabilise the system. forward and feedback delays. G(z) represents
stable, delay free part of the plant which is strictly
Packet loss is another problem in NCS. Packet proper rational function. G(z) with delay is in the
loss occurs due to noise, interference, node failures feedback loop. C(z) represents controller part[9].
and packet collisions in the network. In Internet The reference input shown in Fig.3 is step
Protocol (IP) networks, Transport layer protocols: function. There are two feedback loops. The output
Transmission Control Protocol (TCP) and User loop is used to feed the output back to the input.
Datagram Protocol (UDP) are used for the With this loop alone, the system will not give the
transmission of data from one process to another. optimal performance because it is feeding back the
Depending upon the protocol used, the packets are delayed and outdated information which leads to
either retransmitted or not if they are lost or degraded performance of the system. So, the inner
received with error at the receiving end. TCP is loop which contains the predictor and the plant
connection-oriented reliable transport layer model controls the system by feeding back the
protocol. It uses an acknowledgment mechanism to predicted output of the plant taking time delay into
check the error-free arrival of data. In TCP, account.
messages are retransmitted in case of loss of data or
erroneous arrival of packets. The packets arrive in
the correct packet order at the receiver side. On the
other hand, UDP is connection-less and unreliable IV. SIMULATIONS
transport layer protocol. There are no The simulations of Networked Control System
retransmissions in UDP and the packets may arrive have been performed using
in out-of-sequence manner at the receiver end. The MATLAB/Simulink.The simulink models with
retransmissions and acknowledgments can lead to network are shown in Fig.4. The simulink blocks
congestion as the network gets loaded. Therefore, are simulated in host PC and remote PC.The
UDP is much faster than TCP, but it is also sending simulink model with Smith Predictor is
unreliable. kept in host PC and receiving simulink block with
the plant is kept in remote PC.This configuration
forms an environment of closed loop networked
control system.The Transport layer protocol User
Datagram Protocol (UDP) is used for sending data
over the network.UDP has been preferred over
TCP since UDP provides increased speed of
communication and TCP introduces more delays
and can lead to undesirable performance of the
NCS.UDP Send and UDP Receive blocks have
been used in the simulink models.The step
response of the system without network and with
network are shown in the graphs shown in Fig. 6.
Fig. 3. Smith Predictor.

Various strategies have been developed to


compensate time delay and cope with this problem
[8]. Smith Predictor developed by O.J Smith in

40
Scope 2
Signal
Generator
du /dt
-K - Derivative

Gain
UDP
Pack Send
Binary
0 .1 Pack Send

Gain 1

130
Transfer Fcn
1 den (s)
1
s
Gain 2 Integrator

Transport
Delay

Unpack
Receive

Unpack UDP
Receive
Binary

Scope 4

Host PC
Transfer Fcn

UDP Unpack 130


Receive 2s2 +s+1 Transport
Binary Delay
Unpack
Terminator Scope
Receive

Send Pack

UDP
Send Pack
Binary

Remote PC

Fig. 4. Simulink Blocks used for Delay Compensation in NCS

Step

du /dt

-K - Derivative

Gain
130
s2 +8s+3
Scope 4
0.1 Transfer Fcn

Gain 1

1
1
s
Gain 2 Integrator

Fig. 5. Simulink Block used to control the plant using PID controller

41
Case (i): When plant transfer function is: Case (iv): When plant transfer function is:

130 /( s + 0.5) 130 /(0.1s 2 + 5s + 6)

Case (ii): When plant transfer function is:


Case (v): When plant transfer function is:
130 /(5s + 10)
130 /( s 2 + 8s + 3)

Case (iii): When plant transfer function is: Case (vi): When plant transfer function is:
130 /(10 s + 10) 130 /( 2 s 2 + s + 0.5)
Fig. 6. Responses considering different plant transfer functions :(i) In each case, upper graph shows responses with PID controller only
(without network), and (ii) In each case, response in lower graph is with Smith Predictor (with network).
42
V. RESULT AND DISCUSSION ACKNOWLEDGMENT

Results of the simulink models of Fig. 4 and Fig.


5 have been shown in Fig. 6. Following six
Authors are sincerely thankful to Dr. Y.
different transfer functions have been used for
Medury, COO, Jaypee Education System for
simulations:
his continuous support and motivation in the
current project.
Case (i): When plant transfer function is
130 /( s + 0.5) REFERENCES

Case (ii): When plant transfer function is: [1] A. Bemporad, W.P.M.H. Heemels, M. Johansson,
Networked Control Systems, Springer, 2010.
130 /(5s + 10) [2] Rachna A. Gupta, Mo-Yuen Chow, “Networked
Control System: Overview and Research Trends,”
Case (iii): When plant transfer function is: IEEE Transactions on Industrial Electronics, Vol. 57,
Issue 7, pp 2527 – 2535, 2010.
130 /(10 s + 10) [3] K. Ogata, Modern Control Engineering, Prantice
Hall of India, New Delhi, 2010.
[4] Li LI and Fei-Yue WANG, “Control and
Case (iv): When plant transfer function is: Communication Synthesis in Networked Control
2 Systems”.
130 /(0.1s + 5s + 6)
[5] John Nilsson, Real-Time Control Systems With
Delays, PhD. Thesis, 1998.
Case (v): When plant transfer function is: [6] Simon Coman, V.Comnac, Cr. Boldisor, R.Demeter,
2 “Networked Control Systems for DC Electrical
130 /( s + 8s + 3) Drives,” Scientific Bulletin of the Petru Maior
University of Tirgu Mures, vol. 5, pp 61-64 2009.
[7] Sachi Mittal, Anwar S Siddiqui, “Networked Control
Case (vi): When plant transfer function is: System : Survey and Direction , Journal of
130 /( 2 s 2 + s + 0.5) Engineering Research and Studies, vol.I, Issue II, pp
35-50, 2010.

[8] Veronesi Massimiliano , “Performance Improvement


The simulations of the networked control system of Smith Predictor Through Automatic Computation
have been performed using Simulink block of Dead Time,” Yokogawa Technial Report, pp 26-
30, 2003.
diagram shown in Fig.4. Step responses of the [9] Higashimita Tamaku, Kawasaki, “Smith Predictor
considered NCS have been shown in lower graph Control and Internal Model Control - A Tutorial”
of each case in Fig. 6. This set of Simulation
blocks gives the step response considering
network between the Host PC and Remote PC. In Sumit Vardhan is student member of IEEE. He is pursuing
Fig. 6, upper graph in each case shows the step the Bachelor of Technology degree in Electronics and
response obtained from Simulink block of Fig. 5. Communication Engineering from Jaypee University of
UDP has been used since it is much faster than the Information Technology, Waknaghat, Solan, H.P., INDIA . His
TCP and it provides increased communication research interests include control, communication and
speed as compared to the TCP transport layer computing systems.
protocol. Use of TCP instead of UDP would lead e-mail: sumitvardhan2008@gmail.com
to more delay values and degraded system
performance.The performance of the control Rajiv Kumar received the B.Tech. degree in 1994 from
College of Technology, G.B. Pant University of Agriculture &
system has been investigated using control Technology, Pantnagar and the M.Tech. degree from Regional
algorithms like PID controller and Smith Predictor Engineering College, Kurukshetra (Kurukshetra University)
in the networked environment. Simulation shows with specialization in Control System. He started his career as a
that delay compensation is possible with the help teaching associate from National Institute of Technology (NIT),
Kurukshetra. He is currently with the Department of Electronics
of Smith predictor. Response of both first-order and Communication Engineering at Jaypee University of
and second-order systems has been shown with Information Technology, Waknaghat, Solan. He obtained his
the help of simulations.The performance of NCS Ph.D. in network reliability in the year 2010 from NIT under the
depends upon the order of the system.Time-delay supervision of Prof. Krishna Gopal. Rajiv Kumar is member of
IEEE and Life Member of ISTE, IETE, Forum of
varies for the systems with different orders.The Interdisciplinary Mathematics and System Society of India. His
design of the control algorithm and the controller research interests include cyber- physical systems and network
should take into account the characteristics of reliability.
NCS and the order of the system.Better results are web: www.juit.ac.in
e-mail: rjv.ece@gmail.com, rajiv.kumar@juit.ac.in
possible by proper tuning of the components of
the predictor.

43

View publication stats

You might also like