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: Software Redundancy in Siemens PLC – Hardware versus Software
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 > Software Redundancy in Siemens PLC – Hardware versus Software

Software Redundancy in Siemens PLC – Hardware versus Software

In this article, you will learn what is software redundancy in Siemens PLC, and the difference between hardware and software systems.

Last updated: October 17, 2023 1:49 pm
Hussien Ghareb
PLC Tutorials
No Comments
Share
9 Min Read
SHARE

After we have discussed the meaning and importance of redundancy in Automation systems, today we are going to have an overview of SIEMENS redundant solutions.

Contents
Difference Between Hardware & Software RedundancyHardware Redundancy in PLCSoftware Redundancy in PLCRequirements for Software Redundancy“Software Redundancy” How Does It Work?

SIEMENS is one of the most important leading companies in the Automation field, it is known for its flexible software (TIA portal) and its reliable Hardware components (PLCs – Circuit Breakers – HMI – …).

Redundant programmable logic controllers from Siemens have proved themselves in operation and thousands are in service.

Difference Between Hardware & Software Redundancy

First of all, and before we get into SIEMENS redundancy solutions, we had to differentiate between these two types of redundancy:

Hardware Redundancy in PLC

Hardware Redundancy is a PLC model that you can see in (S7-400H & S7-1500H), it is used in critical processes such as power plants, gas production plants, and high-speed rotary machinery.

In case of master CPU failure, the standby CPU can take control in 10ms order with previous updates from the process. (In this manner, the changeover is bumpless).

Software Redundancy in PLC

Software Redundancy can use any type of S7-300 and S7-400 standard CPUs, the redundant link between the CPUs can be implemented in standard communication links over MPI, Profibus-DP, or Industrial Ethernet, and the switchover time (when a fault on the primary CPU will cause the standby CPU to take over the process) is measured in seconds.

In general terms, this can be described as a warm-backup system: relatively cheap, most of the programming for the redundancy must be done by yourself, and redundant IOs are limited.

So, as we can notice the main advantage of hardware redundancy over software redundancy is the “response rate”, Hardware systems have a faster response/switchover time.

Requirements for Software Redundancy

PLC Software Redundancy

Hardware Requirements

Two S7-300 and/or S7-400 stations each one equipped with a CPU and a connection for a DP master system. The two stations are linked by means of a bus system that you can use to exchange data.

ET 200M distributed I/O devices with redundant DP slave interface module IM 153-2 are connected to DP master systems.

The DP slave interface module allows the failover from the first to the second interface in the event of a fault in order to forward process status data from the second DP master to the I/O.

Software requirements

We need to install the STEP 7 Basic Package V5.2 or higher to assign parameters to the blocks for software redundancy.

“Software Redundancy” How Does It Work?

Before understanding the software redundancy algorithm, you have to learn further detail about the PLC scan cycle and how does a normal PLC work?

This article (scan cycle article) would help you to understand How a PLC executes a normal scan cycle.

Step 1: The Redundant Software

First of all, you have to download the fault-tolerant component of the software on both PLCs (the master and the standby stations).

While the master CPU is processing the redundant user program, it is skipped in the standby CPU.

As the standby CPU skips this component of the program that would help to prevent inconsistency of the two program components, e.g. as a result of alarms, different cycle times, etc.

This means that the program on the standby station is always ready to take over-processing.

Step 2: The master station continuously transfers updated data to the standby station

To avoid having to start the redundant user program “from scratch” after the failure of the master station, the master station continuously transfers its actual process data to the standby station.

A master to standby station changeover is initiated immediately after a fault has been detected at a CPU, at a DP master, or at a DP slave within the master station. With this type of changeover, the standby station takes over the process and assumes the master function.

Step 3: Areas of the redundant software component

The redundant software component contains a process image, an IEC timer area, an IEC counter area, a bit memory address area, and a data block area.

Only the redundant software is allowed write access to those areas.

Those contiguous areas are scanned during the assignment of parameters for the “SWR_START” startup block (OB100).

Software Redundancy by Siemens PLC

Step 4: Processing unilateral I/O devices

The term unilateral I/O devices denote I/O modules that are not addressed in the redundant component of the user program, i.e. they are only assigned to one CPU.

In addition to the redundant software component, it is, of course, also possible to load a program that controls the unilateral I/O devices of the relevant CPU.

Software redundancy does not have any influence on that component of the program.

Step 5: Data exchange between the two stations

The non-redundant component of the program can exchange its data with the redundant software by means of suitable data blocks.

Those data blocks are exchanged by means of the software redundancy system and are therefore made available to the partner station.

The inputs are written to the process image of inputs (PII) at the start of OB 1.

The redundant software is processed before any data of the redundant software component (PIO, bit memories, DBs, timers/counters, and instance DBs) is transferred to the standby system.

The standby station must receive the data from the active station after having completed its startup, or after redundancy has been recovered in that software component.

At the end of OB 1, the data of the redundant PIO is written to the process image of outputs at the master and standby stations and is transferred from there to the I/O devices at the end of the OB cycle.

NOTE:

Interrupts can be received by the active station at any time and are processed immediately.

Interrupts can be lost if a changeover takes place at that moment or shortly afterward.

Step 6: Master to standby changeover

In order to avoid having to start the standby station “from scratch” after master failure, a complete and consistent PIO of the fault-tolerant program component is transferred to the standby station to cover emergency/changeover situations.

The time required for the transfer may take longer than one cycle, depending on the communication mode and the volume of data to be transferred.

The DP slave stations failover automatically, for example after detection of a problem on the DP master or on the DP bus of the DP master station.

During this DP slave changeover, the most recently output PIO values are frozen on the DP slaves.

Step 7: Recovering software redundancy after repairs

To recover software redundancy, for example after the failure of a CPU, all configuration data and the entire program must be loaded from the programming device or memory card to the replacement CPU. That CPU is then started.

Resources

  • SIMATIC S7-300/S7-400 Software redundancy for SIMATIC S7.

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:

  • Cloud-Based SCADA
  • ControlLogix Architecture
  • Allen Bradley Powerflex VFD
  • STL Language in Siemens PLC
  • VFD Commissioning Procedure
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

Basic Pumping System Application Used in Industrial Automation
SCADA Hardware and Software
PLC Programming Example for a Batch Process
PLC based Automatic Packaging System
VFD Interview Questions and Answers – Electrical Drives
Types of Failures in Industrial Automation Systems
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
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Automatic Box Filling System using PLC Programming
Loop Check of 4-20mA or HART Transmitters
Studio 5000: Define Program or Operator Control in Functional Block Diagram
Download Free HMI software – CODESYS
How to import GSD files into the TIA Portal? – Siemens PLC
PLC Valve Control Ladder Logic Programming
Basics of Permissive and Interlock Circuits
Examples of PLC Programming using Boolean Functions

Keep Learning

PLC Programming for Train Detection and Gate Operation

PLC Programming for Train Detection and Gate Operation

PLC FBD Programming for Burglar Alarm Security System

PLC FBD Programming for Burglar Alarm Security System

Classification of Fuses

Step-by-Step Guide to Choose Right Fuse for a Panel

Demo of a SCADA Software – Level Control System

Simple PLC example Hardware configurations

Muting Functions of Safety Control Circuits – PLC Example

PLC Best Practices

#1 PLC Best Practices – Split PLC Code into Modules

Advantages of Redundant System

Redundant Automation Systems – Need and Advantages

PC-Based Motion Controller

Various Types of Delta PLC used in Industrial Automation

Learn More

Alternator Objective Questions and Answers

125+ Alternator Objective Questions and Answers

Digital Electronics MCQ

Digital Integrated Circuits Objective Questions – Part 2

Bubbler Liquid Level Transmitter Calculation

Bubbler Liquid Level Transmitter Calculation

Nonlinear Control Systems

Stability Analysis by Describing Functions

Guided Wave Radar Questions and Answers

Guided Wave Radar Questions and Answers

DP Transmitter Block and Bleed Valve

DP Transmitter Block and Bleed Valves

Communicate with Excel from Intouch SCADA

How to Communicate with Excel from Intouch SCADA?

PLC IO Examples

Quiz: Identifying I/O Examples in PLC Systems

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?