ITcComObject:TcSetObjectId method
The TcSetObjectId method sets the object ID of the object to the given OTCID.
Syntax
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.
Parameter
Name | Type | Description |
|---|---|---|
objId | OTCID | The OTCID to be set - indicates the success of the ID change. |