Article Contents
ATS for a Generator and Inverter: Wiring Diagram and Installation
Key takeaways
An ATS for a generator and inverter transfers the house load from the grid to the backup source in 50 ms (UEC SB-ATS series) and guarantees that the link between the sources is broken. The transfer switch is installed after the electricity meter and the main circuit breaker, ahead of the group breakers.
Key point: feeding a generator into an ordinary socket is prohibited — it creates backfeed into the external line. In a "grid ↔ battery" scheme a hybrid inverter usually needs no external ATS; with a generator it depends on whether the inverter has its own generator input. An inverter or power station that is charging is not connected to the SB-ATS output — the datasheet forbids it.
Hello! This material was prepared by the UEC engineering department. We manufacture the SB-ATS series of automatic transfer switches and specify backup power panels every day, so we show the diagrams the way a qualified electrician actually builds them, not as a simplified picture.
This article is about the wiring diagram: where to run the line, neutral and earth, where the ATS sits in the panel, and how the hybrid-inverter scenario differs from the generator one. Rating calculation by power and the interlocking principle are only mentioned briefly here — they are covered in detail in the complete ATS guide.
⚠ WARNING! Working with electrical equipment is life-threatening!
Connecting an ATS and a backup power supply (especially a generator input) involves the risk of backfeed and requires a qualification of at least electrical safety group III. Have the installation carried out by a licensed electrician.
Why a generator and an inverter need an ATS
An ATS is needed so that the backup source picks up the load automatically and so that the grid and the generator are never connected to each other. Without a transfer switch, any backup power supply becomes either a manual operation or a source of accidents.
Requires a transfer device
A generator supplies the house only when the grid is gone, so a device is needed to disconnect the grid and connect the generator. If a person does this, a manual 1-0-2 changeover isolator is used. If the transfer must happen without the owner present, an automatic transfer switch is installed: it monitors the presence of voltage itself and moves the load within tens of milliseconds.
Often has its own logic
An inverter (especially a hybrid one) often has its own transfer logic, so it does not always need an external ATS — there is a separate section on this below. What an ATS does NOT do: it does not increase the generator's power, it does not switch on the whole house at once, and it does not start the generator engine by itself without the corresponding auto-start logic.
For switching between the grid and a generator, DBN V.2.5-23:2025 (clause 14.6) requires a device complying with DSTU EN 60947-6-1, and this standard also covers manual switches. Check that the datasheet states compliance with it and whether the device is allowed to switch under load. Before switching by hand, disconnect the loads.
How an ATS works with a generator: the overall logic
The ATS constantly monitors the voltage of the main source and, as soon as the grid disappears, transfers the load to the backup after a short delay; when the grid returns, it moves the load back. The transfer follows the break-before-make principle: the contacts of one source open BEFORE the contacts of the other close, so the two sources are never connected at the same time [4].
The operating logic in automatic mode consists of several steps:
- The grid disappears — the ATS registers the absence of voltage.
- The ATS disconnects the grid input (opens the contacts).
- A command is issued to the backup source; for a generator with electric start this is the engine start command, after warm-up (typically 5-10 minutes for the manual scenario) [4].
- The ATS closes the generator contacts — the load is supplied from the backup source.
- The grid returns — after a return delay the ATS opens the generator and switches the grid back on.
An important limitation:
for fully automatic engine starting, the generator must have an electric start. The UEC SB-ATS series performs load switching itself (automatically or manually) — the engine auto-start function is provided by separate generator auto-start logic, so these two units are selected together [7]. For this pairing the SB-ATS-4-100 has, according to its datasheet, dry contacts that signal generator start and stop; the datasheet of the 63 A models lists none.

The ATS wiring diagram for a generator (grid-generator)
The basic diagram has three groups of terminals: the grid input, the generator input and the output to the load (the consumer panel). The ATS switches the line and neutral of both sources onto a common output, while the protective conductor PE runs straight through and is not switched.
The conductor sequence in principle:
- The line L of the grid goes to the grid input terminal of the ATS; the line L of the generator goes to the generator input terminal; the outgoing line goes to the load panel.
- The neutral N of a multi-pole transfer switch is switched together with the lines — to isolate the house from the second source completely and avoid creating a parallel link between the neutrals [3].
- The PE (earth) is not broken by the transfer switch: the generator frame must be bonded to the building's earthing system, and the load's PE remains continuous [3].
Below is a clean vector diagram of a single-phase grid-generator input through an ATS. The exact switching of neutral and earth depends on the site's earthing arrangement (TN-C-S, TN-S) and is agreed with the electrician.
For a three-phase supply the logic is the same, but three lines L1/L2/L3 are switched together with the neutral (4P), and the PE likewise stays continuous.
Where to place the ATS in the panel: order of devices
The ATS is installed after the electricity meter and the main circuit breaker of the grid, but before the consumer group breakers — so that it only governs the choice of source, while protection and metering stay in their places [2]. This is a requirement of the State Energy Supervision authority and a key safety condition: the source transfer switch must not be installed ahead of the meter.
The typical sequence in the panel from the supply to the consumer:
| Position | Device | Purpose |
|---|---|---|
| 1 | Grid input | Cable from the utility meter |
| 2 | Main circuit breaker | Protection and manual disconnection of the grid |
| 3 | ATS (SB-ATS) | Source selection: grid or generator |
| 4 | Generator input | Separate cable from the generator (via its own breaker) |
| 5 | Voltage relay (if required) | Protection of the load against over- and undervoltage |
| 6 | Group breakers / RCD | Distribution to the backup group of consumers |
The meter comes before the ATS, so it does not register energy from the generator; if your own generation has to be metered, agree this with the distribution system operator. A voltage relay is often installed next to the ATS, because the voltage from a domestic generator can be unstable, and both devices work together in the panel.
ATS panel layout
An SB-ATS has two inputs and one output. The grid goes to the main-source input, the generator or inverter to the backup input, and the output feeds the backup group. There is no third input, so two backup sources are never connected in parallel to one input.
- Grid: after the meter and the main breaker, to the main-source terminals (I on the 63 A models, source A on the SB-ATS-4-100).
- Backup: the generator or inverter line, through its own breaker or fuse, to the backup-source terminals (II on the 63 A models, source B on the SB-ATS-4-100). The transfer switch itself gives no overcurrent protection.
- Output: a voltage relay (if required), RCDs and the group breakers of the backup group.
- Non-backup circuits branch off the grid ahead of the switch, so the generator does not supply them, and a voltage relay at the ATS output does not protect them.
- Bars: PE is separate and not switched; the backup group has its own N bar after the ATS, not joined to the N bar of non-backup circuits. Terminals N1 and N2 of the 63 A models are not connected together (datasheet). The switch breaks the neutral, so N and PE must already be separated ahead of it: a PEN conductor is not run through an ATS (DBN V.2.5-23:2025).
- Space in the panel: the SB-ATS-2-063 takes 3 modules, the SB-ATS-4-063 takes 5, the SB-ATS-4-100 takes 8; the enclosure must provide at least class I protection (datasheet).
- Labelling: write on the panel that it has two supply sources, and label the circuits.
Where the inverter goes, and why not after the ATS
If an inverter or a power station is the backup source, its output goes to the backup input of the switch. The SB-ATS datasheets forbid connecting an inverter or a power station to the load circuit (that is, the switch output) in charging mode: the ATS and/or the inverter may fail. So the "grid or generator → ATS → charging inverter" scheme is not built with an SB-ATS. A hybrid inverter with its own backup output changes over between grid and battery by itself — see the next section.
Installation and maintenance
A qualified electrician installs it with the power off. Before any work in the panel, take the ATS out of service, stop the backup source and lock it against starting, switch off the grid (the incoming terminals of the main breaker remain live) and check with a voltage tester that no voltage is present. Terminals are tightened to the datasheet torque — 2.5 N·m for the 63 A models and 3 N·m for the SB-ATS-4-100 — and checked at least once every six months. With a three-phase supply, check the direct phase sequence of both sources. Do not operate the switch by hand while the selector is on "Auto"; the SB-ATS-4-100 is put into manual mode only when completely de-energized. The recommended switching frequency is no more than once a minute. The SB-ATS-4-100 datasheet also requires safe clearances around the device.
Does an inverter need an external ATS, or is the built-in bypass enough?
If the task is only to switch between the grid and the battery, a hybrid inverter is usually served by its built-in bypass (transfer relay): it takes the load onto the battery itself within a few milliseconds when the grid fails [5]. When a generator appears in the scheme, the inverter decides: if it has a dedicated generator (GEN) input, the generator is connected there according to the manufacturer's manual, and an external switch to choose between grid and generator may not be needed.
Let us look at the two scenarios separately, because this is exactly where most online advice gets confused.
When is the inverter's built-in bypass enough?
The built-in bypass is enough in a grid ↔ battery scheme, where the backup source is only the battery. In grid mode a hybrid inverter supplies the load directly from the grid and, when the grid fails, switches to battery power through the inverter almost without a pause — no external transfer switch is needed for this [5]. This is the classic home UPS/hybrid setup without a generator. The inverter's backup output (Backup, EPS or Load) is not connected to the grid — manufacturers' manuals forbid it.
When does an inverter need an external ATS?
An external ATS or a manual changeover switch is needed when the source does not switch the panel by itself: for example, a power station or an inverter without its own changeover, or a generator that supplies the house on its own without going into the inverter. The grid then goes to the main input of the switch and the backup source to the backup input.
SB-ATS datasheet restriction:
An inverter or power station in charging mode is not connected to the load circuit of the transfer switch: the ATS and/or the inverter may fail. So the "grid or generator → ATS → charging hybrid inverter" scheme is not built with an SB-ATS.
Where should the generator's AC input be connected on a hybrid inverter?
The generator is connected to the input the manufacturer intended: to a dedicated GEN port if there is one, or to the common AC-in (grid-in) — but only if the manual permits it and the generator's parameters are compatible [5]. On models with a separate GEN port, that is where the priority and charge current settings are available; that is why the generator-to-inverter wiring is checked against the specific model's datasheet rather than built from a generic picture.
If the generator feeds AC-in (grid-in), a changeover switch that physically separates grid and generator is required ahead of the inverter (for example, a manual I-0-II): without it generator voltage can reach the grid. An SB-ATS is not placed ahead of an inverter that charges from its output (datasheet).
A brief comparison of the two solutions:
| Criterion | Inverter's built-in bypass | External ATS |
|---|---|---|
| Sources | Grid ↔ battery | Grid ↔ generator or another backup |
| Transfer | Internal, milliseconds | External, tens of milliseconds |
| Generator control | Depends on the model | Only via a start contact (SB-ATS-4-100) |
| Separation of sources | Within the inverter | Guaranteed, a dedicated device |
| When to choose it | Battery-only backup | The source does not switch the panel itself |

Why you must not feed a generator into a socket
Connecting a generator into an ordinary socket in the building is prohibited: the plug pins become live, and without a transfer switch the voltage also travels into the external line (backfeed), which an emergency crew may believe to be de-energised [2][5]. This is a lethal hazard for line workers and a risk of short circuit and fire.
Approximate socket ratings according to the State Energy Supervision authority: a 10 A socket withstands about 2.2 kW, a 15 A one about 3.5 kW [2]. No generator, however small and even temporarily, is fed into the house wiring through a socket: the plug pins and the external line become live, and a socket is not designed to be a supply input. There is only one correct route: the generator input goes through a transfer switch (an ATS or a manual 1-0-2 changeover isolator) with interlocking against simultaneous connection of the sources, installed after the meter and the main breaker [2].
Do not confuse an ordinary domestic socket with a generator inlet (an input connector). An inlet is a dedicated fixed input connector on the wall of the house, through which the cable from the generator enters the panel and is necessarily switched by a transfer switch (a 1-0-2 changeover isolator or an ATS) with interlocking. The inlet does not replace the transfer switch, it merely provides a safe place to connect the cable; the ban on feeding a generator into an ordinary domestic socket applies always, with or without a transfer switch in the panel.
What must NOT be present in the scheme (YMYL safety checklist):
- There is no direct connection between the generator and a socket in the house.
- There is no possibility of closing the grid and the generator at the same time (break-before-make interlocking is mandatory).
- There are no devices in the PEN conductor: it is never switched.
- There is no generator input ahead of the meter and the main breaker.
How to choose the ATS pole configuration: 2P or 4P?
The pole configuration is chosen according to the supply scheme: for a single-phase 230 V grid you take 2P (line L and neutral N are switched), for a three-phase 400 V grid — 4P (three lines L1/L2/L3 plus neutral N) [3]. The neutral is broken synchronously with the lines, in order to isolate the house from the second source completely. In wiring with a combined PEN (TN-C) such a switch is not installed: N and PE must already be separated ahead of it.
The rating of a three-phase model, phase imbalance and the generator load per phase are covered in the article on choosing a three-phase ATS for 380 V.
Mapping to the UEC SB-ATS line:
| Model | Poles | Current | For which grid |
|---|---|---|---|
| SB-ATS-2-063 | 2P | 63 A | Single-phase 230 V |
| SB-ATS-4-063 | 4P | 63 A | Three-phase 400 V |
| SB-ATS-4-100 | 4P | 100 A | Three-phase 400 V, higher load |
The rating of the transfer switch must equal or exceed that of the protective device upstream of it and the calculated current of the most loaded phase of the backup group [6]. We do not repeat the rating calculation by the power formula here — it is covered step by step in the complete ATS guide. Model specifications are in the automatic transfer switch section. What matters here is something else: only the critical group of consumers should be backed up (heating boiler, circulation pump, refrigerator, lighting), because a generator is usually weaker than the grid and will not carry the whole house [6].
What to do if the generator and the grid have different phase configurations
A common case: the grid supply is three-phase (400 V) while the generator is single-phase (230 V). A universal "just use 4P" is not enough here. If a three-phase house is backed up by a single-phase generator, only the critical single-phase group is supplied from the backup source: it is separated out and routed through a transfer switch of the corresponding pole configuration, while the remaining phases are left without backup. If a three-phase generator supplies single-phase circuits, spread them across the three phases as evenly as possible and check the permitted single-phase load in the generator manual. The number of poles of the transfer switch is chosen according to the actual scheme of both sources, not the "theoretical" supply; matching the phases and neutral with different phase configurations is a designer's task, because a mistake creates imbalance and dangerous operating modes.
How to earth the generator and what to do with the neutral
The generator frame must be bonded to the building's PE system, and when the generator is connected, the neutral is broken synchronously with the lines by a multi-pole transfer switch [3]. The exact neutral and earth arrangement depends on the site's earthing system (TN-C-S, TN-S) and on the generator type, so it is settled by the electrician according to the equipment datasheet.
⚠ An honest limitation: there is no universal answer of "always 4P and always break the neutral" — in a TN-C-S arrangement the generator may be a separately earthed source, and then the switching of the neutral depends on how the neutral and the protective conductor are connected on site [3]. A PEN conductor is never switched by devices. This is exactly why the generator input is the case where the scheme must be agreed with a qualified electrician rather than assembled from a generic picture found online.
If you are still choosing between automatic and manual transfer for a generator, the comparison of scenarios and costs is covered in the article ATS or manual transfer switch; and how to build a manual generator input specifically is covered in the article on the 1-0-2 changeover isolator. Typical operating and maintenance mistakes with an ATS are collected separately in the material on common ATS mistakes.
Questions and answers (FAQ)
❓ Can a generator be plugged into a socket in the house?
No. This creates backfeed into the external line and poses a lethal hazard to emergency crews. A generator is brought in only through a transfer switch (an ATS or a 1-0-2 changeover isolator) with interlocking, installed after the meter and the main breaker [2].
❓ Does the generator need to be earthed?
Yes, the generator frame must be bonded to the building's PE earthing system. The exact neutral and earth arrangement depends on the site's earthing system and is agreed with the electrician [3].
❓ Should you choose 2P or 4P for an ATS?
2P — for a single-phase 230 V grid (line + neutral), 4P — for a three-phase 400 V grid (three lines + neutral). The neutral is broken together with the lines [3]. Such a switch is not installed in wiring with a combined PEN (TN-C).
❓ Does an inverter's built-in bypass replace an external ATS?
In a grid ↔ battery scheme the built-in bypass is enough. With a generator it depends on the inverter: if there is a GEN input, the generator is connected there according to the manual; an external switch is needed when the source does not switch the panel itself.
❓ Why does the generator breaker trip after transferring to the backup source?
Most often this is an overload: more consumers are connected to the backup group than the generator can carry, or powerful loads with a high inrush current start simultaneously. Only the critical group should be backed up, matched to the generator's real output [6].
❓ Do you need an ATS for a hybrid inverter?
Not for changing over between grid and battery — the inverter does that itself. A separate switch is needed when the backup source does not switch the panel itself; where to connect a generator is set by the inverter manual.
❓ Can an inverter be placed after the ATS?
Not with an SB-ATS if the inverter or power station charges from the switch output: the datasheets forbid it because the devices may fail. An inverter used as the backup source is connected to the backup input of the ATS.