beckhoff TE1000 TwinCAT 3 — 6.4.1 Creating and handling ADS routes

Samples | ADS true RouteName 1.2.3.4.5.6 1.2.3.4 The following code snippet will use the hostname instead of the IP address. Code Snippet (XML): Route Settings TIRR true RouteName 1.2.3.4.5.6 CX-12345 userName password LocalName And for project routes. Code Snippet (XML): Route Settings TIRR true RouteName 1.2.3.4.5.6 1.2.3.4 Please note that the XML structure for regular and project routes may be used simultaneously. The following code snippet creates an ADS route to a remote target that has been specified by its IP address (10.1.128.217) and its AMS NetId (10.1.128.217.1.1). Code Snippet (C#):

string xmlString =" Route Settings TIRR PathName> true TargetList> RouteName 10.1.128.217.1.1 RemoteNetId> 10.1.128.217 Administrator 1 Password> "; ITcSmTreeItem routes = systemManager.LookupTreeItem("TIRR"); routes.ConsumeXml(xmlString); Code Snippet (Powershell): $xmlString =" Route Settings TIRR PathName> true TargetList> RouteName 10.1.128.217.1.1 RemoteNetId> 10.1.128.217 Administrator 1 Password> " $routes = $systemManager.LookupTreeItem("TIRR") $routes.ConsumeXml($xmlString) TE1000 223 Version: 1.7.0