Human Machine Interface User Manual
Table Of Contents
- Cover
- Preface
- Table of Contents
- Chapter 1 Introduction
- Chapter 2 Creating and Editing Screens
- 2.1 ScrEdit (Screen Editor) Setup
- 2.2 How to Start ScrEdit
- 2.3 Menu Bar and Toolbar (File)
- 2.4 Menu Bar and Toolbar (Edit)
- 2.5 Menu Bar and Toolbar (View)
- 2.6 Menu Bar and Toolbar (Element)
- 2.7 Menu Bar and Toolbar (Screen)
- 2.8 Menu Bar and Toolbar (Tools)
- 2.9 Menu Bar and Toolbar (Options)
- 2.10 Menu Bar and Toolbar (Window)
- 2.11 Menu Bar and Toolbar (Help)
- Chapter 3 Element Function
- Chapter 4 Macro Function
- Chapter 5 Control Block and Status Block
- Chapter 6 Internal Memory
- Chapter 7 Example Explanation
- Appendix A Specifications and Installation
- Appendix B USB Flash Drive Function
- Appendix C Main Menu Operation of HMI System
![](/manual/delta-electronics/human-machine-interface-dop-ae-series/human-machine-interface-user-manual/images/img-236.png)
Chapter 4 Macro Function|ScrEdit Software User Manual
Revision Apr. 30th, 2007, 2007PDD23000002 4-31
However, in the sub-macro program, the user can call another sub-macro program but the
levels for calling sub-macro should be less than 6 levels.
CALL
RET
Main
Macro
Sub-Macro
A1
Fig. 4.3.1
FOR…NEXT
Program Loop
Equation:
FOR V1
Statement
NEXT
It is for multi-level loops. The multi-level loop can be up to 3 levels. V1 can be the internal memory or
constant. When this command is executed, the number of V1 Statement can be executed continuously.
Statement is the combination of a section of macro commands.
Example:
$10 = 10
$1 = 0
FOR $10
$1 = $1 + 1
$10 = 2
NEXT
After the operation, the result is $1 = 10, $10 = 2.
Please note that the loop times will not change even if the user resets the value within $10.
END
End the macro
Equation:
Statements1
END
Statements2