Inst ToolsInst ToolsInst Tools
  • Ask
  • 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
  • Ask
  • 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 !
SFC Language in PLC Programming
Configuration of Profibus Network in Siemens PLC
PLC Program with 2 Toggle Switches and 4 Motors
Sink or Source? Normally Open or Normally Closed?
Latching and Unlatching in PLC Programming Example
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

  • 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
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

What is a Wet Contact in PLC

What is a Wet Contact? – Basics of PLC Wiring

Most Asked Questions on SCADA

Most Asked Questions on SCADA with Answers

Safety Considerations in PLC System Design

Safety Considerations in PLC System Design

Marshalling Panel

What is Marshalling Cabinet?

Hardwired IO and Serial IO - Differences Explained

Hardwired I/O and Serial I/O – Differences Explained

How to Filter Digital and Analog Inputs in a PLC

#7 PLC Best Practices – Validate and Alert for Paired Inputs/Outputs

Wet Contacts and Dry Contacts in PLC Systems

Wet Contacts and Dry Contacts in PLC Systems

Car Parking System using PLC Programming

Car Parking System using PLC Programming

More Articles

Biomedical Instrumentation Objective Questions

Biomedical Instrumentation Objective Questions

Sheet Metal Fabrication Manufacturing and Design

Ideal Guide To Sheet Metal Fabrication Manufacturing and Design

Electronic Devices & Circuits Objective Questions

Electronic Devices & Circuits Quiz – Set 5

3 Phase Balanced Loads

Power in Balanced 3 Phase Loads

Pneumatic-Level-Transmitter-Value-Struck

Pneumatic Level Transmitter Value Struck?

Digital Electronics Objective Questions

Number Systems Multiple Choice Questions

Vacuum Gauges Working Principle

Vacuum Gauges Working Principle

Thermowell Installation near Critical Equipment

Thermowell Installation near Critical Equipment

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?