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.
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.
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.
Apart from these, other in-built libraries if used to come in data files memory. They are timers, counters, pulse blocks, etc.
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:
Learn the water fountain control logic using the PLC timers programming to control the high…
Open Telemetry is a framework for collecting data in cloud-native applications including tracing, metrics, and…
This article is about controlling the Pneumatic cylinder and Pneumatic motor in the assembly line…
In this post, we will learn the basic requirements for a network switch to be…
The PLC panel and MCC panel interface signals are start, stop, run feedback, trip, local…
In this article, we are going to discuss about shutter door control using induction motor…