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
  • Request
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: How CPU Execute Program in Siemens PLC?
Share
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
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > How CPU Execute Program in Siemens PLC?

How CPU Execute Program in Siemens PLC?

Learn about how CPU execute a program in the Siemens PLC, it reads the inputs from the input module then values are saved to PII (Process Image Input).

Last updated: March 4, 2021 11:22 am
Editorial Staff
PLC Tutorials
1 Comment
Share
4 Min Read
SHARE

In this article, we will learn about the execution of the program in the PLC.

Many people want to learn PLC programming directly without knowing what happens around it.

Before jumping into the programming, you must learn the basics of the PLC, how the program works, the flow of the program, and during execution how it uses memory, etc.

How CPU Execute Program in Siemens PLC?

How CPU Execute Program in Siemens PLC?

Here we are going to learn about how CPU executes a program in the Siemens PLC, although execution will remain the same in every PLC, in Siemens PLC it will take a little extra for an execution.

Normally in every PLC execution takes place like reading the Input, evaluate the logic and writing the output,

However, in the Siemens PLC, it reads the inputs from the input module then values are saved to PII (Process Image Input).

PII is a small memory part that resides in the CPU to store the status of the inputs coming from the input module.

Now you may have a question that why to save the value to PII? It’s because by saving input to PII it reduces the amount of the scan cycle. Which is helpful in a case where you have a large number of I/Os are available.

So, every time instead of looking back to the input module, CPU only looks at PII to make the execution of the program fast enough.

After PII, CPU then starts to process the program. It checks the status of the Inputs and based on their condition (ON/OFF) it processes the logic.

First, it goes for the first network and sees whether the input is active or not, if not then it moves to the next network and checks the input status. This process will last until the end of the program.

So, in the processing of the program flow goes from the top to bottom and left to right.

Now, for example in the processing part CPU sees that some of the inputs are true, what it does that it saves that output to the PIQ (Process Image Output).

After saving the output to the PIQ, it then goes to the output module to energize output resides in the field.

After this process CPU goes to the first step and repeats the same step again n again.

This is how PLC executes the logic in Siemens PLC.

Now, you might have one more question that is this works for both the analog and digital signal? The answer is NO.

Only for the digital inputs and outputs CPU looks at PII and PIQ, but in case of the analog signal, it takes a value directly from the module.

As the analog signal takes a value from the module itself, to recognize the analog inputs and outputs it uses P before writing any addresses like PIW100, PQW100, etc.

Still, you have a question? Then ask me through the below comment section.

Author: Suhel Patel

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Allen Bradley Architecture
  • Allen Bradley Powerflex VFD
  • Motor Push button Logic
  • Motor Forward and Reverse
  • Solenoid and PLC Wiring
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

Typical HMI Screen Design for Water Treatment Plant
Pump and Mixer Operations Example: PLC Timer-Based Control
Preventive Maintenance of Variable Frequency Drive (VFD)
Troubleshoot Allen Bradley PLC Logic
Interposing Relay Panel (IRP) – Wiring and Testing Requirements
How to Use Diagnostic Buffer for SIEMENS PLC?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • saif says:
    November 5, 2023 at 6:43 pm

    still i wonder if the output pin are energised sequentially same as the networks or they are all energised at one time after the sequential scan of networks is done ?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

How Modbus is used in Industrial Networks?
DCS
Architecture of Allen Bradley PLC
MODBUS ASCII Communication Protocol Explained
Procedure for Siemens S7-300 Download from PC to PLC
SAVE and BR Memory Instructions in Siemens PLC Programming
Latched and Momentary Operation of Motor PLC Program
Batch Simulator PLC Example Program using LogixPro Simulator

Keep Learning

3 to 8 Line Decoder Circuit Diagram

3 to 8 Line Decoder PLC Ladder Diagram

How to Filter Digital and Analog Inputs in a PLC

How to Filter Digital and Analog Inputs in a PLC?

Programmable Logic Controller Quiz

Programmable Logic Controller Quiz

Faceplate in WinCC

Siemens HMI Training – Using UDTs with Faceplates

PLC based Automatic Packaging System

PLC based Automatic Packaging System

OpenPLC - PLC Training for Students - Free Tutorials & Courses

OpenPLC – PLC Training for Students – Free Tutorials & Courses

In this article, we will learn the difference between Machine Expert Basic and Machine Expert software in Schneider PLC.

Difference between Machine Expert Basic and Machine Expert – Schneider PLC

Conditional Jump instruction

Jump Instruction in Siemens Tia Portal

Learn More

Hot wire Anemometer Principle

Hot Wire Anemometer Principle and Types

Lithium-ion Battery Charging System

Lithium-ion Battery Charging Systems

pn-junction-energy-diagrams

Energy Diagrams of PN Junction & Depletion Region

Pressure Transmitters Installation Factors

Pressure Transmitters Installation Tips

Free PDF Downloads Learn Instrumentation & Control Systems

Free PDF Downloads: Learn Instrumentation & Control Systems

Difference between Rotary Shaft and Sliding Stem Control Valves

Difference between Rotary Shaft Valves and Sliding Stem Control Valves

Multistage Flash Drums Erratic Level Readings

Multistage Flash Drums Erratic Level Readings

Immersion Electrical Heaters

Single and Three Phase Immersion Electrical Heaters Wiring Circuits

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

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?