Inst ToolsInst ToolsInst Tools
  • 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: #6 PLC Best Practices – Validate Timers and Counters
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • 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 > #6 PLC Best Practices – Validate Timers and Counters

#6 PLC Best Practices – Validate Timers and Counters

If timers and counters values are written to the PLC program, they should be validated by the programmable logic controller.

Last updated: September 21, 2021 10:29 am
Editorial Staff
PLC Tutorials
No Comments
Share
3 Min Read
SHARE

If timers and counters values are written to the PLC program, they should be validated by the PLC for reasonableness and verify backward counts below zero.

Contents
Validate Timers and CountersExample
Security ObjectiveTarget Group
  The integrity of PLC variablesIntegration / Maintenance Service Provider Asset Owner

Validate Timers and Counters

Timers and counters can technically be preset to any value. Therefore, the valid range to preset a timer or counter needs should be restricted to meet the operational requirements.

If remote devices such as an HMI write timer or counter values to a program:

  • do not let the HMI write to the timer or counter directly but go through a validation logic
  • validate presets and timeout values in the PLC

Validation of timer and counter inputs is easy to directly do in the PLC (without the need for any network device capable of Deep Packet Inspection) since the PLC “knows” what the process state or context is. It can validate “what’ it gets and “when” it gets the commands or setpoints.

PLC ON DELAY TIMER FUNCTION

Example

During PLC startup, timers and counters are usually preset to certain values.

If there is a timer that triggers alarms at 1.3 seconds, but that timer is preset maliciously to 5 minutes, it might not trigger the alarm.

If there is a counter that causes a process to stop when it reaches 10,000 but that is set it to 11,000 from the beginning, the process might not stop.

Why?

Beneficial for…?Why?
  SecurityIf I/O, timers, or presets are written directly to I/O, not being validated by the PLC, the PLC validation layer is evaded and the HMI (or other network devices) are assigned an unwarranted level of trust.
  ReliabilityThe PLC can also validate when an operator accidentally presets bad timer or counter values.
  MaintenanceHaving valid ranges for timers and counters documented and automatically validated may help when updating logic.

References

Standard/frameworkMapping
  MITRE ATT&CK for ICSTactic: TA010 – Impair Process Control
Technique:  T0836 – Modify Parameter
ISA 62443-3-3SR 3.5: Input Validation
ISA 62443-4-2CR 3.5: Input Validation
  ISA 62443-4-1SI-2: Secure coding standards
SVV-1: Security requirements testing

Source: PLC Security

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

PLC Programming Example with Pushbutton and Motor
1 to 8 Demultiplexer PLC ladder diagram
High-end Programmable Logic Controller – Schneider PLC
What is Distributed IO? – Decentralized Peripherals in PLC
PLC Programming Best Practices and Tips
PLC Programming Example on LED Control
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

Explore More

Car Wash Program using Functional Block Diagram (PLC)
Timers using Statement List (STL) PLC Programming
PLC Structured Text Program for Output Generation via Equations
PLC Automatic Irrigation System
Contacts and Coils in PLC Ladder Logic
DP Master System Configuration in PLC
How to Detect Speed of Conveyor in PLC?
Tanks Draining Control in PLC using Functional Block Diagram
Tools Required for PLC Programmer to Carry at Site
Automatic Packing of Bottles Programming

Keep Learning

Difference between Analog Signal and Digital Signal

What are Analog and Digital Signals? Differences, Examples

Use of Comments in SCL Language

Use of Comments in SCL Language

How to Download Rslogix Free

Download Allen Bradley RSLogix PLC Software

Free Omron PLC Programming Course in HINDI

Free Omron PLC Programming Course in HINDI

PLC Ladder Logic Example based on Set Coil and Reset Coil

PLC Ladder Logic Example based on Set Coil and Reset Coil

Procedure For reading or searching the tag number in Siemens PLC

Procedure for Reading or Searching the Tag number in Siemens PLC

S7 1200 PLC Program

Siemens S7 1200 PLC configuration in TIA Portal

PLC Best Practices

#1 PLC Best Practices – Split PLC Code into Modules

Discover More

Control Systems Multiple Choice Questions

Applications of Variable Frequency Drive (VFD)

Difference Between Alternator and Generator

Difference Between Alternator and Generator?

Types of Failures in Control Valves

Types of Failures in Control Valves

Permanent magnet moving coil instruments (PMMC)

Permanent Magnet Moving Coil Instruments (PMMC)

Control Systems Questions & Answers

Control Systems Objective Questions & Answers – Set 6

Digital Electronics Multiple Choice Questions

Memory Devices Objective Questions – Part 2

Laser Level Measurement

Laser Level Measurement Principle

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?