Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Difference Between Static and Temp Memory in Siemens PLC TIA Portal
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Difference Between Static and Temp Memory in Siemens PLC TIA Portal

Difference Between Static and Temp Memory in Siemens PLC TIA Portal

Temp memory minimizes PLC program size and static memory maintains data over several scan cycles in the Siemens TIA portal.

Last updated: October 17, 2023 3:18 pm
Hussien Ghareb
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

Totally Integrated Automation (TIA) software from Siemens is one of the best PLC Automation software platform in the world, it offers a lot of great features.

Contents
What is Static Memory?What is Temp Memory?Usage of Static and Temp Memory in PLCMonitoring Level of TanksDownload Siemens TIA Example LogicSummary

one of these features is the ability to size and configure your memory using Static or Temp locations, as a professional PLC programmer you have to organize your code and also your DataBase as that would really accelerate your scan cycle managing your PLC to perform faster.

So here we are to talk about those two types of memory (Static & Temp) and also we will see what is the difference between them.

What is Static Memory?

Static memory is a type of memory which is non-volatile, it stores data permanently with fixed addresses.

The stored data would be changed in case of overwriting so it could remain for several scan cycles without changing, this kind of memory only allocated at Function Blocks (FB).

What is Temp Memory?

For Temp memory We can say that it is a Volatile one as the data can not remain for just one cycle.

It stores data for a single scan cycle and after that, the data will be lost, this kind of memory is allocated in the organizational Blocks (OB), Functions (FC), or Function Blocks (FB).

We can summarize that “Static memory has a reserved place for storing data but Temp memory does not have”

Usage of Static and Temp Memory in PLC

Now, we already know what is the difference between both and what is really a static and temp memories are but the big deal is to know how and when you should use these memories.

As a PLC programmer, all of us know very well about Static memory, it is the place where our data is stored such as temperature reading, power consumption for the plant, or the status of your digital sensors in the plant.

All of this data should be stored in a static memory to ensure that the data will not be lost as we want to reuse it again in other places of your code.

Unlike the Temp memory, you can use it when the stored data is needed for just one scan cycle, after that the stored data will be useless so definitely there is no need to reserve a place for this data.

Here we can store it into a temp memory until the job is done after that the memory will be free again that would really make a huge minimization of your storage memory (for large plants coding), maybe you can use this type of memory in mathematical operations or transferring and conversion between data.

Monitoring Level of Tanks

The best way to understand anything is to relate it with an example so, here we are with a simple code that monitors the level of ten tanks, each tank has its own Level Transmitter.

and as all of us knows the analog input for Siemens PLC is detected by Input word (IW0, IW2, IW4 …..), but for more accurate calculation most programmers convert it to Real data type (Double word), so for now we should convert every level transmitter to a Real data type before the processing.

So, this situation is for you, would you prefer to use ten static area locations for the conversion of every level transmitter!! Or using single Temp area that can make the same thing for the ten transmitters!!

I think it would be much better if we used a single Temp memory for customize and minimize the size of memory.

Monitoring Level of Tanks in Tia Portal

Download Siemens TIA Example Logic

  • Tanks Level Monitoring Tia Portal Code
  • Tanks Operation Tia Portal Code

Summary

Temp memory would really minimize your program size if it can be used in your program.

Static memory has the ability to maintain data over several scan cycles to reuse it again in your code, both are important to use and to enhance your PLC program.

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:

  • Configuration of Siemens VFD
  • What is a Motion Controller?
  • Purpose of SCADA and HMI
  • Ferrules and Cross Ferruling
  • Basic PLC Question Bank
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

PLC based Auto/Manual Operation of Roll down Shutters in Industry
Siemens S7 300 and STEP 7 PLC program using SIMATIC Software
Oil and Water Separation Process using PLC Programming
How to Retrieve PLC Project From Memory Card?
Move Instruction in Tia Portal
Allen Bradley Studio 5000: Motor Running Hours PLC Program
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC SCL Program for Marking Machine
SCADA Systems
Siemens PLC Comparator Logic
Static and Temp Variables in PLC
PLC Program to Control a Water Pump
Programming Schneider PLC Manual Sequential Machine
PLC Ladder Logic for Tanks Filling as per Priority
What are Analog Inputs? – Analog Signals Processing in PLC

Keep Learning

PLC IO Examples

Quiz: Identifying I/O Examples in PLC Systems

Interlock

Process Interlocks and Trips

Free Allen Bradley PLC Training Course

Free Allen Bradley PLC Ladder Logic Training Course

80+ PLC MCQ

80+ PLC MCQ Questions

how-a-plc-do-the-scaling-for-a-sensor

How a PLC do the Scaling for a Sensor ?

SCADA

Top 100+ SCADA Questions

How to Choose HMI

How to Choose a Suitable HMI for Your Application?

PLC Programming Example for a Batch Process

PLC Programming Example for a Batch Process

Learn More

CEMS Classification

CEMS Principle, Types, Advantages, and Disadvantages

Pressure Transmitter Troubleshooting Tips

Pressure Transmitter Troubleshooting Tips

PID Controller Tunning Manually

PID Controller Parameters Tuning Manually

Root Locus Concepts Objective Questions

Construction of Root Loci

Surface Detector Level Measurement System

Surface Detector Level Gauges (Plumb-bob)

overview-of-communication-protocols

Industrial Automation Communication Protocols

Emergency Shutdown Button Installation (ESD)

Understanding Emergency Shutdown Button Installation (ESD)

Semiconductor Sensors Objective Questions

Semiconductor Sensors Objective Questions

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?