NuDAM® - Q Products
NuDAM® - Q Products
NuDAM® - Q Products
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1.10. How to Calculate Checksum Value<br />
Format of NuDAM Commands<br />
(LeadingCode)(Addr)(Command)(Data)[Checksum]<br />
When checksum is enable then [Checksum] is needed, it is 2-character.<br />
[Checksum] = ((LeadingCode)+(Addr)+(Command)+(Data)) MOD 0x100<br />
Example 1: checksum is disable<br />
User Command : $012<br />
Response : !01400600<br />
Example 2: checksum is enable<br />
User Command : $012B7<br />
Response : !01400600AC<br />
‘$’ = 0x24 ‘0’ = 0x30 ‘1’ = 0x31 ‘2’ = 0x30<br />
B7 = ( 0x24 + 0x30 + 0x31 + 0x32 ) MOD 0x100<br />
‘!’ = 0x24 ‘0’ = 0x30 ‘1’ = 0x31 ‘4’ = 0x34<br />
‘6’ = 0x36<br />
AC= ( 0x24+ 0x30+ 0x31+ 0x34+ 0x30+ 0x30+ 0x36+ 0x30+ 0x30) MOD 0x100<br />
10 • Introduction