# Redundancy configuration for Siemens 400 PLC

**URL:** <https://forum.inductiveautomation.com/t/redundancy-configuration-for-siemens-400-plc/80119>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [October 6, 2023, 6:11am UTC](https://forum.inductiveautomation.com/t/redundancy-configuration-for-siemens-400-plc/80119 "2023-10-06T06:11:30Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Khurram\_sarfraz](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@Khurram\_sarfraz](https://forum.inductiveautomation.com/u/Khurram_sarfraz)\
**Post date:** [February 10, 2024, 12:33pm UTC](https://forum.inductiveautomation.com/t/redundancy-configuration-for-siemens-400-plc/80119/11 "2024-02-10T12:33:46Z")

</div>

I am using the same method as you have described where the UDT parameter name is set by using system.tag.writeBlocking script

I want to changeover from PLC1 to PLC2 when PLC1 is no longer connected.

I have Connected status from PLC1 (S7-400H) as integer and im using it in IF ELSE script to changeover to PLC2 (S7-400H) when PLC1 is no longer connected.

This script doesn't work for me, I have also tested creating Memory integer tag instead of connected status tag and simulated 0 and 1 but that doesn't work too (parameter name doesn't shift over to the other PLC), the ELSE statement works but the IF does not !!

 ![script question-](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/aca612fa5885ed015bce3cb757cf992c68da5de4.jpeg)

Can someone Please help!

---

_[View the full topic](https://forum.inductiveautomation.com/t/redundancy-configuration-for-siemens-400-plc/80119)._
