TcBaseModuleRegistered

FUNCTION_BLOCK TcBaseModuleRegistered EXTENDS TcBaseModule
VAR
END_VAR

Description

If something is inherited from this object, a TcCOM object can be created from a function block. The object is automatically registered at the object server and ramped up to OP state. The own object ID is provided as a process image variable. Methods which are additionally implemented and are to be offered via this object must have a return value of the type HRESULT and must be implemented in a thread-safe manner. For more information, refer to the chapter 'Multi-task data access synchronization in the PLC'. How to create this TcCOM object and use it globally in the TwinCAT system is explained in detail in an example. The TcBaseModule base class implements the ITComObject interface, which in turn expands the ITcUnknown interface.

ITComObject Interface

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

Requirements

TwinCAT Version

Hardware

Libraries to be integrated

TwinCAT 3.1, Build 4020

x86, x64, ARM

Tc3_Module