GetObject

GetObject 1:

This method looks up an object using its index.

Syntax

VAR_INPUT
  nIndex      : DINT;
END_VAR
VAR_OUTPUT
  iResult     : I_BA_Object;
END_VAR

GetObject 2: Inputs

Name

Type

Description

nIndex

DINT

Index of the object to be found.

GetObject 3: Outputs

Name

Type

Description

iResult

I_BA_Object

Interface pointer to the subordinate object.

GetObject 4: Return value

Name

Type

Description

GetObject

BOOL

This indicates whether the object searched for has been found.