beckhoff TE1000 TwinCAT 3 — 6.4.1 Creating and handling ADS routes

Samples | ADS C# sample ITcSmTreeItem systemNode = sysManager.LookupTreeItem("TISY"); string xmlBootSettings = @" true true Administrator MyPassword None "; systemNode.ConsumeXml(xmlBootSettings); // Read current settings string currentSettings = systemNode.ProduceXml(); AutoRun controls whether TwinCAT automatically switches to Run Mode at system startup. AutoLogon enables automatic user login when Windows starts, so that TwinCAT can be launched without manual interaction. The password for AutoLogon is stored in the project. For security- critical applications, access to the project file must be appropriately secured. BootFileEncryptionType accepts None or the corresponding encryption type.

6.4 ADS | ADS 6.4.1 Creating and handling ADS routes | Creating and handling ADS routes Adding ADS routes via the Automation Interface can be achieved by using the ConsumeXml() method of the ITcSmTreeItem interface. However, it is important to understand the underlying XML structure before adding routes to a remote target. XML structure The following code snippets represent sample XML structures for adding routes to a remote target. Please note that you can either specify the IP address or the hostname of the remote target. This code snippet will add a regular route to a remote target. Code Snippet (XML):

Route Settings TIRR true RouteName 1.2.3.4.5.6 1.2.3.4 userName password LocalName This code snippet will add a project route to a remote target. Code Snippet (XML): Route Settings TIRR TE1000 222 Version: 1.7.0