0% found this document useful (0 votes)
32 views3 pages

PLC Memory Types and Functions

The document discusses the key components and memory types of a Programmable Logic Controller (PLC). It describes the Central Processing Unit (CPU) as having two main sections - the CPU section which executes the program, makes decisions, and communicates with other modules; and the memory section which stores the PLC program and other digital information. There are different types of memory in a PLC including volatile RAM, non-volatile ROM, EPROM, EEPROM and Flash memory. The document also notes that a programming terminal such as a PC running manufacturer software is needed to enter, modify, and troubleshoot the PLC program.

Uploaded by

Earl Flores
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
32 views3 pages

PLC Memory Types and Functions

The document discusses the key components and memory types of a Programmable Logic Controller (PLC). It describes the Central Processing Unit (CPU) as having two main sections - the CPU section which executes the program, makes decisions, and communicates with other modules; and the memory section which stores the PLC program and other digital information. There are different types of memory in a PLC including volatile RAM, non-volatile ROM, EPROM, EEPROM and Flash memory. The document also notes that a programming terminal such as a PC running manufacturer software is needed to enter, modify, and troubleshoot the PLC program.

Uploaded by

Earl Flores
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
  • Central Processing Unit (CPU)
  • Memory Design
  • Programming Terminal Devices
  • Troubleshooting the Controlled System

Additional notes for PLC Lesson 3

1. Central Processing Unit (CPU)


PLC Processor Module can be divided into two sections:
a) CPU Section
 It executes the program and makes the decisions needed by the PLC
to operate and communicate with other modules.
 CPU used in PLC are designed to facilitate industrial control.
 CPU perform the following:
o Executes the operating system
o Manages memory
o Monitor inputs
o Evaluates the user logic (ladder program)
o Turns on the appropriate outputs
b) Memory section
 It electronically stores the PLC program along with other retrievable
digital information.
Mode of PLC operation
a) RUN
 Executes the ladder program and energized output devices
 Prevents the user from performing editing
b) PROG or STOP
 Places the processor in the Program Mode
 Prevents the processor from scanning or executing the ladder
program, and the controller outputs are de-energized.
 Allows user to perform program entry and editing
2. Memory Design
Memory - the element that stores information, programs, and data in a PLC.
Writing - a process of storing data in memory location.
Reading - a process of retrieving data from memory.
Bit – a single binary value, either 0 or 1.
Byte – contains 8 bits.
Word – contains 2 bytes or 16 bits.
Memory Location - refers to an address in the CPU’s memory where a binary
word can be stored
Memory Utilization – refers to the number of memory locations required to
store each type of instruction.

Prepared by E. Flores
Additional notes for PLC Lesson 3

3. Memory Types
a) Volatile Memory – lose its stored information if power is lost or
removed.
b) Nonvolatile Memory – retain stored information when power is removed
accidentally or intentionally.
Types of Memory
i. Read Only Memory (ROM) – store programs, and data cannot be
changed after the memory chip has been manufactured. It is used
to store the programs and data that define the capabilities of the
PLC.
ii. Random Access Memory (RAM) – also referred as read-write
(R/W) memory, designed so that information can be written into
or read from the memory. It is used as a temporary storage area
of data that may need to be quickly changed. A battery backup is
required to avoid losing data in the event of a power loss.
iii. Erasable Programmable Read-Only Memory (EPROM) – provides
some level of security against unauthorized or unwanted changes
in a program. It is designed so that data stored in them can be
read, but not easily altered without special equipment.
iv. Electrically Erasable Programmable Read-Only Memory
(EEPROM) – can be electrically overwritten with new data. It
provides permanent storage of the program and can be changed
easily using standard programming devices. EEPROM memory
module is used to store, back up, or transfer PLC Programs.
v. Flash EEPROM – similar to EEPROM but it is extremely fast at
saving and retrieving files. If power fails while a PLCs with flash
memory is running, the PLC will resume running without having
lost any working data after power is restored.
4. Programming Terminal Devices
 Programming terminal device is needed to enter, modify, and troubleshoot the
PLC program.
 The most popular method of PLC programming is to use a personal computer
(PC) in conjunction with the manufacturer’s programming software.
Capabilities of PLC programming software are :
o Online and offline program editing
o Online program monitoring
o Program documentation
o Diagnosing malfunctions in the PLC

Prepared by E. Flores
Additional notes for PLC Lesson 3

o Troubleshooting the controlled system

Prepared by E. Flores

Common questions

Powered by AI

In PLCs, volatile memory loses its stored information if power is lost or removed, making it suitable for temporary data storage where quick access is needed, such as during active program execution . Nonvolatile memory, however, retains information even when power is removed, making it ideal for storing programs and data that must persist through power cycles, such as retained variables and configuration settings. These properties dictate their applications, with volatile memory like RAM used for temporary storage and nonvolatile memory like EEPROM used for permanent program storage.

The memory mode of operation in a PLC can either be RUN or PROG/STOP . In RUN mode, the PLC executes the ladder program and energizes output devices, preventing user editing, which ensures that the system runs without interruption. On the other hand, PROG/STOP mode prevents the processor from scanning or executing the ladder program, allowing the user to perform program entry and editing. This separation of modes is crucial for program maintenance as it ensures changes can be made safely without affecting the operation of the connected system.

RAM in PLCs requires a battery backup because it is a volatile memory type, which would lose all stored data if there is a power loss . A battery backup prevents this data loss, maintaining the temporary data and system state needed for ongoing processes. Without a battery backup, critical data could be lost during power interruptions, causing a loss in operational continuity, potential data corruption, and added complexity to recover system states, thus affecting the reliability and efficiency of industrial controls.

EEPROM memory provides a balance between data security and flexibility by allowing data to be electrically erased and reprogrammed while still offering a level of security against unauthorized or unintentional changes . This is achieved through controlled writing processes that require specialized equipment or conditions for amendment. It ensures that the system retains essential program configurations over time without frequent inadvertent alterations, while still enabling updates when necessary using standard programming devices.

Flash EEPROM offers significant advantages over traditional EEPROM when dealing with power failures. While both provide nonvolatile storage, flash EEPROM is extremely fast at saving and retrieving files . This speed advantage ensures that in the event of a power failure, a PLC with flash EEPROM can resume running without losing any working data once power is restored. This capability is critical for maintaining data integrity and minimizing downtime in industrial environments.

Program documentation and troubleshooting features substantially enhance PLC programming and system maintenance by providing a clear and organized record of program logic and changes, which aids in understanding system behavior and debugging errors . Documentation streamlines the process of onboarding new engineers and ensures continuity in system maintenance. Troubleshooting features allow for real-time identification and resolution of errors, minimizing system downtime and operational disruptions. Together, these features improve program accuracy, reliability, and ease of updates.

Using a personal computer with manufacturer’s programming software for PLC programming offers several advantages over dedicated terminal devices. This method provides capabilities such as online and offline program editing, online program monitoring, program documentation, and diagnosing or troubleshooting malfunctions in both the PLC and the controlled system . PCs also offer a more intuitive graphical user interface, easier storage and backup solutions, and can be used with multiple PLCs and projects, enhancing flexibility and efficiency in program development and maintenance.

The CPU's ability to manage memory in PLCs is pivotal for industrial process control because it ensures that instructions and data are stored and retrieved efficiently, facilitating real-time processing and execution of control tasks . Effective memory management allows the PLC to handle complex instructions and large data sets, which is essential for maintaining high performance and reliability in industrial automation. By efficiently managing memory, the CPU optimizes the PLC's operational speed and effectiveness, directly impacting the control and efficiency of industrial processes.

Online program monitoring and editing provide significant operational flexibility to a PLC in dynamic industrial environments by allowing real-time adjustments and checks without interrupting system operations . This capability enables engineers to modify programs based on immediate feedback or changing operational conditions, fostering adaptive control strategies. Furthermore, it helps in quickly diagnosing and resolving issues, facilitates continuous improvement, and enhances overall system responsiveness and adaptability to process changes.

The CPU section in a PLC processor module performs several critical functions necessary for industrial control. It executes the operating system, manages memory, monitors inputs, evaluates the user logic (ladder program), and turns on the appropriate outputs . These functions are essential because they enable the PLC to execute programs and make decisions necessary for controlling other modules and industrial processes, ensuring efficient and accurate operations within an industrial environment.

Additional notes for PLC Lesson 3
1. Central Processing Unit (CPU)
PLC Processor Module can be divided into two sections: 
a)
Additional notes for PLC Lesson 3
3. Memory Types
a) Volatile  Memory –  lose  its  stored  information  if  power  is  lost
Additional notes for PLC Lesson 3
o
Troubleshooting the controlled system
Prepared by E. Flores

You might also like