Method ITcComObject:TcSetObjectId

The method TcSetObjectId sets object’s object ID to the given OTCID.

Syntax


HRESULT TcSetObjectId( OTCID objId )

Parameters

objId: (type: OTCID) The OTCID, which should be set.

Return value

If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.

At present, the return value is ignored by the TwinCAT tasks.

Description

Indicates the success of the ID change.