UserMgrObjectGetHandle (FUN)

FUNCTION UserMgrObjectGetHandle : RTS_IEC_HANDLE

Retrieve the handle from the given object name
Limited to the application subtree.
InOut:

Scope

Name

Type

Comment

Return

UserMgrObjectGetHandle

RTS_IEC_HANDLE

Corresponding object handle or RTS_INVALID_HANDLE if failed

Inout Const

pszObjectName

STRING

Name of the object

Output

Result

RTS_IEC_RESULT

Error code
  • ERR_OK: Object handle could be retrieved

  • ERR_NO_OBJECT: Object was not found

  • ERR_NO_ACCESS_RIGHTS: No access rights in IEC context