Skip to main content

Tab: Redundancy Settings: Visualization

The tab contains the configuration for the connection from one ore more CODESYS WebVisu clients to a redundant control system with two PLCs.

If at runtime the active PLC fails, then the execution of the control application is taken over by the PLC previously in standby mode. The switching process takes place smoothly and therefore almost unnoticed by the connected visualization clients.

rdncy_img_redundancy_system_with_webvisu_next.png

Tip

Similar configurations are also possible based on a CODESYS HMI when these are run redundantly.

Activate

standard icon: Enables a redundant connection between the visualization clients and the web servers of the synchronous PLCs for a redundant control system

The task configuration is extended by the IEC task VISU_REDUNDANCY_TASK. The VisuRedundancy library is integrated in the Library Manager.

The Switchover references input field is available for the communication settings.

Table 11. Switchover references

Use redundancy link configuration

standard icon: The communication settings which have been configured on the Redundancy Link tab are used. This kind of configuration is possible when the web clients access over the same network interface as the redundancy link.

_cds_icon_option_deactivated.png: The address settings of the following (now enabled) input fields are used for the connections of the web clients.

IP address:Port used by clients on PLC 1

Input field for the IP address and port for the PLC 1 client

Click Browse to select one of the available network addresses of PLC 1. The network connection over which the web visualization accesses should be selected here.

IP address:Port used by clients on PLC 2

Input field for the IP address and port for the PLC 2 client

Click Browse to select one of the available network addresses of PLC 2. The network connection over which the web visualization accesses should be selected here.



Table 12. Security

Secure communication

standard icon: The Ethernet connections from the visualization client to PLC 1 and PLC 2 are encrypted with TLS.

Generate certificates

Opens the Security Screen editor

There you can create and manage certificates.

View certificates

Opens the View Certificate editor

There you get information about the certificates installed on the respective PLC.



Table 13. Timeout

Recommendation: As long as there are no synchronization problems between the redundant devices for the visualization, the default values of the timeouts should not be changed. If problems occur, then the communication line may be too slow. Then try to improve the stability by increasing the values for the timeouts.

The visualization redundancy is based on a network connection which is used to exchange data between the active PLC and the standby PLC. This kind of data can be notifications about the creation of a new web visualization client or the change of a visualization within the web visualization. To prevent communication from being blocked in the event of communication problems, the following timeouts can be configured:

Receiving timeout (ms)

Time after which the receiving of data is canceled. When this time is exceeded, transmitted data (such as a notification about the creation of a new Webvisu client) can be discarded.

Default: 5000

Transmission timeout (ms)

Time after which the sending of data is canceled. When this time is exceeded, transmitted data (such as a notification about the creation of a new Webvisu client) is discarded.

Default: 10000



Options

Seamless download

Can be enabled for HMI devices

standard icon: Also after a download, the selected visualization and frame combination remain in the web visualization clients. As a consequence, the process does not start from the start visualization.

Advanced

standard icon: Enables the Advanced settings input field

Note

You should have to change the following advanced settings only in the case of special demands.

Table 14. Advanced Settings

Command repetitions

Number of repetitions of a command in case of an error

The default value is 3. It is advisable to use a value >= 2.

Heartbeat time (ms)

Time to determine how often the "Heartbeat" command, which keeps the connection active, is transmitted

0 = The command is not used.

If no data is transmitted on the Ethernet connection, then the connection terminates and the first next command returns an error. To prevent this situation, a "Heartbeat" command is sent. The resource usage of this command is extremely low.

Note

Use this function only in the case of a high error rate.

Connection timeout: Line break detected (ms)

Time after which a connection failure is considered to be a "line break"

The standby device is unable to detect whether the absence of data is caused by missing commands or a problem with the connection. Therefore, it is necessary to reactivate the connections and to reset the connection if possible.

The default value is 3000. It is advisable to use a value >= 2000.

Client connection setup timeout (ms)

Latency for the active connection

This is the time spent to determine whether or not the connection is active.

The default value is 2000. A value in the range of 500–3000 is usually okay.

WebVisu connection timeout (ms)

Timeout for web visualization clients in order to determine the switchover to another PLC

The value represents a balance between the stability and the time until the connection problem is detected.

This time is used by the clients which are connected to the active device to detect when the device is no longer active. If no data is received beyond this time, then the switchover to the other device is performed. The length of this time determines how fast the switchover is: a value which is too low can cause unnecessary switchover attempts in the case of a bad connection. A value which is too high delays the detection of a physical real device failure on the client side.

The default value is 2000.