Programming instructions

59
Intermec Fingerprint 6.13 – Programmer's Guide
6. FILE SYSTEM, cont'd.
9. Transferring Files
Between Printers
Note:
Do not confuse CHECKSUM with CSUM,
see chapter 6.10 “Arrays”.
If you want to transfer a file from one printer to another printer, start
by transferring the file to the host. Then disconnect the first printer
and download the file to the second printer (or have the two printers
connected to separate serial ports). After the transfer of programs
between two connected printers is completed, you can check if the
transfer was successful by means of a CHECKSUM function.
CHECKSUM
The CHECKSUM function uses an advanced algorithm on parts of
the printer's internal code. Thus, calculate the CHECKSUM on the
program in the transmitting printer before the transfer. After the
transfer is completed, LOAD the program in the receiving printer
and perform the same calculation. If the checksums are identical,
the transfer was successful.
Note that the algorithm was changed in Fingerprint 4.0. Thus, the
CHECKSUM function will return other checksums in printers
using earlier versions of Fingerprint than 4.0 compared to printers
using 4.0 or later versions. If possible, use the same Fingerprint
version in both printers.
Example:
This example calculates the checksum in the lines 10–90000 in the
program "DEMO.PRG".
LOAD "DEMO.PRG"
PRINT CHECKSUM (10,90000)