TcXaeMgmt Version 7.X | Register-AdsNatRoute SYNTAX Name (Default) Register-AdsNatRoute [-Name] -NATNetId [-Destination ] [-Quiet] [-Force] [-WhatIf] [-Confirm] [ ] NetId Register-AdsNatRoute [-NetId] -NATNetId [-Destination ] [-Quiet] [- Force] [-WhatIf] [-Confirm] [ ] DESCRIPTION This Cmdlet Changes an standard Route to an AmsNAT route on the target system. The route must be preexisting and the cmdlet adds the RemoteNetId/AmsNAT information to the StaticRoutes.xml of the destination system. Afterwards the destination system needs a TwinCAT Restart. For TwinCAT Versions >= 3.1.4024.11 (or newer), the Add-AdsRoute Cmdlet should be used with the -NAT Parameter as Replacement.
Therefore, this 'Register-AdsNatRoute' Cmdlet is classified as 'obsolete' and of limitied use and could be removed in future. EXAMPLES Example 1 PS> Register-AdsNatRoute -Name MyRoute -NATNetId 1.2.3.4.2.2 Adds an AmsNAT address translation to the existing route 'MyRoute' on the local system (e.g. from '1.2.3.4.1.1' to '1.2.3.4.2.2'). Example 2 PS> Register-AdsNatRoute -NetId 1.2.3.4.1.1 -NATNetId 1.2.3.4.2.2 -Destination CX_1234 Adds an AmsNAT address translation to the existing route with NetId '1.2.3.4.1.1' to NATNetId '1.2.3.4.2.2' on System 'CX_1234'. PARAMETERS -Name The Name of the Route where to add an AmsNAT entry. The Route name. Type: String Parameter Sets: Name Aliases: Required:
True Position: 0 Default value: None Accept pipeline input: False Accept wildcard characters: False -NetId The NetID which specifies the existing route where to add an AmsNAT entry. This NetId becomes the 'RemoteNetId' afterwards. The NetId. Type: AmsNetId Parameter Sets: NetId Aliases: Required: True Position: 0 Default value: None TE1000 189 Version: 1.5.0