tc_route
List, search, and add ADS routes to TwinCAT via System Manager TIRR. Guards write operations with explicit confirmation.
Instructions
ADS routes via the System Manager TIRR (Routes) node, ConsumeXml/ProduceXml. READ (unguarded — a transient search trigger, never persists a route): list — existing static routes under RemoteConnections (best-effort name/netId/address); broadcast_search — LAN-wide UDP discovery (timeoutMs settle wait, default ~4000ms) → targets [{name,netId,ipAddr}]; search_host — direct by host (hostname or IP; needs TwinCAT 3.1 build>=4020.10, older builds return found:false) → {found, target:{name,netId,ipAddr,version,os}}. WRITE (GUARDED, require confirm="ALLOW_TWINCAT_ROUTE_WRITE", default NO-OP): add_route — credentialed route to a remote target (remoteName, remoteNetId, one of remoteIpAddr|remoteHostName; optional userName/password/noEncryption/localName); add_project_route — lighter project-local entry (name, netId, one of ipAddr|hostName). NOTE: route changes via TIRR ConsumeXml take effect in the engineering project; whether they propagate to the live target depends on the current target connection — this does NOT auto-activate. Nothing here targets the safety system (config/engineering-side only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| name | No | ||
| netId | No | ||
| action | Yes | ||
| ipAddr | No | ||
| confirm | No | ||
| hostName | No | ||
| password | No | ||
| userName | No | ||
| localName | No | ||
| timeoutMs | No | ||
| remoteName | No | ||
| remoteNetId | No | ||
| noEncryption | No | ||
| remoteIpAddr | No | ||
| remoteHostName | No |