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 begin ning of a
program. So, the user can preset some necessary initial values in this ma cro 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 t ime
with a well-designed initial macro.
When HMI is powered on or when the user exits
the system menu to activate the Screen Editor
(Execute Initial
Macro)
Execute Initial Macro
After Screen Open Macro
is executed
Execute Open Macro
Open the Screen
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
execute this macro again from the first macro command. The user can click Options >
Configuration > General tab and use Background macro update cycle option to
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