Beckhoff Automation GmbH & Co. KG — 8.14 How to add routes to a remote ADS device

How to RouteName 1.2.3.4.5.6 hostName 1.2.3.4 Sample (C#): The following code snippet can also be downloaded in our sample section [ } 67] (Sample 13). It consumes the following XML structure on the node "Route Settings": Route Settings TIRR true RouteName 10.1.128.217.1.1 10.1.128.217 Administrator 1 LocalName Please adapt the NetIds and IP addresses to your needs. class Program { private static string_tsmPath = "C:\\Temp\\Sample.tsm" ; private static TcSysManager _sysManager ; static voidMain ( string [] args ) { _sysManager = new TcSysManager (); _sysManager .

NewConfiguration (); string xmlString = " Route Settings TIRR PathName> true TargetList> RouteName 10.1.128.217.1.1 RemoteNetId> 10.1.128.217 Administrator 1 Password> " ; ITcSmTreeItem routesNode = _sysManager . LookupTreeItem ( "TIRR" ); routesNode . ConsumeXml ( xmlString ); _sysManager . SaveConfiguration ( _tsmPath ); } } See Also How to... section [ } 69] , ITcSysManager [ } 30] , LookupTreeItem [ } 35] , ITcSmTreeItem [ } 37] , ConsumeXml [ } 61] Also see about this 2 Samples [ } 67] Automation Interface 80 Version: 1.2