You are on page 1of 13

6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

Pages

Inst Tools Menu

PLC Temperature Control using Pulse Width


Modulation (PWM)
MQTT IoT Converters

Ad Gateways for IoT Integration


Ad
ADFweb.com

Open

Write the PLC program for temperature control with PWM output of PID.

Temperature control with PWM output of PID

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 1/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

Solution
Top 100 PLC Objective Questions and Answers
X
PLC Connection between Instrument, Junction
X

PLC TU TORIA LS
Box, Marshalling & System Cabin…
Here we use
Instrumentation ToolsRTD
assistssensor for temperature
you a complete guide measurementPLC
and a transmitter to convert
T U TOR I ALS

A PLC connection represents the signal flow starting


which mainly targets the aspirants of Electrical,
sensor and
Electronics output into standard
Instrumentation engineering 4-20mA
Strea… current output, which
from the is then
field connected
transmitters, to marshalling
junction box, PLC
cabinet, system cabinet and Human-Machine …
input.

RTD sensor will detect temperature and transmitter will generate signal according to
measured temperature.

Solid State Relay (SSR) drive is used to control the heater and SSR will be controlled by
PWM (pulse width modulation) output of PLC. Solid State Relay Drive will control the
heater power supply in-order to maintain the required temperature.

For example, if PLC output PWM varies from range 0 to 100% then accordingly SSR will
control the Heater power supply, so we can maintain the heater temperature.

PID controller will generate PWM as per temperature input signal feedback.

List of Inputs/Outputs
List of Inputs

Temperature Analog input :- IW64

List of Outputs

PWM output for heater (SSR) : Q1.1

M memory

PID enable :- M61.0


Manual enable :- M61.1
PID reset :- M61.2
$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 2/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

Set temperature :- MD500


Top 100 PLC Objective Questions and Answers
X
PLC Connection between Instrument, Junction
X

Box, Marshalling & System Cabin…


Actual temperature :- MD704
PLC TU TORIA LS
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
which mainlyPID output
targets (%) of
the aspirants :- Electrical,
MD758 A PLC connection represents the signal flow starting
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
PID state word :- MW770 cabinet, system cabinet and Human-Machine …

PID error word :- MD778


PID enable input :- M61.0
PID manual mode enable input :- M61.1
PID controller reset :- M61.2
PID high limit alarm :- M766.0
PID low limit alarm:-M766.1
PID input warning:-M766.2

Ladder diagram for Temperature control with PWM of PID

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 3/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction
PLC TU TORIA LS
Box, Marshalling & System Cabin…
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
A PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 4/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction
PLC TU TORIA LS
Box, Marshalling & System Cabin…
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
A PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …

Program Description
$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 5/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

For this application we used S7-1200X PLC and TIA portal


Top 100 PLC Objective Questions and Answers
software for programming.
PLC Connection between Instrument, Junction
X

PLC TU TORIA LS
Box, Marshalling & System Cabin…
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
Network 1 :
which mainly targets the aspirants of Electrical,
A PLC connection represents the signal flow starting
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …
In network we configured standard parameters for PID function.

“Drive PID”.sRet.r_Ctrl_Gain:- saved proportional gain or P gain for PID (1.0).

“Drive PID”.sRet.r_Ctrl_Ti:-Saved integral time or I gain for PID (20s).

Network 2 :

“Drive PID”.sRet.r_Ctrl_Td:-Saved derivative time or D gain for PID (0s).

Network 3 :

Here we have taken temperature PID max output limit and minimum output limit. We
have considered here max limit for PID output 100 and minimum limit is 0.

Network 4 :

Sampling time of the PID_Compact instruction r_Cycle is determined automatically and


usually equivalent to the cycle time of the calling OB.

Consider 0.1s for this application.

Network 5 :

Here we used PID controller which will control the SSR by providing PWM output.

Network 6 :

PID run mode control enabled.

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 6/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

Network
Top 7 : Questions and Answers
100 PLC Objective
X
PLC Connection between Instrument, Junction
X

Box, Marshalling & System Cabin…


PLC TU TORIA LS
PLC T U TOR I ALS
Here we converted
Instrumentation current
Tools assists you (4-20mA)
a complete guide input signal intoAdigital (0- 27648) signal.
PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …
Note :- Above application may be different from actual application. This example is only
for explanation purpose only. We can implement this logic in other PLC also. This is the
concept of temperature control with PWM of PID, we can use this concept in other
examples also.

All parameters and graphical representations considered in this example are for
explanation purpose only, parameters or representation may be different in actual
applications. Also all interlocks are not considered in the application.

Author : Bhavesh

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA
video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

Top 100 PLC Objective Questions

PID tuning procedures

Instrumentation Functional diagrams

PLC Analog Input Card Resolution

Programmable Logic Controller Quiz

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 7/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction
Share With Your Friends
Box, Marshalling & System Cabin…
PLC TU TORIA LS
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
a
which mainly targetsFacebook d
the aspirants of Electrical,
Twitter
Electronics and Instrumentation engineering Strea…
k LinkedIn h Pinterest v Email J
A PLC connection represents the signal flow starting
WhatsApp
from the field transmitters, junction box, marshalling
cabinet, system cabinet and Human-Machine …

JT Valve Working Principle


PLC Connection between Instrument, Junction Box, Marshalling & System Cabinet

Recommended Articles

1. Surface Grinding Process using PLC Program

2. Basics of PLC Programming


$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 8/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

3. PLC Ladder Logic for Sensor Scaling


X
Top 100 PLC Objective Questions and Answers
with Offset PLC Connection between Instrument, Junction
X

PLC TU TORIA LS
Box, Marshalling & System Cabin…
4. Basics of Industrial Communication Networks
Instrumentation Tools assists you a complete guide
PLC T U TOR I ALS

A PLC connection represents the signal flow starting


which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
5. PLC based Drink Dispenser System cabinet, system cabinet and Human-Machine …

6. Alarm Acknowledge using PLC

7. Create Logic with InTouch Scada using Scripting

8. Motor Control Circuits

9. Top 100 PLC Projects List

10. Introduction to PLC Ladder Diagrams

1 thought on “PLC Temperature Control using Pulse Width


Modulation (PWM)”

KK
March 6, 2019 at 7:33 am

Give some example of Split range control with PWM output of PID

Reply

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 9/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction

Leave a Comment
PLC TU TORIA LS
Box, Marshalling & System Cabin…
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
A PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …

Name *

Email *

Website

Post Comment

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 10/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction
Box, Marshalling & System Cabin…
PLC TU TORIA LS
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
A PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …

Categories

Select Category

Recent Comments

mohit on Free Control Valves Course

Aladdin Muaña on PLC Program for Latching and unlatching Circuit

Eva B on PLC Program for Blinking Lamp on 5 Seconds Interval

Prem on Industrial Automation Protocols

Mohammed on Industrial Automation Protocols

Mostafa on Sensors and Transducers Classification

Tushar on Magnetic Flow Meter Animation

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 11/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction
Box, Marshalling & System Cabin…
PLC TU TORIA LS
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
A PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …

The All-New City Great Deal

Honda Cars Philippines Learn More

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 12/13
6/13/2021 PLC Temperature Control PWM (Pulse Width Modulation)

X X
Top 100 PLC Objective Questions and Answers PLC Connection between Instrument, Junction
Box, Marshalling & System Cabin…
PLC TU TORIA LS
PLC T U TOR I ALS
Instrumentation Tools assists you a complete guide
A PLC connection represents the signal flow starting
which mainly targets the aspirants of Electrical,
from the field transmitters, junction box, marshalling
Electronics and Instrumentation engineering Strea…
cabinet, system cabinet and Human-Machine …

2021 © Reproduction without explicit permission is prohibited.

$ a d k h J %
https://instrumentationtools.com/plc-temperature-control-pwm/ 13/13

You might also like