Skip to main content

Tab: Redundancy Settings: General

Important

In the device editor, on the Communication Settings tab, configure the communication settings for PLC 1. Next, in the Redundancy Configuration object, on the Redundancy Status tab, configure the communication settings for PLC 2 (standby PLC). After that, in the Redundancy Configuration object, on the Redundancy SettingsGeneral tab, configure the redundancy link.

Read

Reads into the dialog the current settings of the redundancy link for PLC 1

Write

Transfers the available settings of the redundancy link on both devices

Function: The tab is used to configure the synchronous task with a timeout, the runtime system of the standby PLC, and the redundancy link.

Application

Redundancy task name

Name of the task that is synchronized between both devices

Only this one task is synchronized.

Example: MainTask

Note

The task name is also entered in the RTS configuration file when you click the Write button. Alternatively, you could also manually edit the file.

Timeout (ms)

Time span to wait for the response from the active PLC

After that, the passive PLC switches to standalone mode. In this case, the task execution is delayed by this time span.

Example: 50

Important

Recommendation: Set the value higher than the maximum task jitter time plus the maximum transmission time for redundancy messages.

Increase this setting in step-by-step when you encounter synchronization problems.

Note

The setting is also stored in the configuration file (StandbyWaitTime) of the runtime system.

Note

When you deploy the CIFX-DP adapter, set the timeout to 100 ms in order to remain in sync in case of a reset.

You can optimize the timeout value:

  1. Estimate and enter the value

  2. If you experience synchronization problems, then gradually increase the value until synchronization is achieved as desired.

  3. You can use the provided library functions to read the actual measured communication times. This information helps to assess how far the set time limit can be reduced without affecting stability.

For more information, see also: Synchronization of Runtime Systems

Synchronisation timeout (ms)

Time span to wait during a synchronization.

After this period of time, the standby PLC switches to standalone mode.

You can set the value optimally if you first determine the required synchronization time after getting a system trace from the PLC. See the Record the needed sync time in system trace option below.

Example: 100

If the synchronization takes longer than the timeout is allowed in Timeout (ms), and the jitter of PLC 1 is acceptable, then you can use this setting. Then the time span until the response has to be received is extended by this value.

Tip

Use the same value as in the Timeout (ms) setting.

Tip

Increase this setting in step-by-step when you encounter these kinds of synchronization problems.

The logger message Synchronization terminated after x ms because of SyncWaitTime refers to this situation.

Note

A redundant system switches to the synchronization phase for the start of the redundant PLC, a download, an online change, and the synchronization by means of user commands. During the synchronization phase, the task cycle time of the active PLC can be longer.

You can optimize the timeout value:

  1. Estimate and enter the value

  2. Increase this setting in step-by-step when you encounter synchronization problems.

    The logger message Synchronization terminated after x ms because of SyncWaitTime refers to this situation.

    If synchronization problems are reported via error messages, then gradually increase the value until synchronization is achieved.

  3. The time will be displayed after successful synchronization. Log message: Synchronization occurs after x ms

  4. Use library functions to read the actual measured values. They provide information on how much the value can be reduced.

For more information, see also: Synchronization of Runtime Systems

Bootup timeout (ms)

Duration (in ms)

5000 (default)

Determines how long the EtherCAT Master waits for the initialization of all connected EtherCAT slaves. Within this time period, the slaves must complete their boot and configuration phase and be ready for operation. If this time is exceeded, then the master reports a timeout at system startup and sets the bus to an error state.

Runtime Settings

Setting the CmpRedundancy runtime system component

Tip

When you click the Write button, the values set here in the development system are transferred to the runtime system.

Auto sync

standard icon: Synchronization of the data on the second PLC when the connection is restored after a connection is interrupted

Data sync always

standard icon: Synchronization of data one time at initialization and in each task cycle after that

Debug messages

standard icon: Output of additional messages in the log file

Record the needed sync time in system trace

standard icon: A system trace is generated in the runtime system, which can be loaded into the CODESYS project. You can use the system trace to determine the value currently required for synchronization and therefore optimize the value for the Synchronization timeout (ms).

For more information, see the following: Synchronizing Redundant Data

Note

This option, which can be enabled here in the dialog, is entered in CODESYSControl.cfg under the [CmpRedundancy] section as the setting EnableSyncTimeTrace. The default value is 0.

Redundancy Link

Configures the redundancy link between the two PLCs. The two devices exchange their status and process data via this link, enabling them to operate synchronously and trigger status changes.

Tip

Whenever possible, use a separate port especially for this communication only.

Table 5. Redundancy Link

IP address PLC 1

Example: 192.168.101.176

IP address PLC 2

Example: 192.168.101.87

Browse

Clicking the button will scan the network adapter. Then the Select Network Adapter dialog opens with the search results.

The dialog shows all available network adapters. The IP address, subnet mask, default gateway, and MAC address are displayed for each adapter. Select the desired IP address.

For more information, see the following: EtherNet Adapter – General

Port

Defines the IP port for the link between both devices

The TCP port number is the UDP port number + 1.

Example: 1205; then Port 1205 is used for UDP and 1206 is used for TCP



Use two redundant links

standard icon: An additional network connection between both devices

Use two redundant links

Requirement: The Use two redundant links option is selected.

In the case that the first network connection fails, the second one can be used.

Important

You can get information about the current connections using the GetConnectionInfo function from the CmpRedundancyConnection library.

When two redundant links are used, the performance is worse.

If one of the two links is disconnected, then this has no effect on the redundancy status.

Table 6. 1st Redundancy Link

IP address PLC 1

Example: 192.168.101.176

IP address PLC 2

Example: 192.168.101.87

Browse

Clicking the button will scan the network adapter. Then the Select Network Adapter dialog opens with the search results.

The dialog shows all available network adapters. The IP address, subnet mask, default gateway, and MAC address are displayed for each adapter. Select the desired IP address.

For more information, see the following: EtherNet Adapter – General

Port

Defines the IP port for the first link between both devices

The TCP port number is the UDP port number + 1.

Example: 1205; then Port 1205 is used for UDP and 1206 is used for TCP



Table 7. 2nd Redundancy Link

IP address PLC 1

Example: 192.168.101.178

IP address PLC 2

Example: 192.168.101.21

Browse

Clicking the button will scan the network adapter. Then the Select Network Adapter dialog opens with the search results.

The dialog shows all available network adapters. The IP address, subnet mask, default gateway, and MAC address are displayed for each adapter. Select the desired IP address.

For more information, see the following: EtherNet Adapter – General

Port

Defines the IP port for the second link between both devices

The TCP port number is the UDP port number + 1.

Example: 1207; then Port 1207 is used for UDP and 1208 is used for TCP