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
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
  • 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

Difference between PLC and Computers
Use of Isolators and Barriers in Electrical Panel
PLC Program for Fish Feeding System
PLC Input Output Modules
Face Mask Making Machine using PLC and HMI
Tia Portal – Different Instances of Calling a Function Block
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

PLC Ladder Logic for Tanks Filling as per Priority
What is a GSD File and Why it is required?
Difference Between CompactLogix and ControlLogix
What is Distributed IO? – Decentralized Peripherals in PLC
Automatic Box Filling System using PLC Programming
DP Master System Configuration in PLC
PLC Program with 2 Toggle Switches and 4 Motors
PLC Program for Boolean Expression

Keep Learning

PLC Motor Logic with START, STOP, TEST Push buttons

PLC Motor Logic with START, STOP, TEST Push buttons

How to use Scale and Normalize Instructions in PLC

Scale and Normalize Instructions in PLC

Industrial Automation Solution

How to Choose the Right Industrial Automation Solution?

Multiple Pumps Control using PLC

Multiple Pumps Control using PLC

Masking in PLC

What is Masking in PLC?

Instrumentation Engineer in Process Plant Project

Instrumentation Engineer in Process Plant Project

Siemens PLC Math Instructions

Siemens PLC Mathematics Instructions

PLC Program to control level of parallel tanks

Parallel Tanks Level Control using PLC Ladder Diagram Tutorial

Learn More

Analog Recorders Objective Questions

Analog Recorders Objective Questions

Nuclear Level Measurement

Nuclear Level Detectors Cascade or Master/Slave concept

Chemical Seal Pressure Transmitter

What is the Purpose of Chemical Seals Pressure Transmitter?

SCADA System

What is SCADA System?

Difference Between Microcontroller and PLC

Difference Between Microcontroller and PLC

Wood Sawing and Blower System PLC Control Design

Wood Sawing and Blower System: PLC Control Design

CNC Custom Machining

What is Custom Machining in CNC? Why Should You Choose It?

solenoid valves trip

Identify Solenoid Valves Energized or de-energized?

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?