F_CreateHashTableHnd

F_CreateHashTableHnd 1:

The function initializes the hash table handle. The table handle must be initialized once by calling the F_CreateHashTableHnd function.

F_CreateHashTableHnd 2: Return value

Name

Type

Description

F_CreateHashTableHnd

BOOL

 

F_CreateHashTableHnd 3: Inputs

VAR_INPUT
    pEntries   : POINTER TO T_HashTableEntry := 0;
    cbEntries  : UDINT := 0;
END_VAR

Name

Type

Description

pEntries

POINTER TO T_HashTableEntry

Address of the first T_HashTableEntry array element. The address can be determined with the ADR operator (type: T_HashTableEntry).

cbEntries

UDINT

T_HashTableEntry byte size. The byte size can be determined with the SIZEOF operator.

F_CreateHashTableHnd 4:/F_CreateHashTableHnd 5: Inputs/outputs

VAR_IN_OUT
    hTable : T_HHASHTABLE;
END_VAR

Name

Type

Description

hTable

T_HHASHTABLE

Hash table handle to be initialized. The handle is required for accessing the hash table from the function block FB_HashTableCtrl.

Return parameter

Description

TRUE

No error

FALSE

Error

Example:

See: Example: Hash table (FB_HashTableCtrl).

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)