Programming Reference | Interfaces Parameter 12.8.10.2 ITcComObject:TcSetObjectId method | ITcComObject:TcSetObjectId method The TcSetObjectId method sets the object ID of the object to the given OTCID. Syntax HRESULT TcSetObjectId( OTCID objId ) Return value If successful, S_OK ("0") or another positive value will be returned, cf. Return values [ } 161] . Extended messages refer in particular to the column HRESULT in ADS Return Codes [ } 323] . At present, the return value is ignored by the TwinCAT tasks. Parameter 12.8.10.3 ITcComObject:TcGetObjectName method | ITcComObject:TcGetObjectName method The TcGetObjectName method saves the object names in the buffer with the given length.
Syntax HRESULT TcGetObjectName( CHAR* objName, ULONG nameLen ); Return value If successful, S_OK ("0") or another positive value will be returned, cf. Return values [ } 161] . Extended messages refer in particular to the column HRESULT in ADS Return Codes [ } 323] . Parameter 12.8.10.4 ITcComObject:TcSetObjectName method | ITcComObject:TcSetObjectName method The TcSetObjectName method sets the object name of the object to the given CHAR*. Syntax HRESULT TcSetObjectName( CHAR* objName ) Return value If successful, S_OK ("0") or another positive value will be returned, cf. Return values [ } 161] . Extended messages refer in particular to the column HRESULT in ADS Return Codes [ } 323] .
TwinCAT 3 178 Version: 1.19.1 Name Type Description objId OTCID& Reference to OTCID value. Name Type Description objId OTCID The OTCID to be set - indicates the success of the ID change. Name Type Description objName CHAR* The name to be set. nameLen ULONG The maximum length to be written.