F_CheckSum16
 
The function "F_CheckSum16" can be used to determine a 16-bit checksum for any data.
 Return value
Name  | Type  | Description  | 
|---|---|---|
F_CheckSum16  | WORD  | 
  | 
 Inputs
VAR_INPUT
    dwSrcAddr  : POINTER TO BYTE;
    cbLen      : UDINT;
    wChkSum    : WORD;
END_VARName  | Type  | Description  | 
|---|---|---|
dwSrcAddr  | POINTER TO BYTE  | Address of the data buffer.  | 
cbLen  | UDINT  | Length of the data buffer.  | 
wChkSum  | WORD  | : Initial value = 0 or last checksum.  | 
Requirements
Development environment  | Target platform  | PLC libraries to be integrated (category group)  | 
|---|---|---|
TwinCAT v3.1.0  | PC or CX (x86, x64, Arm®)  | Tc2_Utilities (System)  |