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

Pulse Timer Instruction in PLC Programming
Node-RED in PLC Industrial Automation
Difference Between PLC and SCADA
How to Operate a Group of Induction Motors using PLC Logic?
Evaluating Industrial Automation Projects Return on investment (ROI)
PLC Ladder Logic for Start-up Control of Boilers
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

Delta PLC Counter with Comparison
Mis-conceptions of PLC Ladder Logic
PLC Important Questions and Answers
Programmable Logic Controller Questions and Answers
Motor ON OFF Logic in PLC
Scale and Normalize Instructions in PLC
PLC Automatic Control of Two Outputs with one Input
Automatic Door Operation PLC Programming and Simulation

Keep Learning

Automated Test Bench - Complex PLC Programming Examples

Automated Test Bench – Complex PLC Programming Examples

Industrial motor control using PLC instruction list programming

PLC Instruction List for Motor Reverse and Forward Direction

PLC Program for Controlling Sequence of Conveyors with Interlocking

PLC Program for Controlling Sequence of Conveyors with Interlock

Machine Tool and Coolant Control PLC Ladder Logic

Machine Tool and Coolant Control: PLC Ladder Logic Design

Siemens PLC motor direction control example

Siemens TIA Portal: Motor Forward Reverse PLC Logic

Siemens Tia Portal PLC Training Course

Siemens Tia Portal PLC Training Course

Glass Cutting and Polishing Machine PLC Automation Solution

Glass Cutting and Polishing Machine: PLC Automation Solution

Watchdog Timer in PLC

What is a Watchdog Timer in PLC?

Learn More

Measurement and Calibration Objective Questions and Answers

Measurement and Calibration Objective Questions

Turbine Flow Meter (TFM) Field Calibration

Turbine Flow Meter (TFM) Field Calibration Uncommon Request

Automatic Car Washing Process using PLC Ladder Diagram

Automatic Car Washing using PLC

What Effect on Hydrostatic Level Transmitter if Liquid Density Changes?

What Effect on Hydrostatic Level Transmitter if Liquid Density Changes?

circuit-breaker-working-principle-animation

Circuit Breaker Working Principle Animation

deadweight tester principle

Pressure Standards

Electrical Machines Questions and Answers

DC Machines Excitation Quiz

Opposite Acting Control Valves Application

PLC Ladder Logic for Opposite Acting Control Valves Application

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?