
Chapter 2. Functions
2-35
2.8
Error handling
2.8.1
RUN / STOP at operation error
When an operation error (indirect addressing error, BCD operation error, etc) occurs, the CPU
decide to continue operation or not based on parameter setting.
Refer the chapter 2.4.4 for details.
2.8.2
Error flags (F110 / F115)
If an error occurs while the CPU is running, 2 error flags (F110 and F115) are switched on.
The F110 is updated after each instruction is executed. However, the executed instruction is not
related to any error (such as the LOAD instruction), it keeps the previous value. In other hand,
the F115 keeps the on status after it was switched on at once. To clear the F115 flag, execute
the CLE instruction. The following table shows an example of F110 and F115 operation.
Program
Error occurred?
F110
F115
Remarks
ADD D0 10 M20
No
OFF
OFF
MOV D0 #D10
Yes
ON
ON
D10 = hFFFF
LOAD P0000
N/A
ON
ON
INC D0
No
OFF
ON
LOAD P0001
N/A
OFF
ON
WAND P01 M10 #D400
Yes
ON
ON
D400 = hFF00
LOAD P0002
N/A
ON
ON
WAND P01 M10 D300
No
OFF
ON
CLE
N/A
OFF
OFF
Clear F115
LOAD P0003
N/A
OFF
OFF
WAND P01 M10 D500
No
OFF
OFF
BCD hFFFF D20
Yes
ON
ON