Delta Electronics DELTA DUP-B Manual De Usuario

Descargar
Página de 491
 
Chapter 3 Creating and Editing Screens 
 
LABEL (Label such as Label Var1) 
Equation 
LABEL Var1 
 
Explanation 
GOTO statement shifts the program execution to the position of LABEL 
unconditionally. 
 
Remark 
 
Var1 can be constant only.   
 
A label value is unique per macro and it cannot be used more then once in a 
single macro. The user can only use LABEL 1 once per individual macro. 
 
Example 
LABEL 1. 
 
 
 
CALL..RET (Call Sub-Macro Program) 
Equation 
CALL Var1…RET 
 
Explanation 
“CALL Var1” is to call sub-macro Var1. Var1 represents the sub-macro number.   
“RET” is to exit sub-macro Var1. It should be placed in the end of the Var1 sub-macro 
command. 
 
Remark 
 
The sub-macro number could be 001 – 512.   
 
Var1 can be internal memory or constant. 
 
Revision May, 2010 
 
 
3-349