Power ON event

Static world zones should be created on the power on event. How do i do this? How do i make a routine that is only called on the power ON event?

You want to setup an event routine. The routine itself is just a standard routine/procedure.

but you go into configuration / controller / event routines and define that you want it to run on poweron (like the FroniusStartup routine) I have in the example picture