beckhoff TE1000 TwinCAT 3 — 5.1.2.1 ITcSysManager2::SetTargetNetId

API | ITcSysManager 5.1.1.9 ITcSysManager::ActivateConfiguration | ITcSysManager::ActivateConfiguration The ActivateConfiguration() method generates the variable mappings and activates the current configuration on the configured target system. This corresponds to the “Activate Configuration” command in the Visual Studio interface. Signature HRESULT ActivateConfiguration(); Parameter (none) Return value Error codes E_ACCESSDENIED : System Manager is disabled. E_UNEXPECTED : No configuration document has been loaded. See also StartRestartTwinCAT 5.1.2 ITcSysManager2 | ITcSysManager2 Inherits from: ITcSysManager [ } 37] Extended by:

ITcSysManager3 [ } 44] First expansion following the initial release. Adds the remote target NetID to the configuration and a getter for the accumulated diagnostic messages from previous API calls. Methods 5.1.2.1 ITcSysManager2::SetTargetNetId | ITcSysManager2::SetTargetNetId Sets the AMS NetID of the target system. Validates the NetID format, requires write access to the project file, and notifies the document of the change. Signature HRESULT SetTargetNetId(BSTR bstrNetId); TE1000 42 Version: 1.7.0 Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Method Description SetTargetNetId [} 42] Sets the target NetID of the currently open TwinCAT configuration.

GetTargetNetId [} 43] Retrieves the target NetID of the currently open TwinCAT configuration. GetLastErrorMessages [} 43] Retrieves the most recent error messages from the TwinCAT subsystem.