Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  55
Chapter 2 Program Instructions
CSUM  
Field of Application
 Statement calculating the checksum of an array of strings.
Syntax CSUM<ncon>,<svar>,<nvar>
<ncon>  is the type of checksum calculation:
 1:   Longitudinal Redundancy Check (LRC)
   XOR in each character in each string
   array[0][0] xor array[0][1] ... array[n][n] 
 2:   Diagonal Redundancy Check (DRC)
   right  rotation,  then  XOR  on  each  character  in  each 
 string
   rot(array[0][0] xor array[0][1]
 3:   Longitudinal Redundancy Check (LRC)
   Strip string of DLE (0x10) before doing the LRC
<svar> if <ncon> =1 or 2: The array of strings of which the checksum 
is to be calculated.
 if <ncon> = 3: Checksum string.   
<nvar> is the variable in which the result will be presented.
Remarks
 These types of  checksum calculation can  only be used  for string arrays, 
not for numeric arrays. In case of CSUM 3,<svar>,<nvar>, the resulting 
variable will be the indata for next CSUM calculation, unless the 
variable is reset.
Example
 In this example, the DRC checksum of an array of strings is calculated:
  10   ARRAY$(0)="ALPHA"
  20   ARRAY$(1)="BETA"
  30   ARRAY$(2)="GAMMA"
  40   ARRAY$(3)="DELTA"
  50   CSUM 2,ARRAY$,B%
  60   PRINT B% :REM DRC CHECKSUM
  RUN
  yields:
  252










