F_CreateHashTableHnd

The function initializes the hash table handle. The table handle must be initialized once by calling the F_CreateHashTableHnd function.
 Return value
Name  | Type  | Description  | 
|---|---|---|
F_CreateHashTableHnd  | BOOL  | 
  | 
 Inputs
VAR_INPUT
    pEntries   : POINTER TO T_HashTableEntry := 0;
    cbEntries  : UDINT := 0;
END_VARName  | 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.  | 
/
 Inputs/outputs
VAR_IN_OUT
    hTable : T_HHASHTABLE;
END_VARName  | Type  | Description  | 
|---|---|---|
hTable  | 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  | 
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)  |