How it works
The same project is loaded on two computers and Live is opened on both. Live tells from the Windows computer name whether it is Server 1 or Server 2. The two Live instances watch each other over the redundancy port.
- The master communicates with the PLCs and runs alarms, the archive, tasks, scripts and reports.
- The standby shows the screens with the values of the master. Operators can work on the standby too: tag writes, alarm acknowledgment, shelving and comments are forwarded to the master.
- If the master does not respond, the standby becomes master and starts PLC communication. A failed master that comes back joins as standby; it does not take the master role back by itself.
This is redundancy of two SCADA servers. For switching between two CPUs within one connection, see the backup PLC section on the Siemens S7 page. The two can be used together.
Setting it up in Studio
-
Choose the operating mode
In the project tree, open Device configuration › General and set Operating mode to Redundant server pair.
-
Define the two servers
In the Redundant server pair group, enter the Windows names of the two computers and, if needed, their IP addresses, and choose the default master. The summary below the card shows what is missing and the arbiter status.
-
Give the arbiter addresses
On at least two PLC connections, enter an Int address in the Arbiter (redundant server) card (see below).
-
Load it on both computers
Load the project on both computers. Allow the redundancy port in Windows Firewall on both computers. Enter the connection passwords on each computer separately; passwords are not written to the project file.
| Field | Meaning |
|---|---|
| Server 1 / Server 2 computer name | The Windows computer name. When Live starts, it uses it to tell which server it is. |
| Server 1 / Server 2 address | The IP address or network name the other Live and the browsers use for this server. If empty, the computer name is used. |
| Default master | The server that becomes master when both start together. |
| Redundancy port | The TCP port between the two Live instances, default 8091. It must differ from the Remote monitoring port. |
| Timeout (s) | 2 – 60, default 5. If the other server does not respond within this time, it is considered failed. |
| History to synchronize (days) | 0 – 30, default 2. How many days of the logs the standby takes from the master when it reconnects. |
| Browser / TV failover | When on, browser and TV viewers switch to the other server if their server does not respond for 10 s. |
| Pairing key | The two Live instances recognize each other by this key. Studio generates it; Generate new key changes it. |
PLC arbiter
If the network between the two computers fails, each may believe the other has failed. The arbiter prevents this. The master writes a counter, increased every second, to every PLC that has an arbiter address. When the standby cannot reach the master, it looks at these counters: if a counter is still increasing, the master is alive and the standby does not take over; if not, it becomes master.
- The arbiter address must be a writable Int that is not used for anything else in the PLC program, for example
DB1.DBW0or40100. - Areas that cannot be written, such as inputs, outputs and input registers, are not accepted.
- Defining it on at least two PLCs is recommended: if one is off, the other decides.
- The standby reads only the arbiter addresses from the PLCs.
Master role and handover
- At startup Live asks the other server. If the other one is master, it becomes standby. If both start together, the default master becomes master.
- If the standby gets no response from the master for the timeout, it looks at the arbiters and takes over if needed.
- If both servers are seen as master, the one that became master later steps back.
- Manual handover: on the master, the Redundant server section of the system menu has a Hand over master role… button; a login is required.
When the role changes, the page reloads. Internal tag values and alarm states move to the new master; alarms are not logged as incoming a second time. The window title ends with “Master” or “Standby”.
| In the system menu | Shown |
|---|---|
| This station | MASTER or STANDBY and the server number. |
| Partner server | Whether it is connected, its role and whether it runs the same project. |
| Arbiter | Counter running, counter stopped or unreachable, for each arbiter connection. |
| Last synchronization | On the standby, the time the logs were last taken from the master. |
Working on the standby server
- Values come from the image of the master. If no data comes from the master, the Redundant server section of the system menu warns that the values are not up to date.
- Alarm detection, archive logging, scheduled tasks, scripts and report records run only on the master. On the standby, an event function that runs a script does not run and gives a notification.
- Alarm, event, archive and report logs are synchronized from the master every few seconds; when the standby reconnects, the chosen number of days of history is taken too.
- Browser viewers switch to the other server if Browser / TV failover is on, and log in again.
Limits
- A redundant pair consists of two servers. There are no separate client stations (server / client architecture); each Live runs its own screens.
- No firewall rule is added automatically for the redundancy port.
- The connection between the two Live instances is plain HTTP and is accepted only from private network addresses and with the pairing key. Keep the two servers on a closed plant network.
- Log lines written on the standby while the master cannot be reached stay local. Additional applications start on the standby too.
- Redundancy was tested with automated tests and with two Live instances running on the same computer. Do not commission it before trying it on two separate computers with a real PLC arbiter.
Frequently asked
Can an operator issue commands on the standby server?
Yes. Tag writes, alarm acknowledgment, shelving and comments are forwarded to the master, and the master writes to the PLC. Authorization is checked against the session on the standby.
What happens if I define no arbiter?
Redundancy works, but if the network between the two computers fails, both servers can become master and both can write to the PLCs. Studio warns about this.
Related pages
Running a project
Opening a project, startup sequence, window and full-screen settings, files and folders of Live.
LiveOperator actions
System menu, favorite screens, login and authorization, the action log, Event view and closing the program.
ConnectivitySiemens S7
Connects to S7-1500, S7-1200 and S7-300 / 400 CPUs through PUT/GET; switches to a backup PLC by itself.
StudioConnections
The Connections table, driver selection, connection test, diagnostics, reconnection and password storage.