API 6.1.4 ITcSysManager::ActivateConfiguration The ActivateConfiguration() method activates the TwinCAT configuration (same as "Save To Registry"). A following start or restart of the TwinCAT system must be performed to activate the configuration physically. HRESULT ActivateConfiguration(); Return Values 6.1.5 ITcSysManager::IsTwinCATStarted The IsTwinCATStarted() method evaluates if the TwinCAT System is running. HRESULT IsTwinCATStarted(VARIANT_BOOL*pStarted); Parameters Return Values 6.1.6 ITcSysManager::StartRestartTwinCAT The StartRestartTwinCAT() method starts or restarts the TwinCAT System.
If TwinCAT is already started, the function performs a restart, if TwinCAT is stopped it performs a start. HRESULT StartRestartTwinCAT(); Return Values Requirements 6.1.7 ITcSysManager::LinkVariables The LinkVariables() method links two variables, which are specified by their names. The two variables represented by their tree path name will be linked. The path names must have the same syntax as described in ITcSysManager::LookupTreeItem [ } 35] . The same shortcuts [ } 35] can be used. HRESULT LinkVariables(BSTRbstrV1, BSTRbstrV2, longoffs1, longoffs2, longsize); Parameters Automation Interface 33 Version: 1.2 S OK _ function returns successfully. E FAIL _ the function fails.
pStarted [out, retval] Points to the location of a boolean value that receives the result. S OK _ function returns successfully. S OK _ function returns successfully. E FAIL _ TwinCAT could not be started. bstrV1 [in] path name of the first variable. The full path name is required, and each branch must be separated by a circumflex accent '^' or a tab. bstrV2 [in] path name of the second variable. The full path name is required, and each branch must be separated by a circumflex accent '^' or a tab. offs1 [in, defaultvalue(0)] bit offset of the first variable (used if the two variables have different sizes or not the whole variable should be linked).
offs2 [in, defaultvalue(0)] bit offset of the second variable.