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
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: Programmable Logic Controller (PLC) Scan Time – Types, Theory
Share
Notification Show More
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
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Programmable Logic Controller (PLC) Scan Time – Types, Theory

Programmable Logic Controller (PLC) Scan Time – Types, Theory

In this post, we will see the concept of scan time, and its types in a programmable logic controller (PLC).

Last updated: October 17, 2023 3:42 pm
Viral Nagda
PLC Tutorials
1 Comment
Share
8 Min Read
SHARE

In this post, we will see the concept of scan time, and its types in a programmable logic controller (PLC).

Contents
PLC Scan CycleTypes of Scan TimeCyclic TimeFreewheeling TimeEvent TaskExternal Event TaskImportant Notes on Scan TimeSelection of Scan TimeWatchdogEvent Triggered TasksScanning

A PLC consists of embedded functions like IO’s, communication, special designated functions etc. and a user-written program. Both these tasks need to be completed in a certain span of time.

Consider this concept as a satellite revolving around the earth. It always does this task in a certain span of time periodically, so that all the data are captured properly. The time should neither be such fast or less, that some data is missed; nor should be such slow or more, that time is wasted and information is not reached on time.

This theory is called scan time in PLC. It is nothing but the time which a PLC takes to execute all it’s software functions. A scan time is the core of any PLC system. Proper setting of it’s value defines the performance of the system.

There are applications where you need to set a lesser time, so that the executions work rapidly and you get the corresponding result very fast; like machine automation. Then there are applications where you can work with the default set time and execute the functions.

This can be any normal program or process automation, for best understanding. As there is no need to work fast unnecessary, there is thus no requirement to set a less time. All the functions will function properly without missing anything.

It depends entirely on the understanding of the PLC programmer; on how well he is able to define the time and make his work fulfil.

PLC Scan Cycle

Now that we have understood the basic concept, let us move ahead at the utmost function of scan time and how does it work.

A scan time has four main tasks – read input, execute the logic, write the output and work on the remaining interval with other low priority tasks.

Refer the below image for reference.

PLC Scan Cycle

The physical values of the inputs are written in the input variables memory. After this, the user-written program is executed. Accordingly, the output values are updated in the output variables memory.

These output values are then updated on the physical outputs of PLC. In the remaining time, the PLC firmware carries out system processing and any other low priority tasks.

Types of Scan Time

Let us consider some general types of scan times used.

Cyclic Time

A cyclic time is assigned a fixed interval time. This means that the PLC will internally divide the maximum allotted time for each of the functions discussed.

This ensures that the PLC will try to complete all the tasks within the specified time. Compare this with the satellite example that we discussed earlier. It is same as this time.

This time is periodic in nature.

Freewheeling Time

A freewheeling time is not assigned a fixed interval time. This means that the PLC will execute the next task only on completion of the previous task.

This time is periodic in nature.

Event Task

An event task is executed on the trigger of any event. This trigger can be any memory variable.

On trigger, the tasks are executed in a single scan time, only once; in freewheel type mode (means, next step will continue after completion of previous step).

This time is conditional in nature.

External Event Task

This task is executed on the trigger of any external event. This trigger can be a digital input, any system function block output (means not from program, but configuration system block of any task) etc.

On trigger, the tasks are executed in a single scan time, only once; in freewheel type mode (means, next step will continue after completion of previous step).

This time is conditional in nature.

Types of Scan Time in a PLC

Important Notes on Scan Time

Let us consider some important notes while discussing the scan time in a PLC.

Selection of Scan Time

When you start writing a program, by default set time in the software works great anyways and don’t have to look into it. It can be between 10-20 ms.

Scan time is looked upon by two types of programs – one is fast and other is lengthy.

For a program requiring fast output from the logic, set a low scan time. But that shouldn’t be such low that it misses any task. Typical example can be 5 ms.

For a lengthy program of many rungs and sections, set a high scan time; so that all the tasks can be executed. It can be between 100-150 ms. Such types of lengthy programs are used where there are a large number of IO’s and cycles / processes.

Watchdog

Watchdog is an important term related with scan time. Basically, it is a user defined time to check whether the PLC is executing all the tasks within or around the specified scan time.

Suppose the scan time is 20 ms; then the watchdog timer can be 100 ms. If the program contains, for example, an endless loop, the watchdog causes the PLC to enter stop mode until the problem is fixed.

An endless loop can occur through any hardware malfunction or any wrong written program. PLC is forced to go to stop mode, to prevent any unnecessary damage to the system from the program. It can then be resumed only by power cycling the PLC or downloading the program again in the PLC.

Event Triggered Tasks

In case of event triggered tasks, a maximum rate of events per millisecond is defined.

It can be like, 7 events per millisecond. If the rate of trigger occurs at a very high frequency and goes above 7 events, then the PLC will go in stop mode.

Scanning

PLC program is always scanned from left to right, top to bottom in a single section.

So, suppose there are six sections written, then the first section numbered will be executed from left to right in a rung; then from top rung to the bottom rung and so on, till the sixth section. Then, the cycle repeats again.

Author: Viral Nagda

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:

  • PLC STL Programming
  • Selection of PLC Spares
  • High-Speed Inputs in PLC
  • How to Prevent Ground Loops?
  • Good Earthing Practices for PLC
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

What is a Annunciator Panel?
What is Nest Loading? – DCS and PLC Control Systems
Parking Garage Indicator: PLC Automation System
Troubleshooting PLC Permissive Inputs
Why 24 Volts DC Power Supply is used? – Industrial Automation Systems
Create a Function (FC) for a Valve Logic in Siemens PLC
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • AVINASH SHINDE says:
    May 24, 2021 at 9:40 am

    Tnaks mr. viral for sharing very informative information in simple language.

    Regds
    Avinash Shinde

    Reply

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

PLC Motor Control Ladder Logic Programming
Basics of 4 to 20 mA analog Signals
LIFO Instruction in PLC
PLC Programming Examples on Industrial Automation
What is Human Machine Interface (HMI) ?
Unknown Do’s Need to Know as a PLC Programmer
PLC Programming Example on LED Control
How Weigh Feeder Works ?

Keep Learning

VFD Pros and Cons - Variable Frequency Drives

VFD Pros and Cons – Variable Frequency Drives

PLC Motor Logic with START, STOP, TEST Push buttons

PLC Motor Logic with START, STOP, TEST Push buttons

Mixing Tank Relay Circuit

PLC Program for Mixing Tank

PLC Training Data Tables FIFO and LIFO

FIFO Instruction in Allen Bradley PLC Programming

Seven Segment Display Programming with Structured Text

Seven Segment Display Programming with Structured Text

How to Choose a PLC

How to Choose a PLC for New Project? – Criteria for Selection of PLC

Convert Raw Counts to Engineering Units

Raw Counts to Engineering Units : Conversion Formula

While Do Statement in Structured Text PLC Program

While Do Statement in Structured Text PLC Program

Learn More

Electrical Machines Questions and Answers

Generated EMF Quiz

Code Block Comparison

Compare Online and Offline PLC Programs

Reciprocating Piston Meters

Overview of Positive Displacement Flow Meters

Pipeline Inspection Tools

Essential Industrial Pipeline Inspection Tools

Cable Drum Handling

What is Cable Drum Handling? – Transportation & Storage

Instrument Calibration Lab Exercise

Instrument Calibration Lab Exercise

Electrical Machines Questions and Answers

Three Phase Induction Motor Power Factor Control

Difference between Availability, Reliability & SIL

Difference between Availability, Reliability & SIL

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?