Home » PLC Program to Read Temperature in PLC
PLC Tutorials

PLC Program to Read Temperature in PLC

Read Temperature in PLC

This is PLC Program to read temperature in PLC.

Problem Description

  • Write PLC program in which we can monitor actual temperature.
  • Here we are using a external temperature controller and its output is also connected to PLC for monitoring the temperature of material in the tank.

Problem Diagram

Read Temperature in PLC

Problem Solution

  • RTDs devices with resistance that changes with temperature changes in a linear way.
  • This resistance value will change as temperature changes and by supplying a constant current, the measured voltage drop across the resistor can be used to determine the new resistance, and thus the temperature.
  • RTDs come in a variety of types, with the most common type is a PT100. It’s made from platinum that has been calibrated to be 100 ohms at 0 degrees C.
  • In above application, we want to measure material temperature of the tank, for that we use RTD sensor which will measure temperature of the tank and give signal to the temperature controller.
  • Temperature controller will send signal in the form of voltage (0-10V DC).If RTD detect 0degree temperature, it will send 0V DC and if maximum temperature detected, it will send 10V DC to PLC.
  • Temperature controller is directly connected to the PLC so PLC will read voltage.
  • Note: – Here we consider simple application for explanation. We need to measure material temperature of the tank by using RTD sensor. And also consider other components for control purpose.
  • Assume Scaling range of temperature controller is 0-100°C=0 to 10V DC and according to this signal PLC consider 0 to 27648.

List of inputs/outputs

M memory

  • Analog value from the temp controller :- MW100
  • Actual value from the temp controller :- MD104
  • Multiplication :- MD108
  • Actual temperature in °C :- MD112

PLC Ladder diagram to read temperature

PLC INT Value Conversion PLC Temperature Controller PLC Temperature Monitoring

Program Description

For this application, we used S7-300 PLC and TIA portal software for programming. We can implement this logic by using other PLC’s also.

Network 1 :-

In this network, we implement logic for value conversion. It is necessary to convert value from INT to DINT for multiplication purpose or for calculation. So by using conversion instruction analog value from the RTD (MW100) is converted into actual analog value (MD104).

Note:- Temperature controller provides 0-10V DC signal to PLC. ADC converter or analog input module will convert this analog signal into digital form, and the range of this digital signal is 0 to 27648. This digital range may change from one PLC to another.

Network 2 :-

we have the RTD temperature range which is 0 to 100 degc and the output voltage range is 0 to 10V DC. So we need to scale this voltage output in terms of temperature reading. Here multiply the value as per equation and final value will be stored in MD108.

Note:-Here temperature controller and temperature measurement range is 0-100°C.

Network 3 :-

Now for final result multiplied value is divided by 27648, result will be stored in MD112 (Actual temperature in °C).

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 simple concept of temperature reading in S7-300 PLC, we can use this concept in other examples also.

All parameters considered in example are for explanation purpose only, parameters may be different in actual applications.

Author : Bhavesh

Articles You May Like :

Failsafe Wiring Practices

Basics of Switch NC NO Contact

Sinking vs Sourcing

PLC Equivalent Logic Gates

PLC Logic Functions

Related Articles

PLC Automatic Control of Two Outputs with one Input

S Bharadwaj Reddy

PLC Motor Logic with START, STOP, TEST Push buttons

S Bharadwaj Reddy

PLC Raw Count Calculation for Pressure Transmitter

S Bharadwaj Reddy

Electrical Switches Principle & Types

S Bharadwaj Reddy

Example of Automated Guided Vehicle with PLC

S Bharadwaj Reddy

PLC Program for Entry and Exit Control of Car Parking

S Bharadwaj Reddy


Indra Mohan Prasad Singh November 21, 2018 at 7:55 am


Rahul September 24, 2019 at 11:22 am

When RTD sense 50 Celsius one out put is on writ program in RS logix 500


Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

PLC Program to Read Temperature in PLC

Send this to a friend