beckhoff TE1000 TwinCAT 3 — 5.9.6.1 ITcTypeInstance7::NamedConstantName

API | ITcTypeInstance Return value Error codes E_POINTER : pToString is NULL . ADS_E_ERROR : data does not have the expected format or could not be blocked. See also SetValueToString 5.9.6 ITcTypeInstance7 | ITcTypeInstance7 Inherits from: ITcTypeInstance6 Expanded by: ITcTypeInstance8 ITcTypeInstance7 makes named constants of a type accessible. As with type formats, missing local definitions for alias types are inherited from the base type. Properties Methods 5.9.6.1 ITcTypeInstance7::NamedConstantName | ITcTypeInstance7::NamedConstantName Returns the name of the named constant to idx . For alias types that do not have their own constants, the behavior is delegated to the base type.

Signature HRESULT NamedConstantName(ULONG idx, BSTR* pName); Parameter Return value TE1000 86 Version: 1.7.0 Name Type Description pToString BSTR* [out, retval] Formatted text value. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Property Type get/set Description NamedConstants ULONG* get Returns the number of named constants. Method Description NamedConstantName Returns the name of a named constant. NamedConstantValue Returns the binary value of a named constant as a byte array. Name Type Description idx ULONG [in] 0-based constant index. Name Type Description pName BSTR* [out, retval] Name of the named constant.

(HRESULT) HRESULT S OK if successful, otherwise an error code. _