F_iecCreateTableHnd

F_iecCreateTableHnd 1:

The function F_iecCreateTableHnd initializes the application object database handle (hash table handle). The table handle must be initialized once, before it can be used.

Syntax

FUNCTION F_iecCreateTableHnd: UDINT
VAR_INPUT
    pAOEntries  : POINTER TO ST_IEC870_5_101AODBEntry := 0;
    cbAOEntries : UDINT := 0;
END_VAR
VAR_IN_OUT
    hTable      : T_HAODBTable;
ENd_VAR

F_iecCreateTableHnd 2: Inputs

pAOEntries: Address of the first application object database variable.

cbAOEntries: Byte size of the application object database variables.

Inputs/outputs

hTable: The application object database handle (hash table handle) to be initialized.

F_iecCreateTableHnd 3: Return value

Return parameter

Description

0

No error.

<> 0

Error: IEC60870-5-10x error code

Sample in ST

See description of the F_iecAddTableEntry function.

Requirements

Development environment

Target system type

PLC libraries to be linked (category group)

TwinCAT v3.1.4012.0

PC oder CX (x86, x64, ARM)

Tc2_IEC60870_5_10x (Communication->IEC60870)
Tc2_SerialCom (Communication->Serial)
Tc2_TcpIp (Communication->TcpIp)
Tc2_Utilities (System)