FabyaVisionUser Manual
/

Redundant server pair

11 min readProjects

Running the same project on two Live computers as master and standby: only the master communicates with the PLCs; if the master does not respond, the standby takes over. Setup, switchover rules, PLC arbiter, synchronization and limitations.

What it is used for

In a redundant server pair, the same project runs on two computers. One is the master: it communicates with the PLCs, detects alarms, writes data log and report records, and runs tasks and scripts. The other is the standby: it receives the values from the master, forwards the operator's commands to the master and copies the master's records to its own data folder. If the master does not respond, the standby becomes master.

This feature is the redundancy of the Live computers. PLC redundancy (communicating with whichever of two CPUs is master) is a separate feature: Automatic switchover to the backup PLC. The two can be used together.

Installation

  1. Select the operating mode

    In Studio, set Device configuration › Operating mode to Redundant server pair (redundancy). In the Redundant server pair card, enter the Windows name and the address of the two computers, the default master, the port and the times. Fields: Device configuration.

  2. Define the arbiter addresses

    In at least two PLC connections, enter an Arbiter (redundant server) in the Arbiter address (Int) card of the connection's Inspector (see PLC arbiter below). Do not use this address for anything else in the PLC program.

  3. Check the project

    Check with F7. A missing server name, an identical address, a port that conflicts with Remote monitoring and a project without an arbiter appear in the Problems list.

  4. Put the same file on both computers

    Upload the project to one computer and copy the resulting .fvs file to the Live project folder of the other computer. Each upload writes a new revision to the file; two separate uploads produce two different files, and Live gives the warning The project on the partner server differs from the one on this computer; both computers must run the same project file. When the project changes, update both.

  5. Open the port in the firewall

    On both computers, allow inbound connections to the redundancy port (default TCP 8091). Live does not add this rule automatically. In an administrator command prompt, with the address of the other server:

    netsh advfirewall firewall add rule name="FabyaVision Yedeklilik" dir=in action=allow protocol=TCP localport=8091 remoteip=192.168.0.12

    If you use remote monitoring, its port also needs a permission on both computers (Remote monitoring).

  6. Enter the passwords on both computers

    The OPC UA, OPC DA and MQTT connection passwords and the PFX passwords are kept in each computer's own store; they are not synchronized. Enter them from the system menu in both Live instances (Connection security).

  7. Open Live on both computers and check

    The Redundant server section of the system menu must show the role of this station, the Connected (standby) or Connected (master) state of the partner server and the counter running state of the arbiters. Then test the switchover with Hand over master role… and by closing the master Live.

Roles and division of tasks

OperationMasterBackup
PLC communicationAll enabled connectionsOnly connections with an arbiter address are opened, and only the arbiter counter is read
Tag values, alarm list, connection statesGenerates them itselfCome from the master's snapshot (every half second)
Alarm detection, data logging, report logging, scheduled tasks, scriptsRunDo not run
Tag writes by the operator (PLC and internal tags), alarm acknowledgment, shelving, commentCarries them out itselfForwarded to the master; the master performs it
Event, alarm, archive and report logsAuthorSynchronized from the master every 3 s
Live store (e.g. recipe records)AuthorWritten locally and forwarded to the master; changes on the master are synchronized
Session, language, open windowsSeparate on each station

On the standby, event functions that run scripts do not work; when the operator presses such a button, the notification Standby server: scripts do not run — Scripts run only on the master server. appears. Manual report records (Report records are taken by the master server.) and recipe transfer by script are not possible on the standby either. — Master or — Standby is added to the title of the Live window.

How the role is determined

The two Live instances ask each other for their state once per second (each request waits at most 1.5 s). Rules:

StateResult
Live starts, partner server is masterThis Live instance becomes standby.
Both start at the same timeThe Default master becomes master, the other becomes standby.
Live starts, partner server does not respondWhen Timeout (s) expires (and at least two queries remain unanswered), the arbiters are checked: if the counter is increasing on an arbiter, this Live instance becomes standby; if not, it becomes master.
The master stops responding while the standby is runningSame rule: if the counter is not increasing, the standby becomes master (takeover); if it is increasing, it does not take over and gives a warning.
Both Live instances are masterThe one that became master later steps back and becomes standby (if equal, the one that is not the default master).
Both Live instances are standbyThe default master becomes master.
The failed master comes backSince the partner server is the master, the returning Live joins as standby. The master role is not taken back automatically.

At startup, Live does not show the screens until the role is determined; if the partner server does not respond, this wait lasts as long as the timeout.

When the role changes

  • A short notification (This station is becoming master / This station is becoming standby) appears on both Live instances and the page is reloaded. Open windows are closed and the operator logs on again.
  • The new master establishes the PLC connections; until they are established, the PLC tags have bad quality. The values of internal and simulator tags and the alarm states continue from the standby's last snapshot; no new incoming entry is written for the alarms taken over.
  • When the screen opens, a window stating the reason appears and the same text is written to the event log. When Live first starts, a window reporting the role also appears (This station started as master (Server 1).).
The standby took over when the master stopped responding: the information window that opens on the new master.
The standby took over when the master stopped responding: the information window that opens on the new master.

PLC arbiter

The arbiter prevents both Live instances from becoming master at the same time when the network between the two computers is lost. Every second, the master writes an incrementing counter (1 – 32767) to each connection that has an arbiter address defined; the standby reads these addresses. When the standby cannot reach the partner server and the counter has changed within the last timeout period, it concludes that the master is running and does not take over. In this case the message The partner server (…) cannot be reached, but the PLC arbiter shows that the master is running; the master role was not taken over. Check the network connection between the computers. appears in the system menu.

The Arbiter card in the connection Inspector: a valid Int address has been entered.12
The Arbiter card in the connection Inspector: a valid Int address has been entered.
  1. Arbiter address (Int) — every second the master writes an incrementing counter to this address; empty = not an arbiter.
  2. State — whether the address is valid and whether it conflicts with a tag.
  • The arbiter is defined per connection: if the project has several PLCs, each of them can be a separate arbiter. Define it in at least two PLCs; while one is switched off, the other decides.
  • The address is a writable Int address that follows the driver's rule (e.g. DB1.DBW0 or MW100 for S7, 40100 for Modbus). Input / output and read-only areas are not accepted: S7 I / Q, Modbus 3xxxx, Mitsubishi SD / SW / TN / CN / Z, Omron CIO / A / T / C. A simulator connection cannot be an arbiter.
  • If the address is the same as the address of a tag on the same connection, Studio warns: the counter overwrites that tag's value. If another system writes to the same address, Live gives the warning Someone else is also writing to the PLC arbiter (…).
  • If no connection has an arbiter and the network between the two computers is lost, both Live instances become master and both write to the PLCs. Studio warns about this in Problems.

Monitoring in Live

In the system menu, the Redundant server section is located below Redundant server.

System menu on the master station: role, partner server, arbiter states and hand-over button.
System menu on the master station: role, partner server, arbiter states and hand-over button.
The same section on the standby station: the last synchronization time is shown.
The same section on the standby station: the last synchronization time is shown.
RowMeaning
This station: MASTER / STANDBYRole, server number and computer name.
Partner serverWaiting, No connection, Connected (master) or Connected (standby).
Arbiter · <connection>counter running, counter stopped or unreachable. If there is no arbiter, No arbiter PLC is defined.
Last synchronizationOn the standby: the time when the logs were last fetched from the master.
No data from the master server: values are not up to date.On the standby: the master's snapshot is not arriving.

Common warnings: The partner server rejected the connection (redundancy key does not match) (different projects on the two computers), The partner server is also running as Server 1 (wrong computer names), The redundancy port (8091) could not be opened (port used by another program), This computer (…) is not defined as a redundant server …; redundancy is off, running as a single server. (the Windows name is not one of the two server names).

Handing over the master role manually

For maintenance, you can hand the master role over to the other server. On the master station, click system menu › Hand over master role…; if no user is logged on, a log-on is requested. If Live settings is on in Require authorization to exit, handing over requires the same authorization as closing the program. If the partner server cannot be reached, the button is inactive; if the partner server is not standby, no handover takes place and the reason is reported. After confirmation, this station stops PLC communication immediately, the partner server becomes master and the pages on both stations are reloaded. If the partner server cannot take over, this station remains master and the reason is reported.

The Hand over master role confirmation window.
The Hand over master role confirmation window.

Browser and TV viewers

If remote monitoring is on, viewers can connect to either of the two servers. While Browser / TV failover is on, if the connected server does not respond for 10 s, the browser switches to the address of the other server (same port and path). Sessions are separate on each server: the viewer logs on again there. The TV window on the second monitor of the Live PC does not change servers. If a Remote control user is connected to the standby server, their action is forwarded to the master.

Limitations and points to note

Related topics

FabyaVision 1.2.1 User Manual · 2 November 2026© Fabyatek Yazılım Bilişim Teknolojileri Ltd. Şti.