You are on page 1of 31

Connection of redundant

I/O devices to S7-1500

LRedIO Library
https://support.industry.siemens.com/cs/ww/en/view/109767576
Siemens
Industry
Online
Support
Legal information

Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG ("Siemens"). They are
non-binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.

Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2019 All rights reserved

foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.

Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.

Security information
Siemens provides products and solutions with Industrial Security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 2
Table of contents

Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Task ...................................................................................................... 4
1.2 Solution................................................................................................. 4
1.3 Principle of operation............................................................................ 6
1.3.1 The LRedIO library ............................................................................... 6
1.4 Components used ................................................................................ 9
2 Engineering ...................................................................................................... 10
2.1 Hardware setup .................................................................................. 10
2.1.1 Digital input ......................................................................................... 10
2.1.2 Digital output ...................................................................................... 10
2.1.3 Analog input ....................................................................................... 11
2.1.4 Analog output ..................................................................................... 11
2.2 Configuration ...................................................................................... 12
2.2.1 TIA Portal project hardware overview ................................................ 12
2.2.2 Assigning parameters to the modules ................................................ 13
2.2.3 TIA Portal project block integration .................................................... 14
2.3 Interface description ........................................................................... 17
2.3.1 LRedIO_RedDI block ......................................................................... 17
2.3.2 LRedIO_RedDQ block........................................................................ 19
2.3.3 LRedIO_RedAI block.......................................................................... 20
© Siemens AG 2019 All rights reserved

2.3.4 LRedIO_RedAQ block ........................................................................ 22


2.4 Operation ............................................................................................ 24
2.5 Error handling ..................................................................................... 24
2.5.1 Status and error messages LRedIO_RedDI ...................................... 24
2.5.2 Status and error messages LRedIO_RedDQ .................................... 24
2.5.3 Status and error messages LRedIO_RedAI....................................... 25
2.5.4 Status and error messages LRedIO_RedAQ ..................................... 26
2.5.5 Responding to faults ........................................................................... 26
3 Useful information ........................................................................................... 27
3.1 Details on functionality ....................................................................... 27
3.1.1 Reintegration of digital output ............................................................ 27
3.1.2 Reintegration of analog input ............................................................. 27
3.1.3 Reintegration of analog output ........................................................... 28
4 Appendix .......................................................................................................... 30
4.1 Service und Support ........................................................................... 30
4.2 Application support ............................................................................. 31
4.3 Links and Literature ............................................................................ 31
4.4 Change documentation ...................................................................... 31

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 3
1 Introduction

1 Introduction
1.1 Task
The new generation of fault-tolerant S7-1500R/H controllers integrates extensive
procedures to achieve system redundancy at the control level. For some
applications, however, high availability at field level or module level is also
required. The LRedIO library was created for this purpose.
The blocks of the LRedIO library coordinate the redundant signal processing in the
CPU on the software side. They must be called in the user program, and the
parameters must be assigned depending on the input and output modules used.

1.2 Solution
Diagram
The following diagram shows the most important components of the solution:
Figure 1-1

S7 – 1500H S7 – 1500H
LRedIO LRedIO
© Siemens AG 2019 All rights reserved

Synchronization

PN (MRP)

ET 200SP Station 1 ET 200SP Station 2

Digital
AI – AI –
Sensor/
signal signal
Switch
converter converter
Analog
Contactor Actuator

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 4
1 Introduction

Setup
The layout shown in figure 1 maps the basic structure of redundant I/O devices on
an S7-1500 using the example of an S7-1500H system. The ET 200SP stations
have the same structure, but this is not necessarily mandatory. Only the redundant
modules must be of the same type (same MLFB and firmware). The two redundant
ET 200SP stations are handled via the function blocks from the LRedIO library,
which are called cyclically in the user program.

Benefits
The solution presented in this document offers you the following advantages:
• Connection of I/O devices in redundancy mode
• Pre-configured blocks
• Easy handling

Required knowledge
The following knowledge is required:
• Basic information on handling TIA Portal
• Basic information on handling SIMATIC S7-1500
• Basics in handling redundant S7-1500 R/H systems
• Basic information on handling ET 200
© Siemens AG 2019 All rights reserved

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 5
1 Introduction

1.3 Principle of operation


1.3.1 The LRedIO library

Overview
The LRedIO library supplies the following function modules:
Table 1-1

Function block Function

LRedIO_RedDI Redundancy function for two digital inputs

LRedIO_RedDQ Redundancy function for two digital outputs

LRedIO_RedAI Redundancy function for two analog inputs

LRedIO_RedAQ Redundancy function for two analog outputs


Figure 1-2
© Siemens AG 2019 All rights reserved

Module
Module

Figure 1-2 shows the structure in schematic form down to the field level. There are
two IO systems in this case which creates a structural redundancy. In Figure 1-3
the connection options are shown in general.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 6
1 Introduction

Figure 1-3

Field level case 1 Field level case 2

IO – Station 1 IO – Station 2 IO – Station 1 IO – Station 2

Module 2

Module 2
Module 1

Module 1
Sensor / Sensor 1/ Sensor 2/
Actuator Actuator 1 Actuator 2

The implementation of the general hardware configurations looks as follows in the


application example:
Figure 1-4
© Siemens AG 2019 All rights reserved

S7 – 1500H S7 – 1500H
LRedIO LRedIO

Synchronization

PN (MRP)

ET 200SP Station 1 ET 200SP Station 2

Digital
AI – AI –
Sensor/
signal signal
Switch
converter converter
Analog
Contactor Actuator

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 7
1 Introduction

The blocks of the LRedIO library coordinate the redundant ET 200SP stations.
Figure 1-4 shows the structure of the application example. Different sensors and
actuators with different wiring are connected. The value status of each redundantly
switched channel is evaluated to determine whether the supplied values are valid.
The value status is available as of Standard (ST) module class. The flowchart from
Figure 1-5 shows a general sequence of functions of the Red_IO blocks.

Flow chart
Figure 1-5

Start

Parameter
assignment OK / No
Analysis of input
values OK

Yes

Value status 1 No
OK
© Siemens AG 2019 All rights reserved

Yes

No
Value status 2 Value status 2
OK OK

No
Yes Yes

Channel
Redundant two-
Single-channel passivated / last
channel
operation valid value /
operation substitute value

End

First, the input parameters are checked for the correct value ranges to prevent the
block from starting with invalid values. The channels are then checked for valid
value status, and the operation or provision of the process value is derived.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 8
1 Introduction

1.4 Components used


The following hardware and software components were used to create this
application example:
Table 1-2
Component Quantity Article number Note
S7-1517H-3 PN 2 6ES7517-3HP00-0AB0
Synchronization module 4 6ES7960-1CB00-0AA5
Synchronization lines 2 6ES7960-1CB00-0AA5
24 MB memory card 2 6ES7954-8LF00-0AA0
ET 200SP IM 155-6 PN HF 2 6ES7155-6AU01-0CN0 As of firmware
version V4.2
ET 200SP DI 8x24VDC HF 2 6ES7131-6BF00-0CA0 For channel-specific
circuits you have to
ET 200SP DQ 2 6ES7135-6HB00-0CA1
8x24VDC/0.5A HF use high feature
modules.
ET 200SP AI 2xU/I 2-,4- 2 6ES7134-6HB00-0CA1
wire HF
ET 200SP AI 4xRTD/TC 2, 2 6ES7134-6JD00-0CA1
3, 4-wire HF
ET 200SP AQ 2xU/I HF 2 6ES7135-6HB00-0CA1
ET 200SP Server module 2 6ES7193-6PA00-0AA0
© Siemens AG 2019 All rights reserved

TIA Portal 1 As of V15.1


1N4003-E3/54 Diode, 200V 4
/ 1A, DO-204AL 2-Pin

Note Other similar products not in the above list can be used. Changes in the example
code (such as other addresses) may be necessary.

Note The application example shown was implemented with an S7-1517H system, but
the blocks are standard code and work with both an S7-1515/1513R system and
standard S7-1500 CPUs. The family of I/O devices is defined here with the
ET 200SP as well; however, the ET 200MP also provides a value status, which
means that modules of this family can also be used.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 9
2 Engineering

2 Engineering
2.1 Hardware setup
2.1.1 Digital input

Figure 2-1
© Siemens AG 2019 All rights reserved

In the application example, a floating switch S1 is connected to the digital input. To


diagnose a wire break, a resistor (R1) is installed parallel to the switch. Otherwise,
the value status of the channel is always invalid. According to the manual, this
resistor (R1) must be between 25 kΩ and 45 kΩ. If another digital sensor is
connected, its resistance must also be between 25 kΩ and 45 kΩ .

2.1.2 Digital output

Figure 2-2

A contactor K1 is redundantly connected to two channels at the digital outputs. In


this type of interconnection, protective diodes (D1 and D2) must be fitted to protect
the outputs from supply currents. Suitable diodes can be found in Table 1-2.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 10
2 Engineering

2.1.3 Analog input

Figure 2-3
ET 200SP ET 200SP
Station 1 Station 2

T1 T2
temperature temperature
sensor sensor
W1 measuring W2 measuring
converter converter

Two temperature sensors T1 and T2 are connected to two measuring converters


W1 and W2 at the analog inputs. The analog values of the measuring converters
are monitored via the associated LRedIO_RedAI block.
© Siemens AG 2019 All rights reserved

2.1.4 Analog output

An analog control valve with a control range of 4 to 20 mA is connected to the


analog outputs. For this purpose, protective diodes (D1 and D2) must be fitted to
protect the outputs from supply currents. Suitable diodes can be found in Table 1-
2. The LRedIO_RedAQ block controls the valve.
Figure 2-4
ET 200SP ET 200SP
Station 1 Station 2

D1 D2

Analog control
valve 4 – 20 mA

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 11
2 Engineering

2.2 Configuration
2.2.1 TIA Portal project hardware overview

Figure 2-5

The hardware structure of the project is shown in Figure 2-5.


© Siemens AG 2019 All rights reserved

It consists of an S7-1500H system and, for this example, two identical ET 200SP
stations. Their design may differ from that described.
The stations are structured as follows:
Figure 2-6

The value status must be activated in the individual modules. The option for this
can be found in the module parameter settings of the individual modules.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 12
2 Engineering

2.2.2 Assigning parameters to the modules

The hardware parameters of the modules must be assigned as follows:


Figure 2-7

For this purpose, the value status option must be activated in the module
parameters. These value statuses now appear as inputs in the IO tags of the module.
Figure 2-8
© Siemens AG 2019 All rights reserved

Note All diagnostics can be activated for digital inputs, analog inputs and analog
outputs. For digital outputs, the "wire break" diagnostics must be deactivated.
However, this error is still detected by the block but it does not generate an entry
in the diagnostic buffer and the module does not output a warning by the LED
flashing in red.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 13
2 Engineering

2.2.3 TIA Portal project block integration

To integrate the blocks into the user program, first open the global library LRedIO.
Copy all blocks from the library to the Program Blocks folder and drag them into your
user program.
Figure 2-9
© Siemens AG 2019 All rights reserved

Figure 2-10

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 14
2 Engineering

Now, the previously activated value status and the inputs or outputs that are to be
made redundant must be connected at the blocks. Here a separate block must be
used for each channel pair.
Interconnection of digital input:
Figure 2-11
© Siemens AG 2019 All rights reserved

Interconnection of digital output:


Figure 2-12

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 15
2 Engineering

Interconnection of analog input:


Figure 2-13
© Siemens AG 2019 All rights reserved

Interconnection of analog output:


Figure 2-14

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 16
2 Engineering

2.3 Interface description


2.3.1 LRedIO_RedDI block

Figure 2-15
© Siemens AG 2019 All rights reserved

Table 2-1: Input parameters of LRedIO_RedDI


Name Data Description
type
redInput1 Bool Channel 1 of the module that is operating redundantly
redInput2 Bool Channel 2 of the module that is operating redundantly
valueStateCh1 Bool Value status of the first channel of the redundantly connected
module (see instructions for setting up diagnostics, etc. in the
manual of the module)
valueStateCh2 Bool Value status of the second channel of the redundantly
connected module (see instructions for setting up diagnostics,
etc. in the manual of the module)
discrepancyTime Time Discrepancy time between the inputs - time that the outputs
may be different
min. 20 ms max. 500 ms
useSubstitutionValue Int Use substitute value
0 = No channels passivated
1 = Substitute value
2 = Last valid value
substitutionValue Bool Substitute value to be output if a discrepancy error occurs or
both value statuses of the channels fail.
ack Bool Acknowledgment and reintegration after startup or invalid
value status

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 17
2 Engineering

Table 2-2: Output parameters of LRedIO_RedDI


Name Data type Description
output Bool Provision of signal for process
warning Bool Warning if the value of a channel is invalid
Error Bool Warning if values of both channels are invalid or a
parameterization error is present
ackReq Bool Acknowledgment request
status Word Status of the block
© Siemens AG 2019 All rights reserved

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 18
2 Engineering

2.3.2 LRedIO_RedDQ block

Figure 2-16

Table 2-3: Input parameters of LRedIO_RedDQ


Name Data Description
type
signalInput Bool Signal to be output redundantly
© Siemens AG 2019 All rights reserved

valuestateCh1 Bool Value status of the first channel of the redundantly


connected module (see the instructions for setting up
diagnostics, etc. in the manual of the module)
valuestateCh2 Bool Value status of the second channel of the redundantly
connected module (see the instructions for setting up
diagnostics, etc. in the manual of the module)
twoActuators Bool Information on whether one or two actuators are connected
to the outputs
false = one actuator
true = two actuators
ack Bool Acknowledgment and reintegration after startup or invalid
value status

Table 2-4: Output parameters of LRedIO_RedDQ


Name Data Description
type
redOutput1 Bool Signal output 1 of the signal that is to be redundant
redOutput2 Bool Signal output 2 of the signal that is to be redundant
warning Bool Warning if a signal is invalid
Error Bool Warning if both signals are invalid
ackReq Bool Acknowledgment request
status Word Status of the block

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 19
2 Engineering

2.3.3 LRedIO_RedAI block

Figure 2-17
© Siemens AG 2019 All rights reserved

Table 2-5: Input parameters of the LRedIO_RedAI


Name Data Description
type
redInput1 Int Channel 1 of the module that is operating redundantly
redInput2 Int Channel 2 of the module that is operating redundantly
valueStateCh1 Bool Value status of the first channel of the redundantly
connected module (see instructions for setting up
diagnostics, etc. in the manual of the module)
valueStateCh2 Bool Value status of the second channel of the redundantly
connected module (see instructions for setting up
diagnostics, etc. in the manual of the module)

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 20
2 Engineering

Name Data Description


type
outputValue USInt Selection of the output value
0 = Mean value
1 = Smaller value
2 = Greater value
hysteresis Int Difference that the inputs may retain after a discrepancy
error before a reintegration can be performed; specified
as a percentage of the discrepancy value (0 … 100).
discrepancy Real Discrepancy value; difference that the inputs may have
to each other. Number in percent (0.0 ... 100.0) based on
27468
discrepancyTime Time Time which the outputs may be outside the discrepancy
range (20 ms to 100 s)
endofMeMeasuringRange DInt Full-scale value of measuring range
Default value
Calculation of the discrepancy value
substitutionValue DInt Substitute value if discrepancy error or all-channel error
is present
useSubstitutionValue USInt Use substitute value
0 = Passivate channels
1 = Substitute value
2 = Last valid value
© Siemens AG 2019 All rights reserved

3 = Apply selection of outputValue


ack Bool Acknowledgment and reintegration after startup or invalid
value status

Table 2-6: Output parameters of the LRedIO_RedAI


Name Data Description
type
warning Bool Warning if the value of a channel is invalid
Error Bool Warning if values of both channels are invalid or a
parameterization error is present
ackReq Bool Acknowledgment request
status Word Status of the block
output DInt Provision of signal for process

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 21
2 Engineering

2.3.4 LRedIO_RedAQ block

Figure 2-18
© Siemens AG 2019 All rights reserved

Table 2-7: Input parameters of the LRedIO_RedAQ


Name Data type Description
signalInput DInt Signal to be output redundantly
valueStateCh1 Bool Value status of the first channel of the redundantly
connected module (see the instructions for setting up
diagnostics, etc. in the manual of the module)
valueStateCh2 Bool Value status of the second channel of the redundantly
connected module (see the instructions for setting up
diagnostics, etc. in the manual of the module)
subValue Int Substitute value if discrepancy error or all-channel error is
present
useSubValue Bool Use substitute value
True = Yes
False = No
Substitute value is used for invalid values of both channels
twoActuators Bool Information on whether one or two actuators are connected
to the outputs
(false = one actuator; true = two actuators)

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 22
2 Engineering

Name Data type Description


outputType Int Hardware configuration of the output channels (0 - 5)
0: 0 mA … 20 mA
1: 4 mA … 20 mA
2: +- 20 mA
3: 0 V … 10 V
4: 1 V… 5 V
5: ± 5 V / ± 10 V
reintegrationTime Time Time after which the adjustment1 of the channels must be
completed in case of a one-sided error.
ack Bool Acknowledgment and reintegration after startup or invalid
value status

Table 2-8: Output parameters of the LRedIO_RedAQ


Name Data type Description
redOutput1 Int Signal output 1 of the signal that is to be redundant
redOutput2 Int Signal output 2 of the signal that is to be redundant
warning Bool Warning if a signal is invalid
Error Bool Warning if both signals are invalid or a parameterization
error is present
ackReq Bool Acknowledgment request
© Siemens AG 2019 All rights reserved

status Word Status of the block

1 Adjustment process: A special adjustment process is carried out to prevent more than 100% current
being applied to the actuator at the analog outputs after reintegration. For this purpose, the outputs are
ramped up or down gradually so that each output supplies 50% of the required current in normal operation
(redundant operation). For more information on how the adjustment process works, refer to the section
3.1.3.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 23
2 Engineering

2.4 Operation
After startup of the CPU, an initial acknowledgment at the "ack" input must be
made for the first start of the blocks.

2.5 Error handling


2.5.1 Status and error messages LRedIO_RedDI

Table 2-9
Status Description

16#0000 No error

Discrepancy error
16#8400
Timeout of the set discrepancy time, output passivated2

Discrepancy error
16#8401
Timeout of the set discrepancy time, substitute value at output

Discrepancy error
16#8402
Timeout of the set discrepancy time, last valid value

16#9001 Only channel 1 delivers valid value


© Siemens AG 2019 All rights reserved

16#9002 Only channel 2 delivers valid value

16#9003 Both channels passivated

16#8205 Incorrect parameter at "useSubstitutionValue" (0 … 2)

16#8206 Incorrect parameter at "discrepancyTime" (20 … 500 ms)

2.5.2 Status and error messages LRedIO_RedDQ

Table 2-10
Status Description

16#0000 No error

16#9001 Only channel 1 delivers valid value

16#9002 Only channel 2 delivers valid value

16#9006 Reintegration3 of channel 1

16#9005 Reintegration of channel 2

16#9003 Both channels passivated

2 Passivation: Channel is switched off


3 Reintegration: Reintegration that has to be triggered by the user

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 24
2 Engineering

2.5.3 Status and error messages LRedIO_RedAI

Table 2-11
Status Description

16#0001 No error, mean value at output

16#0002 No error, smaller input value at output

16#0003 No error, larger input value at output

16#8400 Discrepancy error of passivated channel

16#8401 Discrepancy error substitute value

16#8402 Discrepancy error last valid value

16#8403 Discrepancy error mean value

16#8404 Discrepancy error smaller input value

16#8405 Discrepancy error larger input value

16#9001 Only channel 1 delivers valid value

16#9002 Only channel 2 delivers valid value

16#9003 Both channels passivated


© Siemens AG 2019 All rights reserved

16#8200 Wrong value connected to "outputValue" input (0 … 2)

16#8201 Wrong value connected to "discrepancy" input (0.0 … 100.0)

16#8202 Wrong value connected to "hysteresis" input (0 … 100)

16#8203 Wrong value connected to "endOfMeasuringRange" input (0 … 32768)

Wrong value connected to "substitutionValue" input


16#8204
(-16#FFFF ... 16#FFFF)

16#8205 Wrong value connected to "useSubstitutionValue" input (0 … 2)

16#8206 Wrong value connected to "discrepancyTime" input (20 ms … 100 s)

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 25
2 Engineering

2.5.4 Status and error messages LRedIO_RedAQ

Table 2-12
Status Description

16#0000 No error

16#9001 Only channel 1 delivers valid value

16#9002 Only channel 2 delivers valid value

16#9003 Both channels passivated

16#9004 Output supplies substitute value

16#9005 Ramp down channel 1 to 50% / Ramp up channel 2 to 50%

16#9006 Ramp down channel 2 to 50% / Ramp up channel 1 to 50%

16#8200 Wrong value connected to "outputType" input (0 … 5)

16#8407 Overflow / underflow

2.5.5 Responding to faults

Table 2-13
© Siemens AG 2019 All rights reserved

Error Reaction

The valid channel takes over and ensures trouble-free


operation. The output "warning" becomes true and the
Failure of one channel
corresponding status (16#9001, 16#9002) is output at the
detected
block. If the error is no longer detected, "ackReq" becomes
true and the error can be acknowledged.4

Block cannot be started.


Invalid parameter value
connected Output "warning" and "error" become true and the associated
status (16#82XX) is output.

Both channels are passivated. The output "warning", "error"


Failure of both becomes true and the associated status (16#9003) is output.
channels detected The process is available. If the error is no longer detected,
"ackReq" becomes true and the error can be acknowledged.4

The output is either passivated, a substitute value is output or


Discrepancy errors at
the last valid value is still output, depending on the parameter
the inputs
assignment "useSubstitutionValue".

4With the block LRedIO_RedDQ, "ackReq" is already true when the error occurs. Otherwise, a failed
channel could not be reintegrated during operation.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 26
3 Useful information

3 Useful information

3.1 Details on functionality


3.1.1 Reintegration of digital output

If an actuator in the field level is connected to two digital outputs, the reintegration
procedure of a faulty signal differs. If a positive edge is detected at the "ack" input,
the output switches on again, regardless of this value status is present or not. If the
value status follows the acknowledgment signal within two seconds, the device
switches to normal operation (redundant operation). If no positive value status has
been detected at the block after two seconds, the block switches back to single-
channel operation.
Figure 3-1
© Siemens AG 2019 All rights reserved

3.1.2 Reintegration of analog input

The "discrepancy" and "discrepancyTime" inputs span a validity range within which
the two values of the input channels may move at the analog input block. If one of
the two channels is outside this validity range for too long, a previously
parameterized reaction is initiated by the block (see section 2.5). To prevent signal
flutter, the user can define a hysteresis range. The signal deviation must return to
this range so that the faulty signal can be reintegrated.

Note For temperature measurements we recommend setting a sufficiently large


discrepancy time.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 27
3 Useful information

Figure 3-2

ChannelChannel
characteristic of analog
characteristic of values
18000 analog values
Signal characteristic 17000
16000
Signal characteristic
Validity
15000 range
14000
Channel 1
13000
Channel 2
12000
Hysteresis
11000
10000
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Time in s
Time in s

3.1.3 Reintegration of analog output

The reintegration of a passivated analog channel depends on the following input


parameters:
© Siemens AG 2019 All rights reserved

- outputType 0 to 2 (current output)


- twoActuators: false
If the parameters of the LRedIO_RedAQ block are assigned accordingly, a control
valve with current level control is connected to two redundantly connected
channels. If this is the case, a special reintegration procedure of the outputs must
be completed to protect the connected actuators from damage.
In case of a single channel error, the second channel becomes the supply channel
and takes over the full load of the actuator. For reintegration, the passivated
channel is now ramped up step-by-step, and the channel with the full load is
ramped down by the same steps. However, the output on both channels never
exceeds 100% of the target value. The steps depend on the call frequency of the
LRedIO_RedAQ block in relation to the OB1 cycle time.
Figure 3-3

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 28
3 Useful information

In Figure 3-3 the trace shows a run from the loss of the value status to the
reintegration of the invalid channel. The call time of the LRedIO_RedAQ block is
approx. 1 ms here, the reintegration time was set to 300 ms.
Figure 3-4

The block calculates considerably fewer adjustment steps if a call time of 10 ms is


set:
Figure 3-5
© Siemens AG 2019 All rights reserved

With a call time of 10 ms, the reintegration time of 300 ms requires approximately
30 steps for the adjustment. The distances between these steps are much larger.

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 29
4 Appendix

4 Appendix
4.1 Service und Support
Industry Online Support
Do you have questions or need assistance?
Siemens Industry Online Support provides round the clock access to our entire
Service and Support know-how and service offers.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs and application examples – all
information is accessible with just a few mouse clicks at:
support.industry.siemens.com

Technical Support
The Technical Support of Siemens Industry provides you with fast and competent
support for all your technical queries with many tailor-made offers
– ranging from basic support to individual support contracts.
You can send inquiries to Technical Support via the web form at:
www.siemens.com/industry/supportrequest
© Siemens AG 2019 All rights reserved

SITRAIN – Training for Industry


With our globally available training courses for Siemens products and solutions, we
support you in step with actual practice, with innovative learning methods and with
a customer-specific training concept.
You can find out more about the training courses offered as well as their locations
and dates at:
www.siemens.com/sitrain

Service offer
Our range of services includes the following:
• Plant data services
• Spare part services
• Repair services
• Field and maintenance services
• Retrofit and modernization services
• Service programs and agreements
You can find detailed information on our range of services in the service catalog at:
support.industry.siemens.com/cs/sc

Industry Online Support app


You will receive optimum support wherever you are with the "Siemens Industry
Online Support" app. The app is available for Apple iOS, Android and Windows
phones:
support.industry.siemens.com/cs/ww/en/sc/2067

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 30
4 Appendix

4.2 Application support


Siemens AG
Digital Factory Division
Factory Automation
Production Machines
DF FA PMA APC
Frauenauracher Str. 80
91056 Erlangen, Germany
mailto: tech.team.motioncontrol@siemens.com

4.3 Links and Literature


Table 4-1
No. Topic
\1\ Siemens Industry Online Support
https://support.industry.siemens.com
\2\ Link to the entry page of the application example
https://support.industry.siemens.com/cs/ww/en/view/109767576
\3\
© Siemens AG 2019 All rights reserved

4.4 Change documentation


Table 4-2
Version Date Change
V1.0 06/2019 First version

Connection redundant IO to S7-1500


Entry-ID: 109767576, V1.0, 06/2019 31

You might also like