This function of the
⇘
CAA_Memory.library calculates the check sum CRC16-CCITT
Input:
pMemoryBlock
|
DWORD
|
Address of memory area
|
uiLength
|
UINT
|
Size of area in bytes
|
Output:
MEM.CRC16_CCITT
|
WORD
|
check sum
|
Example:
sTest : STRING(10) := '123456789' ;
->
MEM.CRC16_CCITT(ADR(sTest), 9) = 16#29B1