beckhoff TE1000 TwinCAT 3 — 5.33.1.3 ITcModuleInstance::GetModuleParaDWORD

API | ITcModuleInstance Return value Error codes E_POINTER : pXML is NULL . TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. 5.33.1.2 ITcModuleInstance::GetModulePara | ITcModuleInstance::GetModulePara The parameter ID is first searched for in interface pointers, then in data pointers, and finally in the module parameters. The values found are returned as byte SAFEARRAY . For process images, the ULONG returned by GetModuleParaDWORD is returned as a byte array. Signature HRESULT GetModulePara(ULONG pid, VARIANT* pvData); Parameter Return value Error codes TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. E_FAIL :

The parameter ID was not found in the lists of supported parameters. E_NOTIMPL : Parameter access is not supported for this element type, e.g., for fieldbus boxes. 5.33.1.3 ITcModuleInstance::GetModuleParaDWORD | ITcModuleInstance::GetModuleParaDWORD Interface pointer object IDs or module parameters up to sizeof(ULONG) are read directly into ULONG . Signature HRESULT GetModuleParaDWORD(ULONG pid, ULONG* pData); Parameter Return value TE1000 137 Version: 1.7.0 Name Type Description pXML BSTR* [out, retval] XML representation of the module instance. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description pid ULONG [in] Parameter ID.

Name Type Description pvData VARIANT* [out, retval] Parameter data as SAFEARRAY or VARIANT. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description pid ULONG [in] Parameter ID. Name Type Description pData ULONG* [out, retval] Parameter value as a ULONG. (HRESULT) HRESULT S OK if successful, otherwise an error code. _