Chapter 3 Creating and Editing Screens 3.14.1.8 Initial Macro There is only one initial Macro in a program. It is executed first at the beginning of a program. So, the user can preset some necessary initial values in this macro to omit step-by-step settings and also control initial settings to avoid unexpected problem by an unknown initial value. If the user needs to setup any special setting in the special address of the external controller, the user can use initial macro to set it. It saves time with a well-designed initial macro. 3.14.1.9 Background Macro There is only one background Macro in a program.
It always exists in a program and is executed continuously like background during HMI operation. But the execution of a Background Macro is to execute one or more commands at a time, not finish the execution ONCE. After the last macro command is executed, the system will start to Configuration > General tab and use Background macro update cycle option to execute this macro again from the first macro command. The user can click Options > determine the lines of the background macro commands (see Figure 3-14-3) Fig.
3-14-3 Background macro update cycle 3-284 Revision May, 2010 When HMI is powered on or when the user exits the system menu to activate the Screen Editor (Execute Initial Macro) Execute Initial Macro Execute Open Macro After Screen Open Macro is executed Open the Screen