Delta Electronics DUP-B Network Router User Manual


 
Chapter 3 Creating and Editing Screens
3.14.1.11 Sub-Macro
Each project (Screen Editor program) is capable of containing 512 sub-macros which is
labeled from 1 to 512 by default (Fig. 3-14-5, Fig. 3-14-6). Sub-macro is similar to the
subroutine in the in program. The user can write repeated action or function in
sub-macro to save macro editing time and easy maintain. For example, a function is
written named sub-macro 2, the user only needs to write “CALL 2” in Macro whenever it
is used. In the sub-macro program, the user can also call other submacro. However, in
order to keep sufficient memory, the levels for CALL sub-macro must be less than 6
levels. In addition, as the sub-macro are named 1 through 512 by default, when the
user wants to change the name of the sub-macro to a more user-friendly description,
the user can rename the sub-macro freely.
Number of the Sub-macro
Name of the Sub-macro
Fig. 3-14-5 Sub-macro Screen I Fig. 3-14-6 Sub-macro Screen II
To call a specific sub-macro, a CALL command is used.
For example:
Create a Screen Open Macro command and a Sub-Macro first (Fig.3-14-7, Fig. 3-14-8).
The execution process of the Screen Open Macro will be shown as the Fig. 3-14-9.
Fig. 3-14-7 Screen Open Macro Fig. 3-14-8 Sub-Macro 1
Revision May, 2010 3-287