Beckhoff Automation GmbH & Co. KG — 6.1.3 ITcSysManager::SaveConfiguration

API 6.1.2 ITcSysManager::OpenConfiguration The OpenConfiguration() methid loads a previously created TwinCAT configuration file. HRESULT OpenConfiguration(BSTRbstrFile); Parameters Return Values Comments NOTE The three methods ITcSysManager::NewConfiguration [ } 31] , ITcSysManager::OpenConfiguration [ } 32] and ITcsSysManager::SaveConfiguration [ } 32] are only available in Compatiblity Mode [ } 17] . Calling them in standard mode will throw an E_NOTSUPPORTED Exception. 6.1.3 ITcSysManager::SaveConfiguration The SaveConfiguration() method saves a TwinCAT configuration in a file with the specified name.

HRESULT SaveConfiguration(BSTRbstrFile); Parameters Return Values Comments NOTE The three methods ITcSysManager::NewConfiguration [ } 31] , ITcSysManager::OpenConfiguration [ } 32] and ITcsSysManager::SaveConfiguration [ } 32] are only available in Compatiblity Mode [ } 17] . Calling them in standard mode will throw an E_NOTSUPPORTED Exception. Automation Interface 32 Version: 1.2 bstrFile [in, defaultvalue(L"")] contains the file path of the configuration file that should be loaded or an empty string if a new configuration should generate. The currently running configuration of a target device may also be read by using "CURRENTCONFIG". S OK _ function returns successfully.

E ACCESSDENIED _ the current document in the system manager instance is locked. This occurs if at least one reference to the system managers object or one of the tree elements are open. E INVALIDARG _ the given file path does not refers to a valid configuration file. bstrFile [in, defaultvalue(L"")] contains the file path in that the configuration file that should be saved. If bstrFile is an empty string, the current file name will be used. S OK _ function returns successfully. E INVALIDARG _ the given file path is invalid.