Delta Electronics DUP-B Network Router User Manual


 
Chapter 3 Creating and Editing Screens
3.14.4 Macro Error Messages
When compiling, it will shows errors in output window for user to find out easily. The users
can read error messages by macro. Once there is an error and the users execute a correct
command before reading error messages, the error message will be overwritten. When
executing each macro, each Macro error message will not be influenced by other macros.
Error Messages While Editing
Code – 100 LABEL cannot be found
There is no such LABEL that GOTO designates.
Code – 101 Recursion occurs
This error message usually shows in sub-macro. The function of a sub-macro to call is
called recursion whether the HMI calls it directly or not. Basically, recursion cannot be
adopted for a sub-macro. You can use GOTO or FOR (infinite times) to replace it.
Code – 102 More than 10 nested FOR is used
This error message statement is to warn the user not to use more than 10 nested FOR
commands. The purpose is to avoid insufficient memory. The users can use GOTO or
IF to replace it.
Code – 103 Sub-macro does not exist
This error message means that there is no sub-macro in the program. For example,
CALL 5 means CALL sub-macro 5. If the user does not edit sub-macro 5 in the program,
this error message will display to warn the users. The purpose is to warn the users to
be more careful when editing (reduce input error or avoid forgetting to edit the
corresponding sub-macro) and prevent unexpected error
Code – 104 Number of NEXT is less than the number of FOR
Numbers of NEXT and FOR should match. This error code is used to remind the user to
find out the missing NEXT.
Code – 105 Number of FOR is less than the number of NEXT
Numbers of FOR and NEXT should match. This error code is used to remind the user if
there is any missing FOR.
Code – 106 Repeated LABEL
This error message means that there are repeated LABELs in the same Macro. The
program will be confusing with that. This may be caused by carelessness (an input
error or forgetting to edit the corresponding sub-macro), and the user will get an error
message during editing to help the user avoid unexpected error.
3-376 Revision May, 2010