Inst ToolsInst ToolsInst Tools
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: PLC Memory Organization – Data Files and Program Files
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Memory Organization – Data Files and Program Files

PLC Memory Organization – Data Files and Program Files

Memory in a PLC is divided majorly into two types – data files and program files. Learn PLC memory organization and structure.

Last updated: September 4, 2023 11:06 am
Viral Nagda
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

When you are working in a PLC system, you know that the most basic thing to take care of is memory. What program you write, and how much memory has been consumed; is a very important factors in determining PLC performance. For this, it is necessary to understand how memory structure is organized and defined in a PLC.

Contents
PLC Memory OrganizationData FilesProgram Files

PLC Memory Organization

PLC Memory Organization - Data Files and Program Files

Without knowledge of memory organization, it would be difficult to predict how much exact program you have to write. In this post, we will see memory organization in PLC. Memory in a PLC is divided majorly into two types – data files and program files.

Data Files

The data file is the location of memory which stores information like memory words, status words, input variables, output variables, communication variables, timers, counters, and other in-built library functions provided by the PLC manufacturer.

Let us have a look at each example one by one.

  1. Memory words – Memory words are Boolean variables, integer variables, double integer variables, and floating variables. Suppose a PLC has allocated 100 memory variables for usage. Out of these, only 5 variables are used. The first variable is bit type, storing either 0 or 1. The second variable is an integer, signed or unsigned. The third variable is also an integer. The fourth variable is a double integer, signed or unsigned. If a variable is a double integer or float, it consumes two memory variables. So, the fifth memory variable will be a double integer.
  2. Status words – Status words store information about PLC. It comes in two types – status bits and status integers.
  3. Input variables – They store data regarding digital inputs and analog inputs of the PLC.
  4. Output variables – They store data regarding digital outputs and analog outputs of the PLC.
  5. Communication variables – They store data regarding communication protocols used in PLC. They can be Modbus, Ethernet, Can-Open, etc.

Apart from these, other in-built libraries if used to come in data files memory. They are timers, counters, pulse blocks, etc.

Program Files

As the name defines, program files store data regarding logic written, subroutines, and interrupts. This is the main consuming part of memory in PLC. If the PLC code written is more, then program file consumption will be large and if the code written is less, then program file consumption will be less. All the logic, be it a ladder, functional block diagram, structured text, sequential flow chart, or instruction list, comes in program files memory.

Also, user-defined function blocks and user-defined data types come in program files.

Memory organization in PLC is stored in either internal storage or internal and external SD cards. When there arises a situation where the internal memory storage is getting full and you need more data for the writing PLC program, then you need to insert an external SD card for extending program memory.

In that case, both the data files and program files are extended. Many PLCs have an online animation window, which shows current memory usage. It can be viewed either online or offline. This helps in better memory planning.

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

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

Read Next:

  • Sequential PLC Programming
  • S7-1500 S7-1200 S7-400 S7-300
  • HMI Screen Design Applications
  • Static and Temp Variables in PLC
  • Power Supply Sizing for Systems
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 !

Recommended Articles

#8 PLC Best Practices – Validate HMI Input Variables at PLC Level
Two Hand Press Safety Control Circuit
PLC Program to Separate Different Size Objects
What is Hot Standby in PLC?
Basics of Ladder Diagram in PLC Programming
How to Use Encode and Decode Instructions in PLC ?
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • William Snyder on Top Non-PLC Certification Courses for Automation Professionals
  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Masking in PLC

What is Masking in PLC?

Electrical Circuit Label Schematic

Label the Electrical Circuit Schematic

Traffic Barrier Control

PLC Programming for Traffic Barrier Control

PLC Documents

PLC System Documentation

Architecture of Allen Bradley PLC

Architecture of Allen Bradley PLC

PLC Program Example on Multiple LEDs using Set Coil

PLC Program Example on Multiple LEDs using Set Coil

Understanding Braking Theory in VFD

Understanding Braking Theory in VFD

PLC Conversion Program

How to use Converters in PLC

More Articles

PLC Power Supply and Operating Voltages

PLC Power Supply and Operating Voltages

Industrial Light Fittings and Street Light Poles Corrosion Problems

Industrial Light Fittings and Street Light Poles Corrosion Problems

Dual-junction thermocouple circuit

Find Thermocouple Ouput Voltage

Electro Magnetic Flow Meter Animation

Magnetic Flow Meter Animation

Root Locus Concepts Objective Questions

Root Locus Concepts Objective Questions

Types of Switches

Electrical Switches Principle & Types

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Ladder Logic Example based on Set Coil and Reset Coil

Top 100 555 Timer Projects for Engineering Students

Top 555 Timer Projects for Engineering Students

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?