An Implementation of Time-Delay Compensation Scheme For Networked Control Systems Using MATLAB/Simulink
An Implementation of Time-Delay Compensation Scheme For Networked Control Systems Using MATLAB/Simulink
An Implementation of Time-Delay Compensation Scheme For Networked Control Systems Using MATLAB/Simulink
net/publication/261021792
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
All content following this page was uploaded by Rajiv Kumar on 17 November 2015.
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.
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.
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
Send Pack
UDP
Send Pack
Binary
Remote PC
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:
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
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.
43