Interface ITComObject

The ITComObject interface is implemented by every TwinCAT module. It makes basic functionalities available.

Syntax

TCOM_DECL_INTERFACE("00000012-0000-0000-e000-000000000064", ITComObject)
struct__declspec(novtable) ITComObject: public ITcUnknown

Interface ITComObject 1: Methods

Name

Description

TcGetObjectId(OTCID& objId)

Saves the object ID using the given OTCID reference.

TcSetObjectId

Sets the object ID of the object to the given OTCID.

TcGetObjectName

Saves the object names in the buffer with the given length.

TcSetObjectName

Sets the object name of the object to given CHAR*.

TcSetObjState

Initializes a transition to a predefined state.

TcGetObjState

Queries the current state of the object.

TcGetObjPara

Queries an object parameter identified with its PTCID.

TcSetObjPara

Sets an object parameter identified with its PTCID.

TcGetParentObjId

Saves the parent object ID with the help of the given OTCID reference.

TcSetParentObject

Sets the parent object ID to the given OTCID.

Comments

The ITComObject interface is implemented by every TwinCAT module. It makes functionalities available regarding the state machine and Information from/to the TwinCAT system.