Delta Electronics DOP-AS Series Network Card User Manual


 
Chapter 4 Macro Function|ScrEdit Software User Manual
4-30 Revision Apr. 30th, 2007, 2007PDD23000002
comparison command, IF…ELSE…ENDIF.
FCMP
Floating point value comparison command.
Equation: V1 = FCMP(V2, V3) (Signed DW)
V1 FCMP(V2, V3)
0 V2 = V3
1 V2 > V3
2 V2 < V3
Flow Control
There are five types for flow control: GOTO, LABEL, CALL..RET, FOR…NEXT and END.
GOTO
Unconditionally go to a specific Label. GOTO command will jump to designated label like Label V1
unconditionally.
Equation: GOTO LABEL V1
Go to the internal designated Label V1 in the program unconditionally.
Example:
Go to the position of designated Label 2 and continue to execute the program unconditionally.
GOTO LABEL 2
…..
LABEL 2
LABEL
Label such as Label V1
Equation: LABEL V1
Please note that the label cannot be repeated in a Macro.
CALL..RET
Call Sub-macro program
Equation: CALL V1
V1 represents the sub-macro number. The sub-macro number could be 1 ~ 512 and V1 can be internal
memory or constant. The rights of macro control will be transferred to sub-macro when executing CALL
V1 command. After CALL V1 command is executed and completed, V1 needs to return through RET
command. RET command will transfer the rights of macro control to the next command of CALL
command. The sub-macro number could be 1 ~ 512. Regarding the comment name of the sub-macro,
the user can enter it freely. When calling sub-macro program, only the sub-macro number can be called.