Академический Документы
Профессиональный Документы
Культура Документы
Project Supervisors
Dr. Farah Haroon
Engr. Agha M. Shakir
Submitted to In-Charge Project Work
i
CERTIFICATE
This is to certify that the project report entitled
Submitted by
Is a bonafide work carried out by them under the supervision of Engr. Agha Muhammad Shakir
& Engr. Asif Ahmad and it is approved for the partial fulfilment of the requirement of the
Institute of Industrial Electronics Engineering for the award of the degree of Bachelor of
Engineering in Industrial Electronics Engineering during the academic year 2018.
This project report has not been earlier submitted any other Institute or University for the award
of any degree.
Members FYP-Committee
iii
ACKNOWLEDGEMENTS
First of all, we are very thankful to ALLAH ALMIGHTY who gives us such power,
knowledge, and ability to accomplish our goals. Without His kind help, we would be unable to
do this.
The primary acknowledgment for this project is directed towards our supervisors
Engr. Agha Muhammad Shakir and Engr. Dr. Farah Haroon who gave us the golden
opportunity to do this wonderful project “Adaptable PID Controller for Industrial Hot and
Cold Chamber” which also helped us in doing a lot of research and we came to know about
so many new things we are really thankful to them. Both these supervisors helped us in
providing an easier solution of our problems during the development of this project. We would
also thankful to our external supervisor which helped us not only in the selection of this project
but also helped a lot in every step of the development of the project.
We also thank our classmates for their useful suggestions. Their technical support and
encouragement helped us to finalize our project. We would also like to express our gratitude
towards the Institute for providing us with the best facilities and proper environment to work
on our project.
“May Allah Almighty bless all the personalities who had directly or indirectly helped us to
achieve our goals.”
iv
ABSTRACT
Our aim in this project is to design an Adaptable PID Controller for Industrial Hot and Cold
Chamber. In this project, there is a Chamber in which we have to control the temperature of
the fluid by heating and cooling it. Controlling is done by making PID adaptable by using
analogical gates regarded as fuzzy operation. It doesn’t depend on the changing of PID
controller parameters but it depends on changing the share of each controller term on the total
control action. The purpose of this project is to eliminate Auxiliary controller which are used
as a compensator with PID in industries. The project also comprises the application of OPC
communication protocol for communicating the PC and PLC for HMI used for monitoring and
controlling of parameters.
The adaptable PID controller is favorable for the quick control action when the setpoint changes
throughout the process. It is also feasible to use in different process industries like beverages,
pharmaceutical, cement industries, and Textile industries etc.
Key words: PLC, HMI, Industrial Automation, Adaptable PID, Fuzzy Operation, OPC.
v
TABLE OF CONTENTS
Title Page i
Detail of Supervisors ii
Detail of Group Members iii
Acknowledgments iv
Abstract v
Table of Contents vi
List of Tables viii
List of Figures ix
List of Abbreviations x
List of Symbols xi
1 Introduction 01
1.1 Background 02
1.2 Motivation 02
1.3 Problem and Challenges 02
1.4 Possible Solutions 02
1.5 Proposed Solution 02
1.6 Objectives 03
1.7 Organization of the Report 03
2 Literature Review 04
2.1 Information 04
2.1.1 Methods to calculate the volume of the tank 04
2.1.2 Specifications of Tank 04
2.1.3 Insulation of a tank 05
2.2 Programmable Logic Controller 05
2.2.1 History of PLC 05
2.2.2 Functions and Uses of PLC 06
2.2.3 Advantages of PLC 06
2.2.4 PLC Manufacturers 06
2.3 Delta PLC Overview 07
2.3.1 Delta DVP 20 SX2 07
2.3.2 Specifications of Delta DVP 20 SX2 07
2.3.3 Communication in Delta DVP 20 SX2 07
2.3.4 A/D Conversion in Delta DVP Series PLC 08
2.3.5 D/A Conversion in Delta DVP Series PLC 08
2.4 Communication Between PC & PLC 08
2.4.1 Hardware Protocol of Compunction 09
2.5 OPC 09
2.5.1 What is OPC? 09
2.5.2 History of OPC 09
2.5.3 Uses of OPC 10
2.5.4 Design of OPC 10
vi
2.5.5 KEP Server EX 11
2.6 Selection of Sensors 12
2.6.1 RTD-PT100 12
2.7.1 Temperature Transmitter 13
2.7.2 Solid State Relay 14
2.7.3 Solenoid Valve 14
3 Methodology 15
3.1 Concepts 16
3.1.1 Block Diagram of the Project 17
3.1.2 Process Flow Diagram 18
3.2 Temperature Controlling 18
3.2.1 Heater Control Technique 18
3.2.2 Mathematical model of the heater 19
3.3 System Identification By MATLAB 22
3.3.1 Close loop transfer function 23
3.4 Communication Between PC And PLC 23
3.5 Project Hardware 24
3.5.1 Hot and Cold Chamber 25
3.5.2 Cooling Source 26
3.5.3 Heating Source 26
3.6 Optocoupler Circuit 26
3.7 Software 26
3.7.1 WPL Soft 26
3.7.2 OPC KEP Server 27
3.7.3 WinCC Flexible 28
3.7.4 MATLAB 29
3.8 Overall Algorithm 29
4 Results and Discussion 30
4.1 Simulation Results 30
4.2 Experimental Results 31
4.3 Comparison between Simulation and Experimental Results 32
5 Conclusion and Recommendations 33
5.1 Conclusion 33
6 References 34
7 Appendices 35
vii
LIST OF FIGURES
viii
LIST OF TABLES
ix
LIST OF ABBREVIATIONS
x
LIST OF SYMBOLS
∧ Analogical Invoke
⨁ Analogical OR
xi
CHAPTER 1
INTRODUCTION
2
1.7 Organization of the Report:
Chapter 2 discusses the literature review of the project.
3
CHAPTER 2
LITERATURE REVIEW
2.1 Information:
For the solution of the problem statement, we went through different sources i.e. reviewing
various research papers, consulting with different industrialist. After all this, we came to the
solution for this problem that to make our PID Adaptable we must use Analogical Gates which
are based on behavior fusion technique.
The approach we have adopted is both simple and novel. We employ Analogical gates on a set
whose elements are continuous in time. These gates can be regarded as a fuzzy operation. Using
analogical we construct behavior circuits that process individual behavior to produce a desired
“plausible” overall behavior. The philosophy of adapted PID controller based on analogical
gates. It does not depend on the changing of PID controller parameters but it depends on
changing the share of each controller term on the total control action. [3]
The industrial Hot & Cold Chamber can be used for quality control testing of the product in
both cool and hot environments. As per the requirement of fast response when the setpoint
changes throughout the process, the adaptable PID controller is favorable for the quick control
action. [6]
Industries such as textile, food, and pharmaceutical use hot and cold chamber for heat treatment
of their products, they can get benefits using our adaptable PID controller, without having to
change to Fuzzy and MPC which will take time and cost much more.
Now discuss the topics including industrial Hot & cold Chamber, PLC, Solenoid Valves, OPC
temperature sensor, temperature transmitter, Solid State Relay (SSR).
5
to-day control requirements without changing the field wiring. This easy alteration is possible
since there are no physical connections between the field input devices and output devices (see
Figure2.4), as in hardwired systems. The only connection is through the control program,
which can be easily altered. [10]
6
2.3.2 Specifications of Delta DVP 20 SX2:
Specifications Details
MPU points 20 (8DI/6DO, 4AI/2AO)
High-Speed Pulse Supports 2 points (Y0, Y2) of 100kHz and 2 points (Y1,
Output Y3) of 10kHz independent high-speed pulse output.
7
Table 2.2: Delta DVP 20 SX2 AD and DA Specifications
8
Considering the PC-PLC connection, both of these solutions require the use of interface boards
in order to implement the particular protocol used by the networks.
2.5 OPC:
OLE (which stands for Object Linking and Embedding) for Process Control OPC is the name
for a standards specification developed in 1996 by an industrial automation industry task
force. The standard specifies the communication of real-time plant data between control
devices from different control system
manufacturers. The OPC specification was
based on the OLE, COM (component object
model) and DCOM (distributed component
object model) technologies developed by
Microsoft for the Microsoft Windows
operating system family. The specification
defined a standard set of objects, interfaces,
and methods for use in process control and Fig 2.3: OPC Server as Linking Software
manufacturing automation applications to
facilitate interoperability. The most common OPC specification is OPC Data Access, which
is used to read and write real-time data. When vendors refer to OPC generically, they typically
mean OPC Data Access. [9]
2.5.1 What is OPC?
OPC is a software interface standard that allows Windows programs to communicate with
industrial hardware devices as shown in Figure 2.10. OPC is implemented in server/client pairs.
The OPC server is a software program that converts the hardware communication protocol
used by a PLC into the OPC protocol. The OPC client uses the OPC server to get data from
or send commands to the hardware.
The acronym "OPC" comes from "OLE (Object Linking and Embedding) for Process Control".
Since OLE is based on the Windows COM (Component Object Model) standard, under the
hood OPC is essentially COM. Over a network, OPC relies on DCOM (Distributed COM),
which was not designed for real-time industrial applications and is often set aside in favor of
OPC tunneling.
2.5.2 History of OPC:
OLE for Process Control (OPC), which stands for Object Linking and Embedding. (OLE) for
Process Control, is the original name for standards specification developed in 1996 by an
industrial automation industry task force. The standard specifies the communication of real-
time plant data between control devices from different manufacturers.
As of November 2011, the OPC Foundation has officially renamed the acronym to mean
"Open Platform Communications" although they also use the tagline "Open Productivity &
Connectivity" on their website. The change in name reflects the applications of OPC
technology for applications in Process Control, discrete manufacturing, building automation,
and many others.
9
OPC has also grown beyond its original OLE (Object Linking and Embedding)
implementation to include other data transportation technologies including XML, Microsoft's
.NET Framework, and even the OPC Foundation's binary-encoded TCP format. [11]
After the initial release in 1996, the OPC Foundation was created to maintain the standard.
Since then, standards have been added and names have been changed. As of June 2006, "OPC
is a series of standards specifications". (Seven current standards and two emerging standards.)
"The first standard (originally called simply the OPC Specification"), is "now called the Data
Access Specification", or (later on the same page) "OPC Data Access", or OPC Data Access
Specification.
2.5.3 Uses of OPC:
The OPC Specification was based on the OLE, COM, and DCOM technologies developed by
Microsoft for the Microsoft Windows operating system family. The specification defined a
standard set of objects, interfaces, and methods for use in process control and manufacturing
automation applications to facilitate interoperability. The most common OPC specification is
OPC Data Access, which is used to read and write real-time data. When vendors refer to OPC
generically, they typically mean OPC Data Access (OPC DA). OPC DA itself has gone
through 3 major revisions since its inception. Versions are backward compatible, in that a
version 3 OPC Server can still be accessed by a version 1.
OPC Client, since the specifications, add functionality but still require the older version to be
implemented as well. However, a Client could be written that does not support the older.
Functions since everything can be done using the newer ones, so a DA 3 compatible Client
will not necessarily work with a DA 1.0 Server. [9]
In addition, OPC DA specification, the OPC Foundation also maintains the OPC HDA
(Historical Data Access) specification. In contrast to the real-time data that is accessible with
OPC DA, OPC HDA allows access and retrieval of archived data.
2.5.4 Design of OPC:
OPC was designed to provide a common bridge for Windows-based software applications and
process control hardware. Standards define consistent methods of accessing field data from
plant floor devices. This method remains the same regardless of the type and source of data.
An OPC Server for one hardware device provides the same methods for an OPC Client to
access its data as any and every other OPC Server for that same and any other hardware device.
The aim was to reduce the amount of duplicated effort required from hardware manufacturers
and their software partners, and from the SCADA and other HMI producers in order to
interface the two the new hardware device their work was done to allow any 'top end' to access
their device, and once the SCADA producer had developed their OPC Client their work was
done to allow access to any hardware, existing or yet to be created, with an OPC compliant
server.
OPC servers provide a method for many different software packages (so long as it is an OPC
Client) to access data from a process control device, such as a PLC or DCS. OPC Client/Server
architecture is shown in Figure 2.8 Traditionally, any time a package needed access to data
from a device, a custom interface, or driver, had to be written. The purpose of OPC is to define
a common interface that is written once and then reused by any business, SCADA, HMI, or
10
custom software packages. There is nothing in the OPC specifications to restrict the server to
providing access to a process control device. OPC Servers can be written for anything from
getting the internal temperature of a microprocessor to the current temperature in Monument
Valley.
Once an OPC Server is written for a particular device, it can be reused by any application that
is able to act as an OPC client. OPC servers use Microsoft’s OLE technology (also known
as the Component Object Model, or COM) to communicate with clients. COM technology
permits a standard for real-time information exchange between software applications and
process hardware to be defined. It is important to note that some OPC specifications are
published; others are available only to a member of the OPC Foundation. [9]
2.5.5 KEP Server EX:
KEP Server EX is the industry’s leading connectivity platform that provides a single source
of industrial automation data to all of your applications. The platform design allows users to
connect, manage, monitor, and control diverse automation devices and software applications
through one intuitive user interface. KEP Server EX leverages OPC (the automation industry’s
standard for interoperability) and IT-centric communication protocols (such as SNMP,
ODBC, and web services) to provide users with a single source for industrial data. The
platform is developed and tested to meet our customers’ performance, reliability, and ease-of-
use requirements.
KEP Server EX provides data access for client applications (such as MES and SCADA) and
IoT and Big Data analytics software via OPC, proprietary protocols (including GENIO, Suite
Link/Fast DDE, and Splunk), IT protocols (including MQTT, REST, ODBC, and SNMP), and
flow measurement export to common Oil & Gas industry formats.
2.5.5.1 Business Value
KEP Server EX provides the connectivity, usability, and performance required by the modern
enterprise—offering competitive benefits that can be experienced from the plant floor to IT to
the boardroom.
IoT-ready, connecting Operations with IT and enabling Business Intelligence and
Operational Excellence across the enterprise
Fully compatible with the Thing Worx Manufacturing Accelerator, including the Thing
Worx Controls Advisor app that provides remote real-time visibility into connectivity
across all factories
Compatible with leading hypervisors, such as VMware and Hyper-V, for flexible
deployment on public and private clouds
Integrates with IT applications for visibility into assets on the plant floor at any time and
from any location
Enhanced messaging security via SSL and TLS for secure, authenticated, and encrypted
communications across various network topologies
Advanced application security features to meet site security requirements
Sophisticated access control to the server, data source, and data values
11
Multiple redundancy options to ensure resiliency, high-reliability, and uptime in critical
applications
Streamlined interface for simple installation, configuration, maintenance, and
troubleshooting. [9]
2.6 Selection of Sensors:
First of all, we will select sensors according to our application we know that our chamber
having temperature range 0 0C to 100 0C so we can use RTD-PT100 as a temperature sensor.
2.6.1 RTD-PT100:
Resistance Temperature Detectors (RTDs) are sensors that measure temperature by correlating
the resistance of the RTD element with temperature. Most RTD elements consist of a length of
fine coiled wire wrapped around a ceramic or glass core.
2.6.1.1 Working Principle of RTD:
An RTD (resistance temperature detector) is a temperature sensor that operates on the
measurement principle that a material’s electrical resistance changes with temperature. The
relationship between an RTD’s resistance and the surrounding temperature is highly
predictable, allowing for accurate and consistent temperature measurement. By supplying an
RTD with a constant current and measuring the resulting voltage drop across the resistor, the
RTD’s resistance can be calculated, and the temperature can be determined.
2.6.1.2 RTD Configurations:
In addition to different materials, RTDs are also offered in two major configurations: wire
wound and thin film. Wire wound configurations feature either an inner coil RTD or an outer
wound RTD. An inner coil construction consists of a resistive coil running through a hole in a
ceramic insulator, whereas the outer wound construction involves the winding of the resistive
material around a ceramic or glass cylinder, which is then insulated. [5]
The thin film RTD construction features a thin layer of resistive material deposited onto a
ceramic substrate through a process called deposition. A resistive meander is then etched onto
the sensor, and laser trimming is used to achieve the appropriate nominal values of the sensor.
The resistive material is then protected with a thin layer of glass, and lead wires are welded to
pads on the sensor and covered with a glass dollop.
Thin film RTDs have advantages over the wire wound configurations. The main advantages
include that they are less expensive, are
more rugged and vibration resistant, and
have smaller dimensions that lead to better
response times and packaging capabilities.
For a long time wire wound sensors
featured much better accuracy. Thanks to
recent developments, however, there is
now thin film technology capable of
achieving the same level of accuracy.
12
2.6.1.3. Operations of RTD:
An RTD takes a measurement when a small DC current is supplied to the sensor. The current
experiences the impedance of the resistor, and a voltage drop is experienced over the resistor.
Depending on the nominal resistance of the RTD, different supply currents can be used. To
reduce self-heating on the sensor the supply current should be kept low. In general, around
1mA or less of current is used.
An RTD can be connected in a two, three, or four-wire configuration. The two-wire
configuration is the simplest and also the most error-prone. In this setup, the RTD is connected
by two wires to a Wheatstone bridge circuit and the output voltage is measured. The
disadvantage of this circuit is that the two connecting lead wire resistances add directly two the
RTD’s resistance and an error is incurred.
The four-wire configuration consists of
two current leads and two potential leads
that measure the voltage drop across the
RTD. The two potential leads are high
resistance to negate the effect of the
voltage drop due to current flowing during
the measurement. This configuration is
ideal for canceling the lead wire
resistances in the circuit as well as
eliminating the effects of different lead Fig. 2.5: 3 Wire Configuration RTD Connection Diagram
resistances, which was a possible problem
with the three-wire configuration. The four-wire configuration is commonly used when a
highly accurate measurement is required for the application.
In combination with the wiring diagrams shown, a more complex circuit is often employed.
There are many different options for circuits when working with an RTD. The two most
important features of this circuit are the current generation and signal conditioning. For
purposes of linearity, it is important that the current generation circuit supplies a stable
excitation to the RTD. Once a stable excitation current is applied to the RTD, the signal
conditioning path of the circuit cancels lead resistances, gains the signal and converts the signal
to digital using an ADC, which can then be read by a controller.
13
temperature of the process. Then, as the temperature rises, the thermocouple transmitter will
draw proportionally more current, until it reaches 20 mA. This 20-mA signal corresponds to
the thermocouple’s highest sensed temperature. The transmitter’s internal signal-conditioning
circuitry (powered by a portion of the 4-20 mA current) determines the temperature range that
the output current signal will represent.
The table below shows the specification of the temperature transmitter.
Table 2.3: Specifications of Temperature Transmitter
Output 4 – 20 mA
Power Loop powered 24V DC 50 mA
Dimensions 50 mm diameter
14
thereby operate a mechanism which regulates the opening of fluid flow in a valve.
Solenoid valves differ in the characteristics of the electric current they use, the strength of the
magnetic field they generate, the mechanism they use to regulate the fluid, and the type and
characteristics of fluid they control. The mechanism varies from the linear action, plunger-
type actuators to pivoted-armature actuators and rocker actuators. The valve can use a two-port
design to regulate a flow or use a three or more port design to switch flows between ports.
Multiple solenoid valves can be placed together on a manifold.
Solenoid valves are the most frequently used control elements in fluidics. Their tasks are to
shut off, release, dose, distribute or mix fluids. They are found in many application areas.
Solenoids offer fast and safe switching, high reliability, long service life, good medium
compatibility of the materials used, low control power and compact design.
15
CHAPTER 3
METHODOLOGY
3.1 Concepts:
The adaptation of PID is carried out using analogical gates. Analogical gates are a method of
describing multi-valued logical statements. The scope of operation of binary logic-based
systems to true multi-valued logic-based systems is widened based on the analogical gate.
Furthermore, the design and implementation of these gates for practical systems have proven
to be efficient and simple.
Throughout the following treatment, we use an exponential function in two variables x and y.
𝑎𝑥 2 +𝑏𝑥𝑦
−( 2 2 )
𝑓(𝑥, 𝑦) = 𝑒 𝑥 +𝑦 (3.1)
Where x, y ℇ R also a & b are constants. The above-mentioned function can be regarded as a
two-dimensional membership function on a “Fuzzy” input set of two behaviors. [3]
We will use this function to design and implement the analogical gates and these are used in
our tuning network of the adaptable PID controller. The block diagram for the tuning network
is given below.
Where UP, UI and Ud are proportional, integral and derivative control action respectively. Here
the operator ∧ and ⨁ are used for analogical-INVOKE and analogical-OR. These gates are
needed to be programmed in the PLC in order for the adaptable PID to work.
Furthermore, simulation of the control scheme in MATLAB, I/O interfacing between PLC and
hot and cold chamber, implementation of design adaptable PID for the control system and
finally the development of monitoring interface for the entire process.
16
3.1.1 Block Diagram of the Project:
The block diagram of the project is shown in fig. the temperature sensor gives the input to the
controller (PLC) according to that the controller gives output to heating and cooling source i.e.
heater and valve (as switching of valve gives the path to cooling source).
17
3.1.2 Process Flow Diagram:
18
3.2.1.1 Analogical-OR
In the analogical-OR gate, both inputs contribute to the output in relation to their magnitudes
and in the absence of one input; the output linearly tracks the other. the used formulation for
the analogical OR-gate is
𝒛 = 𝒙⨁𝒚 = 𝒙 ∗ 𝝃(𝒚, 𝒙) + 𝒚 ∗ 𝝃(𝒙, 𝒚) (𝟑. 𝟐)
𝑎𝑥 2 +𝑏𝑥𝑦
−( 2 2 )
𝑊ℎ𝑒𝑟𝑒 𝜉(𝑥, 𝑦) = 𝑒 𝑥 +𝑦 𝑎𝑛𝑑 𝑥, 𝑦 𝜖 𝑅
The parameter a and b are taken as a = 1.02889, b = 0.3574.
3.2.1.2 Analogical-Invoke
The invoke gate is characterized such that as the x-input grows, the share of the y-input to the
output increases. The absence of the x-input inhibits the output. In the absence of the y-input,
the x-input is linearly passed to the output. The used formulation or Invoke gate is
𝒛 = 𝒙 ∧ 𝒚 = 𝒙 ∗ 𝝃𝟏 (𝒚, 𝒙) + 𝒚 ∗ [𝟏 − 𝝃𝟐 (𝒙, 𝒚)] (𝟑. 𝟑)
Where
𝑎 𝑥 2 +𝑏 𝑥𝑦 𝑎 𝑥 2 +𝑏 𝑥𝑦
−( 1 2 12 ) −( 2 2 22 )
𝜉1 (𝑥, 𝑦) = 𝑒 𝑥 +𝑦 & 𝜉2 (𝑥, 𝑦) = 𝑒 𝑥 +𝑦 𝑎𝑛𝑑 𝑥, 𝑦 𝜖 𝑅
a1=1.4749267, b1=0.9280491, a2=2.6317713 and b2=-0.2287955.
The philosophy of adapted PID controller based on analogical gate does not depend on the
changing of PID controller parameters but it depends on changing the share of each controller
term on the total control action. As shown in Fig.4, output control command of adaptable PID,
"Upid", is given by analogical gates tuning proportional part "Up", integral part "Ui" and
derivative part "Ud" as in equations (3.4) and (3.5). [3] Two analogical gates will be used
sequentially. The first gate is selected to be asymmetric and the second gate is symmetric.
Analogical –INVK will be followed by analogical –OR as
𝑈𝑝 = 𝐾𝑝 𝑒(𝑡)
𝑡
𝑈𝑖 = 𝐾𝑖 ∫ 𝑒(𝜏) 𝑑𝜏
0
(3.4)
𝑑
𝑈𝑑 = 𝐾𝑑 𝑒 (𝑡) ]
𝑑𝑡
𝑈𝑝𝑖 = 𝑈𝑝 ∧ 𝑈𝑖
𝑈𝑝𝑑 = 𝑈𝑝 ∧ 𝑈𝑑 ] (3.5)
𝑈𝑝𝑖𝑑 = 𝑈𝑝𝑖 ⨁ 𝑈𝑝𝑑
19
These are:
Where, each half cycle is delayed by an angle 90, (shown in fig. 3.5).
20
Fig. 3.5: PWM output with AC wave.
𝑻
Fig. 3.6: PWM output of PLC
𝟏
𝑰𝒓𝒎𝒔 = √ ∫ 𝒊𝟐 (𝒕)𝒅𝒕
𝑻
𝟎
𝑴
𝑰𝒓𝒎𝒔 = 𝑰𝒐 √ 𝑻 (3.6)
Assuming the heating element has a pure resistance, R, the average power delivered to the
heater can be calculated as
𝑷𝑨𝑽 = 𝑹𝑰𝟐𝒓𝒎𝒔
𝑴
= 𝑹𝑰𝟐𝒐
𝑻
𝑰𝟐𝒐
∝=𝑹
𝑻
𝑷𝑨𝑽 = ∝ .𝑴 (3.7)
Assuming the heating element has a pure resistance, R, the average power delivered to the
heater can be calculated as.
In this project,
R = 40 Ω Io = 5.5 A T= 2s
Thus, the transfer function of the heater is, from equation 3.7
PAV = 600 M
𝑷𝑨𝑽
Or = 𝟔𝟎𝟎 (3.8)
𝑴
21
3.3 System Identification By MATLAB:
We use MATLAB for System modeling by its toolkit system identification. System
Identification Toolbox provides MATLAB functions, Simulink blocks, and an app for
constructing mathematical models of dynamic systems from measured input-output data. It
creates and use usesssels of dynamic systems not easily modeled from first principles or
specifications. In this, we can can usee-domain and frequency-domain input-output data to
identify continuous-time and discrete-time transfer functions, process models, and state-space
models. The toolbox also provides algorithms for embedded online parameter estimation.
The toolbox provides identification techniques such as maximum likelihood, prediction-error
minimization (PEM), and subspace system identification. To represent nonlinear system
dynamics, you can estimate Hammerstein-Weiner models and nonlinear ARX models with
wavelet network, tree-partition, and sigmoid network nonlinearities. The toolbox performs
grey-box system identification for estimating parameters of a user-defined model. You can use
the identified model for system response prediction and plant modeling in Simulink. The
toolbox also supports time-series data modeling and time-series forecasting. [12]
We modeled close loop control system when conventional PID is used as a controller. The
sensors and actuators transfer function are known which are just straight-line equations and by
using the general transfer function of closed-loop control for negative feedback.
22
𝐶(𝑠) 𝐺(𝑠)
= (3.9)
𝑅(𝑠) 1 + 𝐻(𝑠)𝐺(𝑠)
∴ 𝐺(𝑠) = 𝐺𝑐 (𝑠) 𝐺𝑃 (𝑠)
Where,
C(s) = Process Variable
R(s) = Reference Variable
H(s) = Loop Transmission
G(s) = Forward Path
Gc(s) = Controller
GP(s) = Plant
2.975 × 10−5
𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝐹𝑢𝑛𝑐𝑡𝑖𝑜𝑛 = 2
𝑠 + 0.0084𝑠 + 2.839 × 10−5
On substituting above transfer function, Gc(s) & H(s) in equation 3.9 and solving for
GP(s) we get
2.80 × 10−5 𝑠
𝐺𝑃 (𝑠) = 4
𝑠 + 100𝑠 3 + 23.84𝑠 2 + 0.19𝑠 + 6.53 × 10−4
For the calculation of GP (s) see Appendix I
23
Fig. 3.8: OPC Architecture
24
3.5.1 Hot and Cold Chamber:
In our industrial hot and cold chamber there is an inner main tank in which fluid (water) is to
be heat or cool. There are two coiling of copper pipes in it one coiling is in the inner tank for
cooling the fluid and another one is outside the main tank which provides a diverting path to
the cooling source. there is a glass wool and spray foam insulation in between the inner tank
and outer (diverting) coil. This chamber also contains RTD PT-100 of sensing the current
temperature and a heater as a heating source. These all setup is covered up with wooden box
insulated with aluminum foil. The stages of this chamber fabrication are shown in fig. 3.11
25
3.5.1.1 Methods to calculate the volume of the tank:
The volume of a cylindrical tank can be found by the following formula,
Vtank = 𝜋𝑟 2 ℎ (2.1)
Where ‘r’ is the radius of the bottom and ‘h’ is the height of the cylinder
as shown in fig.
26
3.5.4 Heating Source:
For heating the fluid in the system, we used a 3-phase electric heater with 2.5KWatt power.
3.7 Software:
Software implementation includes mainly the programming the PLC and communication setup
between PLC and PC and HMI software for monitoring and controlling the process.
3.7.1 WPL Soft:
WPL Soft is a program-editing software made for the Delta DVP-PLC series used under
WINDOWS. Except for general program planning and other general functions (e.g. cut, paste,
copy, multi-windows, etc.) of WINDOWS, WPL Soft, in addition, has provided various
Chinese/English commentary-editing and other special functions (e.g. survey and edit the listed
register, the setup, the data readout, the file saving, and monitor and set up diagrams of various
contacts, etc.). [11] What follows is the system requirement to comply with the operation
environment of WPL Soft:
27
Table 3.1: Specifications WPL Soft
Hard drive Capacity: at least 50MB or above CD-ROM (to install WPL Soft)
To program the controller, we used WPL soft. The complete program (Algorithm of Adaptable
PID) and logic are attached in Appendices II.
28
3.7.3 WinCC Flexible:
We developed HMI in WinCC Flexible. This HMI is used for process’s status indications,
communicating with PLC through OPC KEP Server, serve as an operating panel, monitor
process flow, data logging for the comparison of the responses of Conventional PID and
Adaptable PID and their individual trends. The snapshots of the HMI are in fig. 3.18 to 3.20.
29
Fig. 3.20 Process flow in HMI
3.7.4 MATLAB:
We used MATLAB for the obtaining comparison between the
response of the system through Adaptable PID and Conventional
PID. We were made two .csv files and make the comparative
response of both by MATLAB.
30
CHAPTER 4
RESULTS AND DISCUSSION
31
4.2 Practical Results:
The experimental result for both the controller Conventional and Adaptable PID is found by
Logging their data in .csv file in HMI software WinCC flexible. These files will access in
MATLAB and their comparative result shown in fig. 4.2
From the above simulation result the response parameters of both the controller is shown in
table 4.1
32
4.3 Comparison of Simulation and Practical Results:
Table 4.3: Comparative Results of Simulation and Experiment of PID & Adaptable PID
Rise
Transient % %
Parameters Time Ess (0C) % Ess
Time (s) Overshoot Undershoot
(s)
PID
Simulation 300 2200 1.63 3.44 0.60 0.99
Adaptable PID
The selected parameters in the process simulation are implemented through the programming
of PID controller in Delta PLC (DVP 20 SX2) with the following parameter Kp = 100, Ki= 23
and Kd= 1. The practical PID and Adaptable PID response of the process is shown in fig. 4.3
for a step temperature 60°C.
A comparison between the practical results of PID and adapted PID is summarized in Table
4.3 It is noted that adaptable PID controller has produce faster response by 1800s and reduce
the steady state error (ESS) by 88% than the PID controller these due to the online tuning of
control command of PID controller (Up,Ui and Ud) based on analogical gate technique that
explained previously.
However, both simulation and practical results are well correlated and insure the effectiveness
of the proposed adaptable PID algorithm.
33
CHAPTER 5
CONCLUSION AND RECOMMENDATIONS
5.1 Conclusion:
Industrial Hot and cold chamber have wide applications like food processing, metal
production and climate testing in quality control etc. but from high to low transition of heat
and vice versa using these can cause thermal shock and shocks intensity changes depending
on the range of heat transition widely PID is used for the hot and cold chamber control
systems others include Fuzzy, Model Predictive Control (MPC) etc., rare of these can be
implemented using PLC due to time, computation constraints and cost. In case of PID
obtaining mathematical model is so difficult in addition to parameter uncertainties and
disturbance and cannot compensate for the continued changes in both, due to inherent
characteristics of the chamber, so in order to solve the above-mentioned problems, PID
needs to be adaptable.
The approach we have adopted is both simple and novel. We employ Analogical gates on
a set whose elements are continuous in time. These gates can be regarded as a fuzzy
operation. Using analogical we construct behavior circuits that process individual behavior
to produce a desired “plausible” overall behavior. The philosophy of adapted PID controller
based on analogical gates. It does not depend on the changing of PID controller parameters
but it depends on changing the share of each controller term on the total control action.
Finally, although PLCs have built-in application for PID controller there is no option for it
to be adaptable, so we will provide an adaptable PID controller implemented in PLC by
using analogical gates for our hot and cold chamber.
34
REFERENCES
[1] http://ieeexplore.ieee.org/document/6871052/?reload=true
[2] http://ieeexplore.ieee.org/document/4788858/
[3] https://www.researchgate.net/publication/267039749_Realization_of_adaptable_
PID_controller_within_an_industrial_automated_system
[4] S. Aly,"Fuzzy Analogical gates foe separation sequence synthesis", Chemical Engineering
and processing, 1997, 36, PP.209-217
[5] E. Badreddin, "Fuzzy relations for behavior-fusion of mobile robots",Proc. IEEE Conf. on
Robotics and Automation, San Diego, California,1994, pp. 8-13
[7] Research paper “Analogical Gates for Dei-Iavior-Fusion of Autonomous Mobile Robots“
[9] https://www.kepware.com/en-us/
[10] https://www.amci.com/industrial-automation-resources/plc-automation.
[11] www.deltaww.com/.../DownloadCenter2.aspx?secID..
[12] https://www.mathworks.com/help/ident/
35