AddEntryPtr

AddEntryPtr 1:

Creates a new entry at the end of the array and copies its memory address (i.e., the address to which the pointer pEntry points) to the internal memory.

Syntax

VAR_INPUT
  pEntry          : PVOID;
END_VAR
VAR_OUTPUT
  nResultIndex    : DINT;
END_VAR

AddEntryPtr 2: Inputs

Name

Type

Description

pEntry

PVOID

Pointer to the entry to be added.

AddEntryPtr 3: Outputs

Name

Type

Description

nResultIndex

DINT

Index position of the entry added.