How To | Setting Device AmsNetId BinaryKey 1,2,3,4,5,6,7,8,9,0xa,0xb,0xc,0xd,0xe,0xf Name NetId TLS Address FingerPrint ---- ----- --- ------- ----------- CX_01234 172.17.60.197.1.1 X 172.17.60.197 7835dae7a079c4f296c84109b2e6d7156b66e6b cc39e386c3576d7535… Broadcast search for a Device with Hostname CX_01234 and adding of a ADSSecure route via 'Preshared key' (Identity, BinaryKey) to the local system. The target system must already contain the preshared key configuration (as Psk Identity/BinaryKey) in its StaticRoutes.xml configuration file.
Removing Routes by Address PS> Get-AdsRoute Name NetId Address Sub TcVersion RTSystem ---- ----- ------- --- --------- -------- CP-15ECA0 192.168.0.128.1.1 192.168.0.178 0.0 Unknown TC3TESTA1-CP67X 192.168.0.105.1.1 192.168.0.105 0.0 Unknown PS> Remove-AdsRoute -Name "CP-15ECA0","TC3TESTA1*" Removes the Routes "CP-15ECA0" and "TC3TESTA1-CP67X" from the local system. Removing Routes from the local registered configuration PS> Get-AdsRoute | Remove-AdsRoute -silent Removes all registered routes from the local system. 5.5 Setting Device AmsNetId | Setting Device AmsNetId CAUTION CRASH and Reboot With actual TwinCAT Versions the command crashes and reboots the device!
PS> Set-AmsNetId -NewId 1.1.1.1.1.1 Changeing AmsNetId of target system. Change the NetId of system '192.168.0.2.1.1' to '1.1.1.1.1.1' [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y Changing the NetId of system '192.168.0.2.1.1' to '1.1.1.1.1.1' is succeeded. All preexisting connec tions to this system a invalid now. A reboot of this system is necessary! Sets the AmsNetId of the Local system to '1.1.1.1.1.1'. 5.6 Configure Device Realtime Settings | Configure Device Realtime Settings PS> Set-RTimeCpuSettings -SharedCores 6 Setting CPU cores Setting WindowsCores: 6, IsolatedCores: 6 to device '192.168.0.146.1.1'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y Number of processors successfully set to '6'. A reboot is necessary to activate settings! Sets the CPU Core Settings to 6 Shared and 6 Isolated on a 12 Core System. 5.7 (Re)Starting and Stopping TwinCAT | (Re)Starting and Stopping TwinCAT Restart TwinCAT (Succeeding) PS> Restart-TwinCat -command Reset -force Ok Target NetId Port ErrorCode Requested Original Reached Latency (ms) TE1000 19 Version: 1.5.0