Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 778
Chapter 2 Program Instructions
ERR
Field of Application
Function returning the code number of an error that has occurred.
Syntax ERR
Remarks
The fi rmware is able to detect a number of error conditions. The errors are
represented by code numbers according to Chapter 7, “Error Messages.”
The ERR function enables the program to read the coded error number.
Thereby you may design your program to take proper action depending on
which type of error that may have occurred.
Example
In this example, the code number of the error decides the action to
be taken:
10 ON ERROR GOTO 1000
. . . . .
. . . . .
100 PRTXT "HELLO"
110 PRINTFEED
120 END
. . . . .
. . . . .
. . . . .
1000 IF ERR=1005 THEN PRINT "OUT OF PAPER"
1010 RESUME NEXT
You can also check the number of the last error since power up:
PRINT ERR
yields for example:
1022