Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 736
Chapter 2 Program Instructions
CHECKSUM
Field of Application
Statement calculating the checksum of a range of program lines in
connection with the transfer of programs.
Syntax CHECKSUM(<nexp
1
>,<nexp
2
)
<nexp
1
> is the number of the fi rst line in a range of program lines.
<nexp
2
> is the number of the last line in a range of program lines.
Remarks
The checksum is calculated from parts of the internal code using an
advanced algorithm. Therefore, it is recommended to let the printer
calculate the checksum before the transfer of a program. After the
transfer is completed, let the receiving printer do the same calculation
and compare the checksums.
Example
In this example, the checksum is calculated of all program lines between line
10 and line 2000 in the program "DEMO.PRG".
NEW
LOAD "DEMO.PRG"
PRINT CHECKSUM(10,2000)
yields:
60095