I'am working on a project to create an UDP-link between Honeywell Field controller and a LAbView PC, and now I'am pretty much stuck.
I have a LAbView program that calculates CRC16 checksum from a string with polynomial X16+X12+X5+1.
Now i would need a pascal code that calculates CRC16 checksum from a string with the same polynomial so that the results would match.
The pascal compiler iam working with is integrated to the Honeywell's editor but iam 90% sure it's Borland 5.5
My experience in programming is very limited and i have no idea how to make such a program, so if anyone could help me at all i would appreciate it.
I received a message that i should give more information so i tried to write a bit more information about my problem:
The operating system on the computer that has the compiler is Windows XP, but from that computer the program is then loaded into the Field Controller, and i don't know the specific operating system inside FC, it has embedded Pentium3 processor memory and environment that can run the pascal code.
X16 means x to the 16th power, the LAbView program i have that counts CRC16 check is said to count it with that polynom.
LabView program seems to use calculated code '8408' from that polynom and preset value FFFF as in hexadecimal to calculate the CRC16 checksum.
While browsing the internet i figured out that the polynomial is used to count a "lookup" table which is then used to calculate the CRC16 checksum, here is a link(http://www.efg2.com/Lab/Mathematics/CRC.htm
) to a web page that has a code that calculates CRC16 checksum, it is pretty much what i need but it is done in delphi pascal and i cant seem to get it compiled in my compiler.
So basicly what i need is a Pascal program that counts a CRC16 checksum from a input string, with the same preset value and the same polynomial.
I hope this helps even a slightest bit :)
Thank you in advance.
PS. ask if u need some more information, ill do my best to describe the problem