F_CheckSum16

F_CheckSum16 1:

The function "F_CheckSum16" can be used to determine a 16-bit checksum for any data.

F_CheckSum16 2: Return value

Name

Type

Description

F_CheckSum16

WORD

 

F_CheckSum16 3: Inputs

VAR_INPUT
    dwSrcAddr  : POINTER TO BYTE;
    cbLen      : UDINT;
    wChkSum    : WORD;
END_VAR

Name

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)