Table of Contents

Advertisement

6.2.1

Checksum

Calulating the Checksum:
Sum the ASCII codes of all the characters contained in the command in
addition to the 'CR' terminator. The Checksum is the sum value expressed in
Hexadecimal format.
Example: Command "$012(CR)"
Sum = '$' + '0' + '1' + '2' = 24h + 30h + 31h + 32h = B7h
Checksum = "B7"
DCON Command with Checksum ="$012B7(CR)"
Example: Response "!01200600(CR)"
Sum = '!' + '0' + '1' + '2' + '0' + '0' + '6' + '0' + '0'
= 21h+30h+31h+32h+30h+30h+36h+30h+30h
= 1AAh
Checksum = "AA"
DCON Response with Checksum = "!01200600AA(CR)"
Note: The Checksum is the sum value expressed in capital letters.
Page 31
ICP DAS, ZT-2017 and ZT-2017C AI Series User Manual, Version 1.0.1
Copyright © 2012 by ICP DAS Co., Ltd. All Rights Reserved.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zt-2017c

Table of Contents