PakSolarInsights

How to Connect a Generator to a Solar Inverter in Pakistan

By PSI Editorial • June 8, 2026

Diesel generator connected to a hybrid solar inverter setup in Pakistan
Image via LoremFlickr

Atomic Summary: To connect a generator to a hybrid solar inverter, wire it into the dedicated Generator (GEN) port if your inverter has one, or use an external Automatic Transfer Switch (ATS) to feed it into the AC input. The generator must produce clean 220V/50Hz power with low harmonic distortion. Size it to handle your household loads plus battery charging current simultaneously.

Pakistan's extended load shedding — sometimes 8 to 14 hours daily in rural areas during summer — means even a large lithium battery bank can run dry before WAPDA power returns. If you have experienced waking up at 3 AM with dead batteries and no grid power, you know exactly why a backup generator integrated into your solar system is not a luxury but a necessity.

However, wiring a generator incorrectly to your solar inverter can destroy the inverter, damage your batteries, or create a dangerous backfeed condition that electrocutes utility workers. This guide walks you through the correct, safe method for Pakistan's most popular hybrid inverter brands.

Understanding the Two Connection Methods

There are two primary ways to connect a generator to your solar system, depending on your inverter model:

Method 1: Dedicated Generator Port (Preferred)

Most premium hybrid inverters sold in Pakistan — including the Solis S6 series, Growatt SPF/MIN series, and Deye SUN series — have a dedicated Generator (GEN) Input Port. This is a separate AC input terminal specifically designed for generator power, completely isolated from the grid input terminal.

The generator port offers significant advantages:

Method 2: External ATS (Automatic Transfer Switch)

If your inverter does not have a dedicated generator port (common in grid-tied-only models from Huawei SUN2000 and some older Solis units), you need an external ATS panel. The ATS switches the inverter's AC input between WAPDA/K-Electric grid power and the generator.

Alert: Never connect both the generator and the grid to the same AC input simultaneously. Without proper isolation through an ATS or dedicated port, the generator can backfeed into the utility grid, creating a lethal hazard for WAPDA/K-Electric linesmen working on what they believe is a de-energized line.

For a detailed explanation of ATS panels, read our guide on Automatic Transfer Switch (ATS) panels for solar systems.

Generator Requirements: What Your Inverter Demands

RequirementSpecificationWhy It Matters
Output Voltage220V to 230V (single phase)Must match Pakistan's grid voltage standard
Frequency50Hz (stable, within ±2Hz)Inverter rejects power if frequency drifts beyond tolerance
Total Harmonic Distortion (THD)Below 5%High THD damages inverter capacitors and battery charger circuits
WaveformPure Sine Wave (preferred)Modified sine wave generators cause inverter rejection and overheating
Minimum CapacityPeak load + battery charge rateUndersized generators stall under combined load

Warning: Cheap PKR 30,000 to 40,000 conventional petrol generators from local markets often produce extremely dirty power with high harmonic distortion, voltage spikes, and unstable frequency. Your inverter will either reject the power entirely (showing an error code) or accept it and suffer internal damage over time. Invest in an inverter-type generator (Honda EU series or equivalent brands) which produces clean sine wave output.

Step-by-Step Wiring Guide (Dedicated GEN Port)

  1. Turn off everything — Switch off the inverter, DC isolator from panels, battery breaker, and the generator. Verify zero voltage with a multimeter.
  2. Locate the GEN input terminals — Check your inverter manual. On the Solis S6, this is labeled "GEN/SMART PORT." On Growatt SPF models, it is labeled "AC INPUT 2" or "GEN."
  3. Run dedicated cabling — Use appropriately sized copper cable (minimum 6mm² for generators up to 8 kVA). Run a dedicated line from the generator output to the inverter GEN port. Do not share this cable run with any other circuit.
  4. Connect Line, Neutral, and Earth — Connect the generator's Live (L) wire to the GEN port Live terminal, Neutral (N) to Neutral, and the Earth wire to the earthing bus bar. Proper earthing is critical for safety.
  5. Install a dedicated MCB breaker — Place a properly rated AC MCB (Miniature Circuit Breaker) between the generator and the inverter GEN port. For a 5 kVA generator, use a 32A MCB.
  6. Configure inverter settings — Access your inverter's configuration menu (via LCD panel or monitoring app) and enable the generator input. Set the battery SOC threshold for auto-start (typically 15% to 20%) and auto-stop (typically 80% to 90%).
  7. Set the charging current limit — This is critical. Set the maximum charging current from the generator to a value that leaves enough headroom for your household loads. If your generator is 5 kVA (approximately 4 kW usable), and your essential loads draw 2 kW, set the charging current to draw no more than 1.5 to 2 kW.
  8. Test the system — Start the generator, verify the inverter accepts the power (no error codes), confirm battery charging begins, and check that household loads operate normally.

Generator Sizing Calculator

The most common mistake in Pakistan is buying a generator that is too small. Your generator must handle two simultaneous demands:

Solar System SizeTypical Battery Charge RateEssential Household LoadsMinimum Generator SizeRecommended Generator Size
3 kW1.5 kW1.5 to 2 kW3.5 kVA5 kVA
5 kW2.4 kW2 to 3 kW5 kVA6.5 to 8 kVA
8 kW3.5 kW3 to 4 kW7 kVA10 kVA
10 kW5 kW4 to 5 kW10 kVA12 to 15 kVA

Alert: Running a generator at more than 80% of its rated capacity continuously causes overheating, accelerated wear, and fuel inefficiency. Always buy at least one size larger than your calculated minimum.

Brand-Specific Configuration Tips

Solis S6 Series

The Solis S6 has a dedicated Smart Port with 2-wire dry contact support. In the Solis Cloud app, navigate to "Advanced Settings" and enable "Generator Mode." Set the start SOC, stop SOC, and maximum charge current. The S6 will automatically manage the generator start/stop cycle without any additional relay hardware.

Growatt SPF / MIN Series

Growatt hybrid inverters accept generator input on the "AC Input" terminal. In the ShinePhone app or via the LCD menu, set the input source priority to "SBU" (Solar first, Battery second, Utility/Generator third). Configure the battery charging current under "Charger Settings." Growatt inverters are sensitive to frequency fluctuations, so use a generator with stable governor control.

Huawei SUN2000 Series

Most residential Huawei inverters (SUN2000 series) are designed primarily for grid-tied operation and do not have a dedicated generator port. If you need generator backup with a Huawei system, install an external ATS panel that switches between the WAPDA grid and the generator, feeding whichever is available into the inverter's grid AC input. Ensure the ATS has a break-before-make switching mechanism to prevent simultaneous connection.

Critical Safety Warnings

Petrol vs. Diesel Generators for Solar Backup

FactorPetrol GeneratorDiesel Generator
Upfront Cost (5 kVA)PKR 80,000 to 150,000PKR 200,000 to 400,000
Fuel Cost per HourHigher (petrol is more expensive)Lower (diesel is cheaper, more efficient)
Noise LevelModerate to loudLoud (unless soundproofed canopy)
Lifespan3,000 to 5,000 hours10,000 to 30,000 hours
Best ForOccasional backup (2 to 4 hours/day)Heavy-duty backup (6+ hours/day)

For areas with extreme load shedding (8+ hours daily), a diesel generator provides significantly better long-term value despite the higher upfront cost, especially when paired with a hybrid inverter that automatically manages the start/stop cycle based on battery levels.


Frequently Asked Questions

Can I connect any generator to my solar inverter?

No. Your generator must produce a clean, stable 220V/50Hz output with low Total Harmonic Distortion (THD below 5%). Inverter-type generators are ideal. Cheap conventional generators with unstable frequency will cause the inverter to reject the power or shut down to protect itself. Always check your inverter manual for generator compatibility requirements.

What size generator do I need for my solar system?

Your generator must be large enough to handle your essential household loads PLUS the battery charging current simultaneously. For a typical 5 kW hybrid system with a 3 kW charging rate, you need at minimum a 5 kVA generator (3 kW loads + 2.4 kW charging). A 6.5 to 8 kVA generator provides a comfortable safety margin.

Can the inverter auto-start my generator when batteries are low?

Yes, if your inverter has a dedicated Generator Port with dry-contact relay terminals. Brands like Solis S6, Growatt SPF, and certain Deye models support 2-wire dry contact auto-start signals. When the battery SOC drops below your set threshold (e.g., 20%), the inverter triggers the generator relay, and when batteries charge to your target level, it sends the stop signal automatically.