PLC Tutorials

#19 PLC Best Practices – Monitor PLC Memory Usage

Measure and provide a baseline for memory usage for every PLC controller deployed in the production environment and trend it on the HMI.

Security ObjectiveTarget Group
MonitoringIntegration / Maintenance Service Provider Asset Owner

Monitor PLC Memory Usage

Since the increase of lines of code in the logic can also lead to increased memory consumption at runtime, it is recommended for PLC programmers to track any deviation from the baseline and dedicate an alarm class to this event.

Example

In Rockwell Allen Bradley PLCs, a baseline can be established on a controller and memory usage can be tracked using the RSLogix 5000 Task Monitor Tool.

Not only the main memory but also the I/O memory and Ladder/Tag memory can be tracked using trends.

Why?

Beneficial for…?Why?
SecurityIncreased memory usage can be an indicator of the PLC running altered code.
ReliabilityTracking memory usage for the running programs could be useful in avoiding total memory consumption and eventual fault state for the PLC controller.
MaintenanceTracking memory usage could be used in tuning and finding the best scan time for the monitored controller but also in troubleshooting problems and issues related to faulty states.

References

Standard/frameworkMapping
MITRE ATT&CK ICSTactic: TA002 – Execution
Technique: T0873 – Project File Infection
ISA 62443-3-3SR 3.4: Software and information integrity
ISA 62443-4-2EDR 3.2: Protection from malicious code

Source: PLC Security

You've successfully subscribed !
Share

Recent Articles

  • PLC Tutorials

From Boolean Algebra to PLC Logic

In this article, a simple example will teach you the conversion from Boolean algebra to…

1 month ago
  • PLC Tutorials

PLC Cooking Timer Example for Kitchen Automation

In this article, you will learn the PLC cooking timer example for kitchen automation using…

3 weeks ago
  • PLC Tutorials

Example PLC Program to Control a Pump based on Level Sensors

Learn an example PLC program to control a pump based on level sensors using ladder…

3 weeks ago
  • PLC Tutorials

PLC Timer Application in Security Camera Recording

In the PLC timer application for security camera recording, when motion is detected then camera…

3 weeks ago
  • PLC Tutorials

Batch Mixing with PLC Ladder Logic Program

In this example, we will learn batch mixing with PLC ladder logic program using timer…

2 weeks ago
  • PLC Tutorials

PLC Example on Manufacturing Line Assembly

This PLC example on manufacturing line assembly is an intermediate-level PLC program prepared for the…

3 weeks ago