The inverter automatically gives priority to 230-volt mains power as soon as it is applied. During the switchover from inverter to external mains power supply, the unit synchronises the frequency and phase of the 2 voltages.
The switchover takes place at the zero-voltage point, when the phases are synchronised, which prevents damage to the connected electrical devices.