Delta-electronics DELTA DUP-B Manuel d'utilisateur Page 378

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 491
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 377
Chapter 3 Creating and Editing Screens
Remark
The calculation result can be stored as unsigned WORD.
Var1 and Var2 can be internal memory only. Var3 can be internal memory or
constant.
Example
The starting address is for calculation $0, the data length is set to 2. After the
communication, the calculated checksum through addition calculation is stored in
$2 (this is an operation of unsigned 16-bit data).
XORSUM (Use XOR to Calculate Checksum)
Equation
Var1 = XORSUM (Var2, Var3)
Explanation
This command uses XOR to calculate checksum. Var1 is the value after calculation,
Var2 is the starting address for calculation and Var3 is data length.
Remark
The calculation result can be stored as unsigned WORD.
Var1 and Var2 can be internal memory only. Var3 can be internal memory or
constant.
Example
The starting address is for calculation $0, the data length is set to 2. After the
communication, the calculated checksum through XOR calculation is stored in $2
(this is an operation of unsigned 16-bit data).
Revision May, 2010 3-357
Vue de la page 377
1 2 ... 373 374 375 376 377 378 379 380 381 382 383 ... 490 491

Commentaires sur ces manuels

Pas de commentaire