beckhoff TE1000 TwinCAT 3 — 5.33.1.5 ITcModuleInstance::ImportXml

API | ITcModuleInstance Error codes TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. E_INVALIDARG : The parameter ID is unknown, or the parameter cannot be read as a ULONG . E_NOTIMPL : Access is not supported for this element type. 5.33.1.4 ITcModuleInstance::GetTypeOfModulePara | ITcModuleInstance::GetTypeOfModulePara The system searches for the parameter in the parameter list and retrieves the corresponding type as an ITcTypeInstance. For process images, the supported parameters are mapped to UDINT or OTCID , and these types are looked up in the type system.

Signature HRESULT GetTypeOfModulePara(ULONG pid, ITcTypeInstance** pipType); Parameter Return value Error codes ADS_E_INVALIDOFFSET : The parameter ID has no known type. E_NOTIMPL : Type access is not supported for this element type. 5.33.1.5 ITcModuleInstance::ImportXml | ITcModuleInstance::ImportXml For module instances, is imported along with modules, data types, and optional translations; is processed; and, if necessary, a suitable runtime app class is searched for from a node. For process images, the import is rejected because the element type is invalid.

For fieldbus boxes, importing is supported only for certain terminals and requires a direct node under —that is, not the same nesting structure that the export generates. Signature HRESULT ImportXml(BSTR bstrXML); Parameter Return value Error codes TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. TE1000 138 Version: 1.7.0 Name Type Description pid ULONG [in] Parameter ID. Name Type Description pipType ITcTypeInstance [} 77]** [out, retval] Parameter type description. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description bstrXML BSTR [in] XML to be imported. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _