Measurement-computing CB-COM-7021 Manuel d'utilisateur Page 26

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 76
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 25
26
CB-7021, CB-7022, CB-7024 Users Manual
2. Command
Command Format: (Leading)(Address)(Command)[CHK](cr)
Response Format: (Leading)(Address)(Data)[CHK](cr)
[CHK] 2-character checksum
(cr) end-of-command character, character returns(0x0D)
Calculate Checksum:
1. Calculate ASCII sum of all characters of command (or
response) string except the character returns(cr).
2. Mask the sum of string with 0ffh.
Example:
Command string: $012(cr)
Sum of string = ‘$’+‘0’+‘1’+‘2’ = 24h+30h+31h+32h = B7h
The checksum is B7h, and [CHK] = “B7”
Command string with checksum: $012
B7(cr)
Response string: !01300600(cr)
Sum of string: ‘!’+‘0’+‘1’+‘3’+‘0’+‘0’+‘6’+‘0’+‘0’
= 21h+30h+31h+33h+30h+30h+36h+30h+30h = 1ABh
The checksum is ABh, and [CHK] = “AB”
Response string with checksum: !01300600AB(cr)
steSdnammoClareneG
dnammoCesnopseRnoitpircseDnoitceS
FFCCTTNNAA%AA!noitarugifnoCeludoMteS 1.2.ceS
2AA$FFCCTTNNAA!noitarugifnoCdaeR 2.2.ceS
5AA$SAA!sutatSteseRdaeR 3.2.ceS
FAA$)ataD(AA!noisreVerawmriFdaeR 4.2.ceS
MAA$)ataD(AA!emaNeludoMdaeR 5.2.ceS
)ataD(OAA~AA!emaNeludoMteS 6.2.ceS
Vue de la page 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 75 76

Commentaires sur ces manuels

Pas de commentaire