A "script" in zenon is not a snippet of code as you may think in the traditional sense, but rather a configured collection of zenon functions, executed in order. A common use of a zenon script is to load several screens at project startup, for example:
Function 1 - Screen switch – Navigation
Function 3 - Screen switch – Alarm Bar
Function 4 - Screen switch – Home Screen
Function 5 – Language switch – English.txt
Function 6 – Switch palette – High contrast
zenon offers pre-defined scripts, for specific purposes. The pre-defined script named "AUTOSTART" will be executed automatically by the Service Engine, at the start of the project.
If you use a zenon network project (e.g. Server-Client), the "AUTOSTART" script will not be executed on the Service Engine clients. For this, you need a pre-defined script with the special name "AUTOSTART_CLIENT". The "AUTOSTART_CLIENT" script will be executed at startup on a Service Engine client.
Read more in the zenon online documentation: Manual -> Service Engine & Engineering Studio -> Functions and scripts -> Scripts -> Pre-defined scripts.