Modula 10,000 checksum 
Author Message
 Modula 10,000 checksum

I have programmed different checksum characters in the past. Now some
device wants a 2 character modula 10,000 checksum for serial
communication.
Can someone give me a hint how to calculate this ??

Thanks in advance !

Piet Lauwen

http://www.*-*-*.com/ ~plau/index.html.



Tue, 21 Sep 1999 03:00:00 GMT  
 Modula 10,000 checksum


Quote:
> I have programmed different checksum characters in the past. Now some
> device wants a 2 character modula 10,000 checksum for serial
> communication.
> Can someone give me a hint how to calculate this ??

Is...

  REM Initialize
  ' Blah etc.
  DIM FirstChar  AS STRING * 1,
      SecondChar AS STRING * 1

  ' Blah etc.

  CHK = ( ASC( FirstChar ) + 256 * ASC( SecondChar ) ) MOD 10000

...what you are after?

( you might need to swap the + and * signs... )
--


                | web......: http://www.student.comp.brad.ac.uk/~crwhite



Mon, 27 Sep 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Turn 10 dollars into 10,000

2. Free Oracle tool for caller 10,000

3. Another question you've heard 10,000 times...

4. Can one file contain 10,000 files of different size?

5. >10000 lines Excel - MailMerge with word via VBA Macro

6. How to process up to 10000 messages a day , Combination VB Outlook

7. 10000 records in access database with images

8. 16 & 39 = 10000

9. Changing the settings on 10000 computers

10. Factorial of 10000

 

 
Powered by phpBB® Forum Software