FindObjectSbj

FindObjectSbj 1:

This method looks up the index of an object using the subject identifier.

Syntax

VAR_INPUT
  sSbjIdentifier  : REFERENCE TO T_BA_MedString;
  nSbjIndex       : UDINT := 0;
  nSbjHash        : DWORD := 0;
END_VAR
VAR_IN_OUT
  nResultIndex    : DINT;
END_VAR

FindObjectSbj 2: Inputs

Name

Type

Description

sSbjIdentifier

REFERENCE TO T_BA_MedString

Subject identifier of the object.

nSbjIndex

UDINT

Index of the object.

nSbjHash

DWORD

Hash value of the object.

FindObjectSbj 3: / FindObjectSbj 4: Inputs/Outputs

Name

Type

Description

nResultIndex

DINT

Result index of the object to be found.

FindObjectSbj 5: Return value

Name

Type

Description

FindObjectSbj

BOOL

This indicates whether an object exists.