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: PLC Memory Organization – Data Files and Program Files
Share
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 > 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 !

Continue Reading

3 Phase Motor Control using PLC Ladder Logic
OMRON PLC Tutorial: Car Parking System Application
UPS Selection Factors for a Control System
Best 100 PLC Projects for Final Year Engineering Students
What is Hot Standby in PLC?
Allen Bradley RSLogix 500 PLC Programming
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

What is Thin Client in SCADA? – Purpose, Advantages
Do’s and Don’ts in PLC
Interposing Relay Panel (IRP) – Wiring and Testing Requirements
Types of Allen Bradley PLC
How to Solve Electrical Ground Loop Problems?
Structured Text PLC Example for Motor Interlocking and Control
Introduction to PLC – Advantages of PLC
#11 PLC Best Practices – Instrument for Plausibility Checks

Keep Learning

Liquid Tank Filling and Emptying PLC System

Auto and Manual Liquid Tank System: PLC Program Example

Multiple Pumps Control using PLC

Multiple Pumps Control using PLC

Ferrule Example

Ferrules and Cross Ferruling

Omron PLC washing machine automation

Omron PLC Logic for Washing Machine Automation

PLC Questions & Answers

Programmable Logic Controller Questions and Answers

Introduction to Schneider PLC

Different Types of Schneider PLC

How to Filter Digital and Analog Inputs in a PLC

How to Filter Digital and Analog Inputs in a PLC?

Automatic Bottle Filling System using PLC

Automatic Bottle Filling System using PLC

Learn More

How to Test a Battery using Multimeter

How to Test a Battery using a Multimeter?

Strain Gauge Pressure Sensor Principle

Strain Gauge Pressure Sensor Principle

Rotameter

What is a Variable Area Flow Meter?

Find the Fault in the Temperature Loop

Fault in the Temperature Loop

FMCW Radar level transmitter Working Principle

FMCW Radar Level Transmitter Working Principle

Industrial Gases

Questions and Answers on Gas

Two SOV Connections

Two Solenoid Valves Working Principle

Identify which lamp in the following ladder-logic diagram

Identify High Flow Alarm and Low Flow Alarm?

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?