beckhoff TE1000 TwinCAT 3 — 5.33.1.1 ITcModuleInstance::ExportXml

API | ITcModuleInstance 5.33.1 ITcModuleInstance | ITcModuleInstance Expanded by: ITcModuleInstance2 ITcModuleInstance is the native basic interface for TCom module instances. Module instances provide full parameter access, XML import/export, and type lookup; process images and fieldbus boxes provide only a subset of these features. Properties Methods 5.33.1.1 ITcModuleInstance::ExportXml | ITcModuleInstance::ExportXml For module instances, an XML document is generated with the root element , a area, and a direct node. and are also created for fieldbus boxes; however, the node is attached at . Signature HRESULT ExportXml(VARIANT_BOOL bRecursive, BSTR* pXML); Parameter TE1000 136 Version:

1.7.0 Version Newly introduced Index ITcModuleInstance2 Context access (SetModuleContext/ GetModuleContext) as well as ModuleTypeName and ModuleInstanceName. ITcModuleInstance2 Property Type get/set Description ClassID CTCID* get Class ID of the module. ParentOID ULONG* get Object ID of the parent object. OID ULONG* get Object ID of the module instance. Method Description ExportXml Exports the module instance as XML. ImportXml Imports XML into the module instance. GetModulePara Reads a module parameter as VARIANT. SetModulePara Writes a module parameter from a VARIANT. GetModuleParaDWORD Reads a small module parameter as ULONG. SetModuleParaDWORD Writes a small module parameter as ULONG.

GetTypeOfModulePara Returns the Automation Interface type of a module parameter. Name Type Description bRecursive VARIANT BOOL _ [in, defaultvalue(0)] Recursion flag. This is not evaluated in all cases.