SlideShare uma empresa Scribd logo
1 de 3
Baixar para ler offline
1
PLC BASED CONTROL OF HEAT EXCHANGER
Abinash Kumar Panda1, Fijo M. Francis2, Sudha R3
1School of Electrical Engineering Vellore Institute of Technology
2School of Electrical Engineering Vellore Institute of Technology
3Professor, School of Electrical Engineering Vellore Institute of Technology
In this paper transfer function of a heat exchanger is implemented in MATLAB and is controlled by a PID controller.The
controller is implemented in PLC(S7-1200) . They both are interfaced using Arduino. The advantage of this method is that without
having the actual plant, its response can be studied if the transfer function of a system is available. We have used Arduino Uno
for interfacing PLC with MATLAB.The response of the system for three set points were noted.This project also shows that even
though Arduino can be used for interfacing it has certain limitations.
Index Terms—heat exchanger, Programmable Logic Controller (PLC), Proportional-integral-derivative (PID) Controller, Arduino
Atmega 2560
I. INTRODUCTION
Usually we do different type of response analysis in MAT-
LAB using Simulink and command window but real time
control is not possible in these type of implementation. We
just get a glimpse of what the system is like whether the
system or plant is stable or unstable but the real response of
the system cannot be known. We can change the set point and
see what happens in real time which is not usually possible in
Matlab and Simulink packages. That will only be known when
the system is actually being controlled by a PID controller.
Here the MATLAB will behave like an actual plant and the
controller will control the developed plant in MATLAB in
real time so that we will be able to analyze what actually is
happening in between the plant and the controller. In this way
we are developing a new method to check the response of a
real time plant control without having the actual plant with
us. To make the plant to interact with the controller we have
to take an interfacing device which will create the behavior
of the plant inside it. The interfacing device can be controlled
with PLC.
Arduino Uno is a microcontroller which is based on AT-
mega328P. It has 6 analog input pins, 14 digital input and
output pins. Out of these 14 pins 6 pins can be used as PWM
(pulse width modulated) output pins. It Uno uses 16 MHz
quartz crystal. It also has an ICSP header and a button for
reset.
PLC contains three important parts, they are Power supply,
CPU, input output modules. The input output modules can be
divided into analog and digital. Here in this paper we have
used both analog as well as digital. We have taken our set
point as a digital signal. And we have also used pulse width
modulation for giving the output signal. The range of input
signal is usually 0 to 24 volts and the range of output signal
is in between 0 to 12 volts. Which is also the range of arduino
input voltage range so this is the reason why we are able to
interface both device.
The selected heat exchanger is used in the recovery of soda in
.
a paper pulp industry. In paper industry chemicals are used to
separate cellulose from wood and other substances used for the
production of paper. After doing this we need to recover these
chemicals for the economical operation of the plant. So the
resultant product is burned to produce heat, which is used to
produce steam and and run the turbine to produce electricity.
We in this paper has taken the heat exchanger used in this
process for doing our real time control using S7-1200 PLC.
II. METHODOLOGY
Heat Exchanger model is taken from our reference paper
[4]. This plant model we have implemented in MATLAB.
The transfer function of heat exchanger gives the relationship
between fluid entering into the heat exchanger and the tem-
perature of the fluid coming out of the heat exchanger of the
other side. This process of fluid inflow into the heat exchanger
is usually controlled by the valves ,what PLC will do is that
,it will control that valve by giving the required amount of
voltage which is usually a control signal output from PLC.
Transfer function of heat exchanger is given below :
Gp(S) = 34/(30s + 1) (1)
Transfer function of the control valve
Gt(S) = 1.25/(3s + 1) (2)
Transfer function of the temperature sensor is
Gt(S) = 0.08/(2s + 1) (3)
Hardwares required for this research project are:
1) PC
2) Arduino Uno
3) PLC S7-1200.
softwares used are:
2
1) MATLAB 2015b
2) Arduino Software
3) TIA V13. [5][6]
The whole process is described in steps given below
Step-1:The plant, feedback sensor and actuator transfer
function is made available in simulink through the transfer
function block.Arduino and Matlab arre connected through
the Arduino Simulink support package.[7]
Step-2:The PLC is programmed by using Total Integrated
Automation (TIA V13) software.It is this program which
drives the PLC S7-1200.
Step-3:The PID controller is designed in the PLC cyclic
block.
Step-4: All the input output ports which are needed for the
PLC to communicate with Arduino are defined.
Step-5: Finally both Matlab and Arduino are interfaced
through the ports defined for this purpose.
Fig. 1. Block diagram for control operation
The output signal is pulse width modulated(PWM) and it is
given to the Ardunio via its analog input port.
III. DESIGN
The transfer function of the plant is implemented in
Simulink.The input to the plant is given by analog input
block of Simulink and the output of this plant is given
to Arduino by the analog out block of Simulink. The PID
controller is designed in PLC software as given Figure (4). The
PID controller can only be implemented in the cyclic block
present in PLC. As this is a real time implementation the time
constraints here are very important. The controller should react
to the process within a specified amount of time otherwise the
process cannot be controlled in the desired manner. In this way
our method is different from other models. The tunning system
given inside the PLC was used for tunning the PID. There
are two types of tuning system inside PLC out of which fine
tuning mode was implemented. The sampling time was taken
to be 0.001 seconds.By implementing the above mentioned
methods the PID control was implemented.Different types of
control outputs were got which are shown in the figures. Three
different set points were taken and the graghs were noted
down.
Fig. 2. Plant model implemented in Matlab
Fig. 3. PID parameters got after fine tuning the PID.
Fig. 4. PID Controller model implemented in PLC
Fig. 5. Plot of control output of plc,set point and process variable for a set
point of 45 degree for time in between 0-460sec.( blue line- set point,green
line heat exchanger temp.,red line is the controller output.)
Fig. 6. Plot of control output of plc,set point and process variable for a set
point of 40 degree.
3
Fig. 7. Block diagram for control operation
Fig. 8. Block diagram for control operation
IV. RESULT AND CONCLUSION
1) It is observed that as input increases from the set point,
the controller output decreases proportionally and vice-
versa.
2) It takes some time for the system to auto tune itself.
3) Arduino maximum possible output voltage is 5v.This
limits the temperature range over which we can do the
analysis.
REFERENCES
[1] [1] PID implementation of heating tank in mini automation plant using
Programmable Logic Controller (PLC)-Reza Ezuan Samin -June 2011 In-
ternational Conference on Electrical, Control and Computer Engineering
(INECCE), 2011
[2] PLC Based PID Speed Control System-Avinash P. Kaldate 1, Sachin
A. Kulkarni -IOSR Journal of Engineering (IOSRJEN) ,March 2014.
[3] Design and Implementation of PID Controller in Programmable Logic
Controller for DC Motor Position Control of the Conveyor System-
Muhammad Sharfi Najib, Mohd Shawal Jadin, Raja M. Taufika Raja
Ismail, Mohd Rusllim Mohamed- 3rd WSEAS/IASME International Con-
ference on Dynamical Systems and Control, Arcachon, France, October
13-15, 2007
[4]Modeling and Simulation of Heat Exchanger Used in Soda Recovery-
Chhaya Sharma, Sanjeev Gupta, Vipin Kumar - WCE 2011, July 6 - 8,
2011, London, U.K.
[5]https://www.arduino.cc/en/Guide/HomePage
[6]http://w3.siemens.com/mcms/programmable-logic-
controller/en/basic-controller/s7-1200/Pages/Default.aspx
[7]http://in.mathworks.com/hardware-support/arduino-matlab.html

Mais conteúdo relacionado

Mais procurados

Temperature Controlled Fan
Temperature Controlled FanTemperature Controlled Fan
Temperature Controlled FanPeeyush Pashine
 
Temperature Based Fan Controller
Temperature Based Fan Controller Temperature Based Fan Controller
Temperature Based Fan Controller richa1910n
 
Automatic Temperature Controlled Switch
Automatic Temperature Controlled SwitchAutomatic Temperature Controlled Switch
Automatic Temperature Controlled SwitchCOMSATS Abbottabad
 
Automatic fan speed controller withour Microcontroller OR An intelligent Spee...
Automatic fan speed controller withour Microcontroller OR An intelligent Spee...Automatic fan speed controller withour Microcontroller OR An intelligent Spee...
Automatic fan speed controller withour Microcontroller OR An intelligent Spee...Shahid Shihabudeen
 
Arduino HVAC Temperature Controller
Arduino HVAC Temperature ControllerArduino HVAC Temperature Controller
Arduino HVAC Temperature ControllerMichael Clarke
 
Plc analog Tutorial
Plc analog TutorialPlc analog Tutorial
Plc analog TutorialElectro 8
 
temperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontrollertemperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontrollerDeepak Yadav
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices Ameen San
 
AUTOMATIC FAN CONTROLLER USING THERMISTOR
AUTOMATIC FAN CONTROLLER USING THERMISTORAUTOMATIC FAN CONTROLLER USING THERMISTOR
AUTOMATIC FAN CONTROLLER USING THERMISTORPankaj Jagadale
 
basics of temperature data logger (with energia and stellaris)
basics of  temperature data logger (with energia and stellaris)basics of  temperature data logger (with energia and stellaris)
basics of temperature data logger (with energia and stellaris)Zafer Genc
 
Temperature based-fan-controller
Temperature based-fan-controllerTemperature based-fan-controller
Temperature based-fan-controllerWaqar Shehbaz
 
Microprocessor project
Microprocessor projectMicroprocessor project
Microprocessor projectprapyapokharel
 
Temperature monitoring and controling using arduino
Temperature monitoring and controling using arduinoTemperature monitoring and controling using arduino
Temperature monitoring and controling using arduinoBablu Singh
 
Plc analog input output programming
Plc analog input output programmingPlc analog input output programming
Plc analog input output programmingEngr Alam
 
Automatic DC Fan using LM35 (English version)
Automatic DC Fan using LM35 (English version)Automatic DC Fan using LM35 (English version)
Automatic DC Fan using LM35 (English version)Nurlatifa Haulaini
 

Mais procurados (20)

Temperature Controlled Fan
Temperature Controlled FanTemperature Controlled Fan
Temperature Controlled Fan
 
Design an Automatic Temperature Control System for Smart Electric Fan Using PIC
Design an Automatic Temperature Control System for Smart Electric Fan Using PICDesign an Automatic Temperature Control System for Smart Electric Fan Using PIC
Design an Automatic Temperature Control System for Smart Electric Fan Using PIC
 
Temperature Based Fan Controller
Temperature Based Fan Controller Temperature Based Fan Controller
Temperature Based Fan Controller
 
Automatic Temperature Controlled Switch
Automatic Temperature Controlled SwitchAutomatic Temperature Controlled Switch
Automatic Temperature Controlled Switch
 
Automatic fan speed controller withour Microcontroller OR An intelligent Spee...
Automatic fan speed controller withour Microcontroller OR An intelligent Spee...Automatic fan speed controller withour Microcontroller OR An intelligent Spee...
Automatic fan speed controller withour Microcontroller OR An intelligent Spee...
 
Arduino HVAC Temperature Controller
Arduino HVAC Temperature ControllerArduino HVAC Temperature Controller
Arduino HVAC Temperature Controller
 
Plc analog Tutorial
Plc analog TutorialPlc analog Tutorial
Plc analog Tutorial
 
temperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontrollertemperature dependent dc fan speed controller withou using micrcontroller
temperature dependent dc fan speed controller withou using micrcontroller
 
PLC input and output devices
PLC input and output devices PLC input and output devices
PLC input and output devices
 
Fan automation
Fan automationFan automation
Fan automation
 
AUTOMATIC FAN CONTROLLER USING THERMISTOR
AUTOMATIC FAN CONTROLLER USING THERMISTORAUTOMATIC FAN CONTROLLER USING THERMISTOR
AUTOMATIC FAN CONTROLLER USING THERMISTOR
 
basics of temperature data logger (with energia and stellaris)
basics of  temperature data logger (with energia and stellaris)basics of  temperature data logger (with energia and stellaris)
basics of temperature data logger (with energia and stellaris)
 
Temperature based-fan-controller
Temperature based-fan-controllerTemperature based-fan-controller
Temperature based-fan-controller
 
Lm35
Lm35Lm35
Lm35
 
Microprocessor project
Microprocessor projectMicroprocessor project
Microprocessor project
 
Lec 12 (cont plc)
Lec 12 (cont plc)Lec 12 (cont plc)
Lec 12 (cont plc)
 
Vt plc
Vt plcVt plc
Vt plc
 
Temperature monitoring and controling using arduino
Temperature monitoring and controling using arduinoTemperature monitoring and controling using arduino
Temperature monitoring and controling using arduino
 
Plc analog input output programming
Plc analog input output programmingPlc analog input output programming
Plc analog input output programming
 
Automatic DC Fan using LM35 (English version)
Automatic DC Fan using LM35 (English version)Automatic DC Fan using LM35 (English version)
Automatic DC Fan using LM35 (English version)
 

Semelhante a L(1)

Temperature Control System Using Pid Controller
Temperature Control System Using Pid ControllerTemperature Control System Using Pid Controller
Temperature Control System Using Pid ControllerMasum Parvej
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital ControlIOSR Journals
 
Parameter controlling of boiler in power plants using fuzzy logic controller
Parameter controlling of boiler in power plants using fuzzy logic controllerParameter controlling of boiler in power plants using fuzzy logic controller
Parameter controlling of boiler in power plants using fuzzy logic controllereSAT Journals
 
Shah2019 chapter an_arduinomicro-controlleropera
Shah2019 chapter an_arduinomicro-controlleroperaShah2019 chapter an_arduinomicro-controlleropera
Shah2019 chapter an_arduinomicro-controlleroperaGodwinraj D
 
PLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVEL
PLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVELPLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVEL
PLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVELIAEME Publication
 
Plc based pid implementation in process control of temperature flow and level
Plc based pid implementation in process control of temperature flow and levelPlc based pid implementation in process control of temperature flow and level
Plc based pid implementation in process control of temperature flow and levelIAEME Publication
 
IRJET - PLC based Temperature Controlling using Peltier Element for Industria...
IRJET - PLC based Temperature Controlling using Peltier Element for Industria...IRJET - PLC based Temperature Controlling using Peltier Element for Industria...
IRJET - PLC based Temperature Controlling using Peltier Element for Industria...IRJET Journal
 
Industrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEWIndustrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEWIOSR Journals
 
Industrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEWIndustrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEWIOSR Journals
 
IRJET - An IoT based Smart Fan Module
IRJET - An IoT based Smart Fan ModuleIRJET - An IoT based Smart Fan Module
IRJET - An IoT based Smart Fan ModuleIRJET Journal
 
R22EM807_PAVAN.D_PLC.pptx
R22EM807_PAVAN.D_PLC.pptxR22EM807_PAVAN.D_PLC.pptx
R22EM807_PAVAN.D_PLC.pptxBCGowtham1
 
Low Cost PLC Alternative Solution with SCADA Interface Using Microcontroller
Low Cost PLC Alternative Solution with SCADA Interface Using MicrocontrollerLow Cost PLC Alternative Solution with SCADA Interface Using Microcontroller
Low Cost PLC Alternative Solution with SCADA Interface Using MicrocontrollerIRJET Journal
 
IRJET - Transformers Monitoring using Arduino
IRJET -  	  Transformers Monitoring using ArduinoIRJET -  	  Transformers Monitoring using Arduino
IRJET - Transformers Monitoring using ArduinoIRJET Journal
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Scienceresearchinventy
 

Semelhante a L(1) (20)

Temperature Control System Using Pid Controller
Temperature Control System Using Pid ControllerTemperature Control System Using Pid Controller
Temperature Control System Using Pid Controller
 
Di34672675
Di34672675Di34672675
Di34672675
 
I012455457
I012455457I012455457
I012455457
 
PLC.pdf
PLC.pdfPLC.pdf
PLC.pdf
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital Control
 
Parameter controlling of boiler in power plants using fuzzy logic controller
Parameter controlling of boiler in power plants using fuzzy logic controllerParameter controlling of boiler in power plants using fuzzy logic controller
Parameter controlling of boiler in power plants using fuzzy logic controller
 
Shah2019 chapter an_arduinomicro-controlleropera
Shah2019 chapter an_arduinomicro-controlleroperaShah2019 chapter an_arduinomicro-controlleropera
Shah2019 chapter an_arduinomicro-controlleropera
 
PLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVEL
PLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVELPLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVEL
PLC BASED PID IMPLEMENTATION IN PROCESS CONTROL OF TEMPERATURE FLOW AND LEVEL
 
Plc based pid implementation in process control of temperature flow and level
Plc based pid implementation in process control of temperature flow and levelPlc based pid implementation in process control of temperature flow and level
Plc based pid implementation in process control of temperature flow and level
 
IRJET - PLC based Temperature Controlling using Peltier Element for Industria...
IRJET - PLC based Temperature Controlling using Peltier Element for Industria...IRJET - PLC based Temperature Controlling using Peltier Element for Industria...
IRJET - PLC based Temperature Controlling using Peltier Element for Industria...
 
Industrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEWIndustrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEW
 
Industrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEWIndustrial Process Management Using LabVIEW
Industrial Process Management Using LabVIEW
 
Handbook Of PLC EMERSON EDUARDO RODRIGUES
Handbook Of PLC EMERSON EDUARDO RODRIGUESHandbook Of PLC EMERSON EDUARDO RODRIGUES
Handbook Of PLC EMERSON EDUARDO RODRIGUES
 
IRJET - An IoT based Smart Fan Module
IRJET - An IoT based Smart Fan ModuleIRJET - An IoT based Smart Fan Module
IRJET - An IoT based Smart Fan Module
 
final project
final projectfinal project
final project
 
R22EM807_PAVAN.D_PLC.pptx
R22EM807_PAVAN.D_PLC.pptxR22EM807_PAVAN.D_PLC.pptx
R22EM807_PAVAN.D_PLC.pptx
 
Low Cost PLC Alternative Solution with SCADA Interface Using Microcontroller
Low Cost PLC Alternative Solution with SCADA Interface Using MicrocontrollerLow Cost PLC Alternative Solution with SCADA Interface Using Microcontroller
Low Cost PLC Alternative Solution with SCADA Interface Using Microcontroller
 
IRJET - Transformers Monitoring using Arduino
IRJET -  	  Transformers Monitoring using ArduinoIRJET -  	  Transformers Monitoring using Arduino
IRJET - Transformers Monitoring using Arduino
 
final report
final reportfinal report
final report
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
 

L(1)

  • 1. 1 PLC BASED CONTROL OF HEAT EXCHANGER Abinash Kumar Panda1, Fijo M. Francis2, Sudha R3 1School of Electrical Engineering Vellore Institute of Technology 2School of Electrical Engineering Vellore Institute of Technology 3Professor, School of Electrical Engineering Vellore Institute of Technology In this paper transfer function of a heat exchanger is implemented in MATLAB and is controlled by a PID controller.The controller is implemented in PLC(S7-1200) . They both are interfaced using Arduino. The advantage of this method is that without having the actual plant, its response can be studied if the transfer function of a system is available. We have used Arduino Uno for interfacing PLC with MATLAB.The response of the system for three set points were noted.This project also shows that even though Arduino can be used for interfacing it has certain limitations. Index Terms—heat exchanger, Programmable Logic Controller (PLC), Proportional-integral-derivative (PID) Controller, Arduino Atmega 2560 I. INTRODUCTION Usually we do different type of response analysis in MAT- LAB using Simulink and command window but real time control is not possible in these type of implementation. We just get a glimpse of what the system is like whether the system or plant is stable or unstable but the real response of the system cannot be known. We can change the set point and see what happens in real time which is not usually possible in Matlab and Simulink packages. That will only be known when the system is actually being controlled by a PID controller. Here the MATLAB will behave like an actual plant and the controller will control the developed plant in MATLAB in real time so that we will be able to analyze what actually is happening in between the plant and the controller. In this way we are developing a new method to check the response of a real time plant control without having the actual plant with us. To make the plant to interact with the controller we have to take an interfacing device which will create the behavior of the plant inside it. The interfacing device can be controlled with PLC. Arduino Uno is a microcontroller which is based on AT- mega328P. It has 6 analog input pins, 14 digital input and output pins. Out of these 14 pins 6 pins can be used as PWM (pulse width modulated) output pins. It Uno uses 16 MHz quartz crystal. It also has an ICSP header and a button for reset. PLC contains three important parts, they are Power supply, CPU, input output modules. The input output modules can be divided into analog and digital. Here in this paper we have used both analog as well as digital. We have taken our set point as a digital signal. And we have also used pulse width modulation for giving the output signal. The range of input signal is usually 0 to 24 volts and the range of output signal is in between 0 to 12 volts. Which is also the range of arduino input voltage range so this is the reason why we are able to interface both device. The selected heat exchanger is used in the recovery of soda in . a paper pulp industry. In paper industry chemicals are used to separate cellulose from wood and other substances used for the production of paper. After doing this we need to recover these chemicals for the economical operation of the plant. So the resultant product is burned to produce heat, which is used to produce steam and and run the turbine to produce electricity. We in this paper has taken the heat exchanger used in this process for doing our real time control using S7-1200 PLC. II. METHODOLOGY Heat Exchanger model is taken from our reference paper [4]. This plant model we have implemented in MATLAB. The transfer function of heat exchanger gives the relationship between fluid entering into the heat exchanger and the tem- perature of the fluid coming out of the heat exchanger of the other side. This process of fluid inflow into the heat exchanger is usually controlled by the valves ,what PLC will do is that ,it will control that valve by giving the required amount of voltage which is usually a control signal output from PLC. Transfer function of heat exchanger is given below : Gp(S) = 34/(30s + 1) (1) Transfer function of the control valve Gt(S) = 1.25/(3s + 1) (2) Transfer function of the temperature sensor is Gt(S) = 0.08/(2s + 1) (3) Hardwares required for this research project are: 1) PC 2) Arduino Uno 3) PLC S7-1200. softwares used are:
  • 2. 2 1) MATLAB 2015b 2) Arduino Software 3) TIA V13. [5][6] The whole process is described in steps given below Step-1:The plant, feedback sensor and actuator transfer function is made available in simulink through the transfer function block.Arduino and Matlab arre connected through the Arduino Simulink support package.[7] Step-2:The PLC is programmed by using Total Integrated Automation (TIA V13) software.It is this program which drives the PLC S7-1200. Step-3:The PID controller is designed in the PLC cyclic block. Step-4: All the input output ports which are needed for the PLC to communicate with Arduino are defined. Step-5: Finally both Matlab and Arduino are interfaced through the ports defined for this purpose. Fig. 1. Block diagram for control operation The output signal is pulse width modulated(PWM) and it is given to the Ardunio via its analog input port. III. DESIGN The transfer function of the plant is implemented in Simulink.The input to the plant is given by analog input block of Simulink and the output of this plant is given to Arduino by the analog out block of Simulink. The PID controller is designed in PLC software as given Figure (4). The PID controller can only be implemented in the cyclic block present in PLC. As this is a real time implementation the time constraints here are very important. The controller should react to the process within a specified amount of time otherwise the process cannot be controlled in the desired manner. In this way our method is different from other models. The tunning system given inside the PLC was used for tunning the PID. There are two types of tuning system inside PLC out of which fine tuning mode was implemented. The sampling time was taken to be 0.001 seconds.By implementing the above mentioned methods the PID control was implemented.Different types of control outputs were got which are shown in the figures. Three different set points were taken and the graghs were noted down. Fig. 2. Plant model implemented in Matlab Fig. 3. PID parameters got after fine tuning the PID. Fig. 4. PID Controller model implemented in PLC Fig. 5. Plot of control output of plc,set point and process variable for a set point of 45 degree for time in between 0-460sec.( blue line- set point,green line heat exchanger temp.,red line is the controller output.) Fig. 6. Plot of control output of plc,set point and process variable for a set point of 40 degree.
  • 3. 3 Fig. 7. Block diagram for control operation Fig. 8. Block diagram for control operation IV. RESULT AND CONCLUSION 1) It is observed that as input increases from the set point, the controller output decreases proportionally and vice- versa. 2) It takes some time for the system to auto tune itself. 3) Arduino maximum possible output voltage is 5v.This limits the temperature range over which we can do the analysis. REFERENCES [1] [1] PID implementation of heating tank in mini automation plant using Programmable Logic Controller (PLC)-Reza Ezuan Samin -June 2011 In- ternational Conference on Electrical, Control and Computer Engineering (INECCE), 2011 [2] PLC Based PID Speed Control System-Avinash P. Kaldate 1, Sachin A. Kulkarni -IOSR Journal of Engineering (IOSRJEN) ,March 2014. [3] Design and Implementation of PID Controller in Programmable Logic Controller for DC Motor Position Control of the Conveyor System- Muhammad Sharfi Najib, Mohd Shawal Jadin, Raja M. Taufika Raja Ismail, Mohd Rusllim Mohamed- 3rd WSEAS/IASME International Con- ference on Dynamical Systems and Control, Arcachon, France, October 13-15, 2007 [4]Modeling and Simulation of Heat Exchanger Used in Soda Recovery- Chhaya Sharma, Sanjeev Gupta, Vipin Kumar - WCE 2011, July 6 - 8, 2011, London, U.K. [5]https://www.arduino.cc/en/Guide/HomePage [6]http://w3.siemens.com/mcms/programmable-logic- controller/en/basic-controller/s7-1200/Pages/Default.aspx [7]http://in.mathworks.com/hardware-support/arduino-matlab.html