- 52 -
Copyright L
EXIBOOK
2002
GB
692.820323
?
Prog
EXE
0
2
EXE
0
942.8090416
EXE
4.3 PROGRAM DEBUGGING (Correcting Errors)
After a program has been created and input, it will sometimes generate error messages when it is executed, or
it will produce unexpected results. This indicates that there is an error somewhere within the program that needs to
be corrected. Such programming errors are referred to as “bugs”, while correcting them is called “debugging”.
4.3.1 Debugging when an error message is generated
An error message is displayed as follows:
The error message informs the operator of the program area (P0 to P9) in which the error was generated. It also states
the type of error, which gives an idea of the proper countermeasure to be taken.
4.3.2 Error messages
There are a total of seven error messages.
1) Syn ERROR (Syntax error): Indicates a mistake in the formula or a misuse of program commands.
2) Ma ERROR (Mathematical error): Indicates the calculation result of a numeric expression exceeds
10100, an illogical operation (e.g. division by zero), or the input of an argument that exceeds the input
range of the function.
3) Go ERROR (Jump error): Indicate a missing Lbl for the Goto command, or that the program area for
the Prog command does not contain a program.
4) Ne ERROR (Nesting error): Indicates a subroutine nesting overflow by the Prog command.
5) Stk ERROR (Stack error): Indicates the calculation performed exceeds the capacity of the stack for
numeric values or for commands.
6) Mem ERROR (Memory error): Indicates the attempt to use a memory name such as Z[5] without
having expanded memories.
Program check
Correction
Deletion
Insertion
Operation
●
WRT mode specification
●
Program area specification (Omitted if P0)
●
Start verification
●
Verification of contents
●
Move the cursor to the position to be corrected
●
Press correct keys.
●
Move the cursor to the position to be corrected
●
Delete
●
Move the cursor to the position to be inserted into
●
Specify the insert mode.
●
Press desired keys.
Keys used
EXE
2
MODE
EXE
DEL
SHIFT
Ins
PO Syn ERROR
Type of error.
Program area where error was
generated.