Delta Electronics A10 User Manual page 251

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

Advertisement

Chapter 4 Macro Function|ScrEdit Software User Manual
comparison command, IF...ELSE...ENDIF.
FCMP
Floating point value comparison command.
Equation: V1 = FCMP(V2, V3) (Signed DW)
V1
0
1
2
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.
4-30
FCMP(V2, V3)
V2 = V3
V2 > V3
V2 < V3
Revision Apr. 30th, 2007, 2007PDD23000002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents