Delta Electronics A10 User Manual page 252

Dop series hmi
Hide thumbs Also See for A10:
Table of Contents

Advertisement

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.
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
Revision Apr. 30th, 2007, 2007PDD23000002
Chapter 4 Macro Function|ScrEdit Software User Manual
Main
Macro
CALL
Sub-Macro
RET
Fig. 4.3.1
A1
4-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents