Delta Electronics DOP-A Series Network Card User Manual


 
Chapter 4 Macro Function|ScrEdit Software User Manual
4-42 Revision Apr. 30th, 2007, 2007PDD23000002
4.4 Error Messages
When compiling, it will shows errors in output window for user to find out easily. Some errors occur because
of the user’s carelessness, sometimes just because the user misses an input command. Some errors will be
found out easily in a short program. But that will be difficulty in a long Macro. To help the user debug, HMI
editing software provides error messages when compiling program for reminding the user what the error is.
Error messages when editing
Code – 100: LABEL cannot be found
There is no such LABEL that GOTO designates.
Code – 101: Recursion occurs
This error message is usually occurred in sub-macro. The ability of a sub-macro to CALL itself is called
recursion. No matter it is called directly or indirectly. Basically, recursion cannot be adopted for sub-
macro. The user can use GOTO or FOR (infinite times) to replace it.
Code – 102: More than 3 nested FOR is used
This error message is to warn the user not to use more than 3 nested FOR commands. The purpose is
to avoid insufficient memory. The user 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 user. The purpose is to warn the user to be more careful when editing (reduce input error or
avoid forgetting editing the corresponding sub-macro) and prevent unexpected error.
Code – 104: Number of NEXT is less than the number of FOR
Number of NEXT and FOR should match. This error code is used to remind the user to find the missing
NEXT.
Code –105: Number of FOR is less than the number of NEXT
Number 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 LABEL in the same Macro. It means that when
executing GOTO command, two different results will be generated and the program will be confusing
with that. In order to avoid unexpected error, the user will get an error message during editing.