Skip to main content

Data Type: RedundancyState

The Redundancy library provides the RedundancyState structure with the components describes below.

  • By calling GetRedundancyState(ADR(<RedundancyState name>));, the state of the redundancy system is read and stored. As a result, you get programmatic access to the redundancy state and can display it, for example in a visualization.

  • The redundancy state is also automatically displayed in the Redundancy Configuration editor, on the Redundancy State tab. There in the system graphic in the lower right corner of the respective PLC, the redundancy state is displayed symbolically by circle symbols. Moreover, the state is output as text below in the Redundancy State field. In this way, you can monitor the state of the redundancy system.

The following table compares these two options.

Circle Symbol

Output text under Redundancy State

STRUCT RedundancyState

Description

RS_START

Initial state

Tries (when configured correctly) to synchronize with the other PLC

If not correctly configured, then the state is set to RS_SIMULATION_START.

RS_SYNCHRO

Boot application downloaded, data synchronized, and task started

Fieldbus deactivated

rdncy_icon_state_active.png

Enabled

RS_CYCLE_ACTIVE

Works in redundant synchronized mode as active PLC

Fieldbus activated

rdncy_icon_state_passive.png

Passive

RS_CYCLE_STANDBY

Works in redundant synchronized mode as standby PLC

Fieldbus deactivated

rdncy_icon_state_standalone.png

Standalone

RS_CYCLE_STANDALONE

Works in standalone mode, not synchronized with the other PLC

Fieldbus activated

rdncy_icon_state_error.png

Error

RS_CYCLE_ERROR

Fieldbus error, occurred in redundant synchronized mode as active PLC

Fieldbus deactivated

rdncy_icon_state_simulation.png

Simulation

RS_SIMULATION

If not configured

Works in standalone mode, not synchronized with the other PLC

Fieldbus deactivated

RS_BOOTUP_ERROR

If in state RS_CYCLE_ACTIVE

The other PLC will become active because the PROFIBUS displays a problem with the active PLC (us).

Fieldbus deactivated

RS_SHUTDOWN_ACTIVE

Ends the runtime systems in state RS_CYCLE_STANDALONE

Tip

Leave the fieldbus activated on download.

RS_SHUTDOWN_STANDBY

Ends the runtime systems in state RS_CYCLE_STANDBY

Tip

Deactivate the fieldbus on download.

RS_SYNCHRO_ERROR

Error occurred during the state RS_SYNCHRO

Fieldbus deactivated

RS_SIMULATION_START

With setting Simulation=1

Works in standalone mode after the start, not synchronized with the other PLC

Fieldbus deactivated

Note

A synchronization can be triggered later with library functions.

RS_NO_LICENCE

If no license is installed and the demo time has expired

No operation

rdncy_icon_state_unknown.png

Unknown

No assignment

Indicates that the connection to the PLC is not online