
Chapter 13 Device Logic (Pawn)
13.2.11 CRC & hash
13.2.11.1 Arrays with symbolic indices
TMD5_Ctx
Context structure for the MD5 calculation
// init
After being set to "0", the context structure can be used to
//
calculate a new hash. If a calculation
//
should be implemented by calling up the "MD5" function repeatedly,
//
write access must not be granted for this element.
// tmp
no write access permitted for internal use
#define TMD5_Ctx[.init, .tmp[22]]
13.2.11.2 Functions
native CRC16(data{}, len, initial=0xFFFF);
Returns the calculated modbus CRC16 of the transferred data
Parameter
Explanation
data
Array that contains the data for which the CRC16 should be calculated
len
Number of bytes that must be taken into consideration during the calculation
initial
Initial value for calculating the CRC16 - OPTIONAL
Explanation
Return value
Calculated CRC16
native CRC32(data{}, len, initial=0);
Returns the calculated Ethernet CRC32 of the transferred data
Parameter
Explanation
data
Array that contains the data for which the CRC32 should be calculated
len
Number of bytes that must be taken into consideration during the calculation
initial
Initial value for calculating the CRC32 - OPTIONAL
Explanation
Return value
Calculated CRC32
Rev. 05
177
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......