Required devices:
Available remote controllable switch
https://www.socomec.com/files/live/sites/systemsite/files/SCP/2_commutateurs/atys_ul/542564c.pdf
it is a transfer switch but it's perfect for this application since it's UL listed and in this case you need to use it as a SPST switch.
Protective relay is a relay device designed to trip a circuit breaker when a fault is detected. Abnormal operating conditions are as over-current, over-voltage, reverse power flow, over-frequency, and under-frequency. In modern times the digital relay is widely used, usually these relays will have the ability to trip the breaker and output a signal, and can receive the command to close the breaker if the breaker has a motor drive.
Available protective relay
A synchronism checking relay provides a contact closure when the frequency and phase of two sources are similar to within some tolerance margin. A “synch check” relay is often applied where two power systems are interconnected, such as at a switchyard connecting two power grids, or at a generator circuit breaker to ensure the generator is synchronized to the system before connecting it.
Available sync relays
https://www.pc-s.com/pdf/multitek-synchronising-check-relay-m200.pdf
https://thiim.com/datasheets/synd.pdf
https://cromptoncanada.com/wp-content/uploads/2014/11/Protector-256-PLLU.pdf
The editor did NOT test these devices above.
Consult these device manufacturers if they are suitable for you application before design!
Though the transformer in this diagram is not always necessary.
PWS2-30K-NA has NO neutral current output ability in grid-forming mode.
In case of 277V loads, typically industrial illumination, an isolation transformer is required for providing neutral current caused by unbalanced single phase loads.
After firmware version D142, the grid-tied to off-grid toggling is optimized, the last two steps are combined.
When the grid outage occurs, just turn off the disconnect. And set “off-grid” register, the PCS will automatically clear the fault flags and start in grid forming mode. No need to send clear fault and start command, this will make the starting time 2~3 seconds.