Skip to main contentSkip to navigationSkip to contactAccessibility (Alt+A)

Keyboard Shortcuts

  • Alt + A: Open accessibility settings
  • Tab: Navigate to next element
  • Shift + Tab: Navigate to previous element
  • Enter or Space: Activate buttons and links
  • Escape: Close dialogs and menus
  • Arrow keys: Navigate within menus and sliders
  • Home: Go to beginning of list
  • End: Go to end of list
EmersonEIMS — Reliable Power. Without Limits.
HOMEABOUTWHY US
INDUSTRIES
PHASE 4CONTACT
Get Quote

B2BEmersonEIMS serves commercial, industrial, healthcare, telecom, hospitality, government & contractor clients.• Engineering-led • SLA-backed • Documented commissioning

Talk to an engineerWhatsApp+254 768 860 665

Services Directory

View all services →

Power & Generators

  • Cummins Generators (3-yr warranty)
  • Generator Repairs & Maintenance
  • ATS / Changeovers
  • Generator Sales
  • Generator Rental
  • Generator Installation
  • Generator Spare Parts
  • Workshop Repairs & Fabrication
  • Power Interruption Solutions

Renewable & UPS

  • Solar Energy Solutions
  • Commercial / Industrial Solar
  • Solar System Sizing
  • Solar Genius Pro™
  • UPS Systems
  • UPS Lab
  • Solar / UPS Hub
  • Borehole Pumps

Electrical & HVAC

  • Distribution Boards & Panels
  • Motor Rewinding
  • Motors & Drives
  • High-Voltage Systems
  • Diesel Automation
  • Industrial Controls
  • Steel Fabrication
  • AC / HVAC Installation

Specialised & AI Suites

  • Hospital Incinerators
  • Incinerator Construction Guide
  • Building Engineering Suite
  • EIMS PRO Workspace
  • AquaScan Pro™
  • Generator Oracle™
  • Diagnostics Hub
  • Troubleshooting Wizard

Maintenance Hubs

  • Generator Maintenance
  • Solar Maintenance
  • HVAC Maintenance
  • Borehole Maintenance
  • Electrical Maintenance
  • Motors Maintenance
  • Incinerator Maintenance
  • Fabrication & Welding

Resources & Tools

  • Resources & Learning Hub
  • Knowledge Base
  • Technical Bible
  • Power Calculators
  • Fault Code Database
  • Blog & Articles
  • FAQ
  • Emergency Response Guide

Service Areas

  • All Kenya — 47 Counties
  • Nairobi
  • Mombasa
  • Kisumu
  • Nakuru
  • Kiambu
  • All Service Locations
EMERSONEiMS

Engineering-grade reliability for East Africa's critical infrastructure. Power systems built to perform.

  • LinkedIn↗
  • Twitter↗
  • Facebook↗

Company

  • About Us
  • All Services
  • Book a Service
  • Project Gallery
  • Case Studies
  • Industries Served
  • Careers
  • Contact Us

Quick Links

  • Generator Sales
  • Solar Energy
  • Diagnostic Suite
  • Solar / UPS Hub
  • Generator Oracle
  • Knowledge Base
  • FAQ

Contact

  • Nairobi HQEmbakasi, off Airport North Road, Nairobi
    (Near KEMSA Head Office)
  • Department Emails
    • General Inquiriesinfo@emersoneims.com
    • Service Coordinationemersoneimservices@emersoneims.com
    • Generator Deskgenerators@emersoneims.com
    • Solar & UPS Desksolar@emersoneims.com
    • Sally — Direct Accountsally@emersoneims.com
  • Phone
    +254782914717
    +254768860665

© 2026 Emerson EiMS. All rights reserved.

PROTECTED BY GENERATOR ORACLE / EMERSONEIMS
Privacy PolicyTerms of Service
ENGINEERED IN NAIROBI, KENYA
  1. Home
  2. /
  3. Repair Centre
  4. /
  5. ups
  6. /
  7. Replacing a UPS Battery String Safely

UPS battery systems — replacement and commissioning

Replacing a UPS Battery String Safely

Applies to
VRLA and lithium battery strings in single- and three-phase UPS systems, cabinet and rack mounted
Difficulty
advanced
Competence required
qualified electrician
Diagnosis complexity
Not a diagnosis. This is a planned operation where the risks are electrical, chemical and commercial, and where the load is unprotected throughout.
Electrical system
DC string voltage per UPS design; UPS supply 240 V / 415 V 50 Hz nominal
Safety classification
stored energy
Author
EmersonEIMS Engineering
Technical review
Mr. Kararaho
Last reviewed
2026-07-27

Scope — read this before relying on the guide

This guide sets out diagnostic method, ranked causes and safety requirements. It deliberately does not state equipment-specific numbers — test voltages, resistance and component values, torque figures, acceptance windows and pin assignments are referred to the manufacturer's documentation for your exact model rather than given here, because a plausible-looking figure for the wrong machine is more dangerous than no figure at all.

Direct technical answer

Plan this as an operation rather than a task, because the load has no battery protection from the moment the string is opened until the new one is charged, and that window is longer than most people expect. Establish first that the load can run unprotected, or arrange an alternative. Replace the string as a complete matched set from one batch: mixing new blocks with old is a false economy, because the old blocks drag the new ones down and the fault returns within months. A battery string cannot be switched off, so treat every block as live throughout, use insulated tools without exception, and break the string into sections before handling rather than working across the full string voltage. Before recommissioning, confirm the charger settings match the chemistry actually installed, which is the step most often missed after a change of battery type. Then record installation dates, a commissioning impedance baseline and a proven autonomy figure, because without those the next engineer inherits exactly the blind spot that led to this replacement.

01Symptom description

Controller / display

  • ▪Battery test failed, or replace battery indication
  • ▪Autonomy far below the design figure
  • ▪Event log showing repeated battery test failures over weeks or months
  • ▪Battery fault following a mains outage the string could not support

Indicators

  • ▪Battery indication not reaching full after extended mains operation
  • ▪UPS transferring to battery and returning almost immediately
  • ▪Battery circuit breaker open or fuse blown

Sounds

  • ▪Alarm accompanying a battery fault
  • ▪Cooling fans working harder where battery heat is raising cabinet temperature

Smells

  • ▪Acid or sulphurous smell at the cabinet, indicating over-charging, venting or a failing block
  • ▪Any burnt smell means stop and investigate before touching the string

Behaviour

  • ▪Autonomy shortening progressively over months, which is normal ageing reaching its end
  • ▪String well beyond its design life, frequently accelerated by a warm battery room
  • ▪A previous partial replacement, leaving mixed ages in one string
  • ▪Batteries warm to the touch, which indicates over-charging rather than under-charging
  • ▪Replacement string failing early, which usually means the environment or charging was never corrected

Visible

  • ▪Battery case swelling, distortion, leakage or terminal corrosion — any of these is a stop-work finding
  • ▪Installation date labels and block serial numbers
  • ▪Interconnect condition and evidence of heat at terminals
  • ▪Battery room or cabinet temperature and whether cooling is provided
  • ▪Charger settings and the battery type they are configured for

02What the fault means

In plain language

The batteries have reached the end of their useful life and need replacing. The job itself is straightforward, but three things make it risky: the batteries are always live and cannot be switched off, the protected equipment has no backup while the work is done, and if the charger is set for the wrong battery type afterwards the new set will fail early too.

Technical explanation

A UPS battery string is a series arrangement whose terminal voltage exists whenever the blocks are connected, so it cannot be de-energised, only sectioned. Replacement is therefore performed on a live DC source capable of very high fault current, which is why insulated tools and sectioning are procedural requirements rather than good practice. The commercial risk sits alongside the electrical one: from the moment the string is opened the UPS has no stored energy, so the load runs on rectifier and inverter with no ride-through, and any mains disturbance during the work drops it. Strings must be replaced as a complete matched set because series performance is limited by the weakest block, and mixing service ages guarantees the older blocks constrain the new ones and fail early. After installation the charging regime determines the life of the new string: float and boost voltages are chemistry-specific, temperature compensation adjusts them against battery temperature, and a charger left configured for a previous battery type will chronically over- or under-charge the replacement. Because VRLA life follows an Arrhenius relationship in which sustained operation above the design temperature roughly halves service life for every 8 to 10 °C of rise, an uncorrected warm battery room will consume the new string on the same timescale as the old one, which is why environment is treated here as part of the job rather than a separate recommendation.

03Common causes, ranked

These are ordered by likelihood. Presenting every possible cause as equally probable is a failure of diagnosis, not thoroughness.

Most likely

start here
  • ▪String at or beyond service life
  • ▪Battery room temperature well above the design assumption, having shortened life
  • ▪One or more blocks failed, limiting the whole string
  • ▪Previous partial replacement leaving mixed ages in one string

Possible

check next
  • ▪Charger float voltage set for the wrong chemistry, causing chronic over- or under-charging
  • ▪Temperature compensation sensor failed or badly located
  • ▪Repeated deep discharges from frequent or extended outages
  • ▪Interconnect resistance raising local heating

Less common

after the above
  • ▪Manufacturing defect in a block
  • ▪Charger fault over-charging the string
  • ▪Battery monitoring system misreporting, so a healthy string is replaced unnecessarily
  • ▪Physical damage during earlier work

Model specific

verify per unit
  • ▪Float and boost voltages are chemistry-specific and must come from the battery documentation for the blocks actually fitted
  • ▪Lithium strings are managed by a BMS and the UPS may require a matching protocol selection
  • ▪Interconnect torque values are specified by the battery manufacturer
  • ▪Some UPS models inhibit charging above a defined battery temperature
  • ▪Battery test behaviour and what a test failure means differ between UPS models

Environmental

site conditions
  • ▪Warm battery room, which is the dominant determinant of VRLA life
  • ▪Poor ventilation around the cabinet
  • ▪Dust and humidity causing terminal corrosion
  • ▪Very low temperature reducing available capacity

Installation related

built in
  • ▪Battery space with no dedicated cooling despite the design assuming it
  • ▪Undersized interconnects or long cable runs
  • ▪String sized for energy without regard to the discharge rate required
  • ▪Temperature sensor not fitted or not mounted at the battery

Maintenance related

deferred work
  • ▪Capacity never tested, only voltage checked
  • ▪Installation dates never recorded, so string age is unknown
  • ▪Interconnects never re-torqued
  • ▪No commissioning impedance baseline, so degradation could never be trended

Component level

electronics
  • ▪Individual blocks failed, open or shorted
  • ▪Interconnect corroded or loose
  • ▪Battery fuse or circuit breaker degraded
  • ▪Temperature sensor failed

04Safety requirements

Isolation

  • ▪A battery string cannot be switched off. It is live whenever connected and can deliver very high fault current.
  • ▪Open the battery circuit breaker or remove the battery fuse, then section the string before handling blocks
  • ▪Isolate the UPS input and confirm the load has an alternative supply or may be dropped
  • ▪Remember an online UPS supports load through several paths — isolating one does not make the unit safe
  • ▪Prove dead at the point of work, and treat every block as live regardless

Lockout and tagout

  • ▪Lock off and tag the battery isolator and the UPS input
  • ▪Confirm in writing with the site that the load will be unprotected for the duration
  • ▪Where a maintenance bypass carries the load, verify it is genuinely carrying it before proceeding
  • ▪Keep the only key with the person doing the work

PPE

  • ▪Eye protection at all times near a battery installation
  • ▪Acid-resistant gloves and apron for VRLA work
  • ▪Insulated tools rated for the full string voltage
  • ▪Remove watches, rings, chains and metal bracelets before starting
  • ▪Arc-rated protection appropriate to the prospective fault energy of the string

Stored energy

  • ▪The full string voltage appears across the ends of a series string even though each block is low voltage
  • ▪The UPS DC bus and its capacitors remain charged after shutdown
  • ▪Removed batteries remain live and must be handled and stored as live items
  • ▪Lead-acid batteries vent hydrogen; ventilate before and during the work

Specific hazards

  • ▪A dropped tool across battery terminals welds instantly and can rupture the battery or cause it to explode. Insulated tools are not optional, and jewellery must be removed before you start rather than when you notice it.
  • ▪DC arcs do not self-extinguish as AC arcs do, which makes a DC short far more dangerous than the voltage suggests.
  • ▪SECTION the string before handling blocks so you are never working across the full string voltage.
  • ▪Never work on a battery that is swollen, hot, leaking or damaged — isolate the area and escalate.
  • ▪Lithium installations can enter thermal runaway if a damaged module is disturbed; do not attempt to move one.
  • ▪Battery acid causes serious burns; know where the eyewash is before opening the cabinet.

Stop and call a qualified professional if

  • ▪Any battery is swollen, hot, leaking or physically damaged
  • ▪The load cannot be left unprotected and no bypass or alternative exists
  • ▪The string voltage or configuration is beyond your competence to work on safely
  • ▪A lithium module is damaged in any way
  • ▪The correct float and boost settings for the new blocks cannot be established

05Tools required

Tools required and the reason each is needed
ToolWhy it is needed
Insulated tools rated for the full string voltageEvery part of this work is on a live DC source that cannot be switched off
Insulated torque wrenchInterconnects are torque-specified; both loose and over-tight terminals cause failures
True-RMS multimeter rated for the string voltageBlock and string voltage before, during and after the work
Battery impedance analyserTaking the commissioning baseline that makes future trending possible
DC clamp meterConfirming charge current into the new string
Discharge test equipment or load bankProving real autonomy after installation rather than accepting a calculated figure
Temperature loggerEstablishing whether the environment that killed the old string has been corrected
Battery and UPS documentationFloat and boost voltages, torque values and protocol settings must be read, never assumed

06Diagnostic decision tree

Diagnostic decision flowchart: Replacing a UPS Battery String SafelyA 7-step decision flowchart. Each step asks a diagnostic question; answering yes continues down to the next question, while answering no leads to the stated finding. The same sequence is written out in full immediately below this diagram.1. Is any battery swollen, hot, leaking or damaged?Yes — Stop. Isolate the area and escalate — do not handleit.NoContinueYes2. Can the load run unprotected, or is an alternativearranged?Yes — ContinueNoDo not open the string. Arrange coverfirst — the load has no ride-throughonce you start.Yes3. Is the replacement a complete matched set from onebatch?Yes — ContinueNoDo not mix new blocks with old — theold ones drag the new down and thefault returnsYes4. Has the string been sectioned before handling blocks?Yes — ContinueNoSection it. Working across full stringvoltage is avoidable and unnecessary.Yes5. Do the charger settings match the chemistry actuallybeing installed?Yes — ContinueNoCorrect them before recommissioning,or the new string ages prematurelyYes6. Has the environment that shortened the old stringbeen addressed?Yes — ContinueNoA new string in the same warm roomwill fail on the same timescaleYes7. Have installation dates, an impedance baseline andproven autonomy been recorded?Yes — Job completeNoRecord them — without these the nextengineer inherits the same blind spotYesContinue to the step-by-step diagnosis below.
Diagnostic decision flow for replacing a ups battery string safely. Simplified illustration — not a replacement for the manufacturer's model-specific schematic or service data. The same sequence is written out in full below.
  1. 1. Is any battery swollen, hot, leaking or damaged?

    Yes → Stop. Isolate the area and escalate — do not handle it.

    No → Continue

  2. 2. Can the load run unprotected, or is an alternative arranged?

    Yes → Continue

    No → Do not open the string. Arrange cover first — the load has no ride-through once you start.

  3. 3. Is the replacement a complete matched set from one batch?

    Yes → Continue

    No → Do not mix new blocks with old — the old ones drag the new down and the fault returns

  4. 4. Has the string been sectioned before handling blocks?

    Yes → Continue

    No → Section it. Working across full string voltage is avoidable and unnecessary.

  5. 5. Do the charger settings match the chemistry actually being installed?

    Yes → Continue

    No → Correct them before recommissioning, or the new string ages prematurely

  6. 6. Has the environment that shortened the old string been addressed?

    Yes → Continue

    No → A new string in the same warm room will fail on the same timescale

  7. 7. Have installation dates, an impedance baseline and proven autonomy been recorded?

    Yes → Job complete

    No → Record them — without these the next engineer inherits the same blind spot

07Step-by-step diagnosis

Step 1Confirm the string genuinely needs replacing

Inspect
Capacity or discharge test result, per-block voltage and impedance, installation dates
Where
At the battery string
Instrument
Impedance analyser, discharge test equipment
Expected result
Measured evidence that the string cannot deliver its autonomy
If the result is abnormal
Voltage alone is not evidence. A string is replaced on measured capability or age, not on a single failed self-test, and occasionally a monitoring fault has condemned a healthy string.
Next
Step 2

Step 2Plan the outage window and confirm the load position

Inspect
Whether the load can be unprotected, for how long, and what covers it if the mains disturbs
Where
With the site, in writing
Instrument
Agreement recorded before work begins
Expected result
An explicit decision, not an assumption
If the result is abnormal
From the moment the string is opened the UPS has no ride-through. Any mains disturbance during the work drops the load. This is the commercial risk that gets overlooked because the electrical risk is more obvious.
Next
Step 3

Step 3Inspect before touching anything

Inspect
Swelling, leakage, heat, terminal corrosion, cabinet condition and ventilation
Where
At the cabinet
Instrument
Inspection light, infrared thermometer
Expected result
No swelling, leakage or heat
If the result is abnormal
A swollen, hot or leaking battery is a stop-work finding, not an obstacle to work around. Lithium modules that are damaged must not be disturbed at all.
Next
Step 4

Safety: Ventilate before opening a lead-acid cabinet; hydrogen accumulates and has no smell.

Step 4Isolate, then section the string

Inspect
Battery isolator open, fuse removed, string broken into sections
Where
At the battery isolation device and the string
Instrument
Insulated tools, multimeter
Expected result
Working sections at a voltage you are not exposed to across the full string
If the result is abnormal
Sectioning is what turns a full-string-voltage job into a manageable one. Skipping it is a choice to work at a higher voltage than necessary.
Next
Step 5

Safety: Remove jewellery before starting, not when you notice it. A dropped tool across terminals welds instantly.

Step 5Replace as a complete matched set

Inspect
That every block is new, from one batch, and of the specified type
Where
Throughout the string
Instrument
Visual verification of type and batch
Expected result
A uniform string
If the result is abnormal
Mixing new with old is a false economy that returns as a fault within months, because series performance is limited by the weakest block.
Next
Step 6

Step 6Torque interconnects to specification

Inspect
Every interconnect, torqued rather than tightened by feel
Where
Across the whole string
Instrument
Insulated torque wrench
Expected result
All joints at the specified value
If the result is abnormal
Both loose and over-tight terminals cause failures. Judgement is not an acceptable substitute here.
Next
Step 7

Verify for your unit: Interconnect torque values from the battery manufacturer documentation for the blocks fitted.

Step 7Set the charger for the chemistry actually installed

Inspect
Float and boost voltages, temperature compensation, and BMS protocol on lithium
Where
UPS or charger configuration
Instrument
Service interface and the battery documentation
Expected result
Settings matching the new blocks
If the result is abnormal
This is the step most often missed after a change of battery type, and it determines how long the new string lasts. A charger left on the old profile will chronically over- or under-charge.
Next
Step 8

Verify for your unit: Float and boost voltages for the new blocks, from their documentation rather than a general figure.

Step 8Address the environment before signing off

Inspect
Battery room or cabinet temperature, logged rather than spot-checked
Where
At the battery, over a period
Instrument
Temperature logger
Expected result
Sustained temperature within the design assumption
If the result is abnormal
Sustained operation above the design temperature roughly halves VRLA life for every 8 to 10 °C of rise. Leaving a warm room uncorrected consumes the new string on the same timescale as the old.
Next
Step 9

Step 9Record the baseline the next engineer will need

Inspect
Installation dates, block serials, impedance baseline, charge current and proven autonomy
Where
On the equipment and in the maintenance record
Instrument
Impedance analyser, discharge test, written record
Expected result
A baseline that makes future trending possible
If the result is abnormal
Without these, degradation cannot be trended and the next replacement will again be a surprise. This step is what breaks the cycle that produced this job.
Next
Return to service and confirm normal operation

08Repair procedure

The string

component replacement
  • ▪Replace as a complete matched set from a single batch
  • ▪Fit the specified block type, capacity and terminal arrangement
  • ▪Replace corroded interconnects rather than reusing them
  • ▪Dispose of removed batteries through a licensed route, handling them as live items

Charging regime

configuration
  • ▪Set float and boost voltages for the chemistry installed
  • ▪Verify temperature compensation and mount the sensor where it represents the battery
  • ▪Confirm charger current limit suits the new string capacity
  • ▪On lithium, select the matching BMS communication protocol

The charging regime, not the battery brand, decides how long the new string lasts.

Environment

mechanical
  • ▪Provide or restore cooling where the battery space runs warm
  • ▪Improve ventilation and remove heat sources near the cabinet
  • ▪Fit temperature monitoring so the environment is visible rather than assumed

Air-conditioning the battery space is almost always cheaper than the replacement cycle it prevents.

Beyond the string

manufacturer level
  • ▪Refer charger faults where the old string was damaged by over-charging
  • ▪Refer battery monitoring faults that produced a false condemnation

09Post-repair validation

  • ▪Confirm the charger presents the correct float voltage for the new chemistry
  • ▪Confirm charge current flows and tapers correctly as the string fills
  • ▪Record per-block voltage and impedance as the commissioning baseline
  • ▪Prove real autonomy with a timed discharge to a defined end voltage
  • ▪Thermal-check every interconnect under charge after the work
  • ▪Confirm temperature compensation operates and the sensor reads correctly
  • ▪Record installation dates and block serial numbers on the unit and in the maintenance record
  • ▪Log battery room temperature for a period afterwards to confirm the environment is genuinely in band

10When not to repair

  • ▪Strings that have been partially replaced over time — replace the whole set rather than continuing the pattern
  • ▪Any battery showing swelling, leakage or heat damage, which is a disposal item not a repair
  • ▪Installations where the environment cannot be brought within specification, since a new string simply repeats the failure
  • ▪Obsolete UPS models where the battery format is no longer supported
  • ▪Where the UPS itself is at end of life and a new string would outlast the unit

11Prevention

  • ▪Air-condition or ventilate the battery space; heat is the dominant life factor and the cheapest thing to control
  • ▪Test capacity annually rather than relying on voltage or the UPS internal test alone
  • ▪Take an impedance baseline at commissioning and trend against it so degradation is visible early
  • ▪Record installation dates on the batteries themselves and in the maintenance log
  • ▪Re-torque interconnects at every service visit
  • ▪Replace strings as complete matched sets, planned at end of design life rather than at failure
  • ▪Fit battery monitoring on installations where an outage is costly — continuous evidence beats an annual snapshot

12Questions engineers actually ask

Can we replace just the failed blocks to save money?

On a lead-acid string this almost always costs more in the end. A series string performs to its weakest member, so new blocks placed alongside old ones are dragged down to their condition and the fault returns within months. Replace the whole set from one batch. If the string is young enough that a single block failing is genuinely unusual, find out why that block failed before fitting anything.

How long is the load unprotected during the work?

From the moment the string is opened until the new one has taken enough charge to be useful — which is longer than the physical swap. During that window the UPS has no ride-through at all, so any mains disturbance drops the load. Agree this with the site in writing before starting, and arrange cover if the load cannot take that risk.

Why did our last replacement string fail so quickly?

Two causes account for most early failures. The charger was left set for the previous battery type, so the new string was chronically over- or under-charged from day one. Or the battery room is warm, and nothing was done about it — VRLA life roughly halves for every 8 to 10 °C of sustained operation above about 25 °C, so a hot room consumes a five-year string in about two. Neither is the battery's fault.

Do we really need a torque wrench for battery terminals?

Yes. Both under- and over-tightening cause failures: a loose joint heats and eventually fails, an over-tight one damages the post or terminal. The manufacturer specifies a value because judgement by feel is unreliable across dozens of identical-looking connections, and this is one of the few places where the specified figure genuinely must be followed.

Standards and references

  • ▪IEC 62040-1 — UPS general and safety requirements
  • ▪IEC 62040-3 — UPS performance and test requirements
  • ▪IEEE 1188 — recommended practice for maintenance, testing and replacement of VRLA batteries
  • ▪IEEE 1184 — guide for batteries for uninterruptible power supply systems
  • ▪EN 50272-2 — safety requirements for secondary batteries and battery installations
  • ▪The battery and UPS manufacturers' documentation for the specific equipment, which is the only valid source for float and boost voltages, interconnect torque and protocol settings referred to throughout

This guidance is written from engineering principle and is not a substitute for the manufacturer's model-specific documentation. Where a figure is model-specific, confirm it against the service data for your unit before acting on it.

Need this diagnosed properly?

Send us the make, model and any fault codes shown, and photographs of the controller display if you have them. Our mobile workshop covers all 47 counties.

Call 0768860665WhatsApp the fault detailsRequest a site inspection

Related diagnosis guides

  • ups not charging batteries
  • ups on battery with mains present