beckhoff TE1000 — 5.4 Adding / Removing Routes

How To | Getting registered Routes and Broadcast Search Depending on the size of the target symbolic information, downloading the symbolic information can take some time! Using the -session parameter here instead of -netId and -port ensures that the Symbolic Information is loaded only one time and cached in the Session object! DataType Name Completers Here, the same session object is used for accessing the list of Data types. PS> $s = new-TcSession -NetId Local -port 851 PS> get-TcDataType -session $s -name 'BIT' 'BIT' 'BOOL' 'BYTE' Depending on the size of the target symbolic information, downloading the symbolic information can take some time!

Using the -session parameter here instead of -netId and -port ensures that the Symbolic Information is loaded only one time and cached in the Session object! And many more … Argument completers are available for many Cmdlet Parameters. Just try out and . 5.3 Getting registered Routes and Broadcast Search | Getting registered Routes and Broadcast Search Getting locally registered routes: PS> Get-AdsRoute Name NetId Protocol TLS Address FingerPrint ---- ----- -------- --- ------- ----------- CX_111111 192.168.0.2.1.1 TcpIP 192.168.0.2 a783645203c138fb49abc0d10eac4f… CX_222222 192.168.0.3.1.1 TcpIP 192.168.0.3 Broadcast Search:

PS> Get-AdsRoute -all Name NetId Protocol TLS Address FingerPrint ---- ----- -------- --- ------- ----------- MYDESKTOP 192.168.0.5.1.1 TcpIP X 192.168.0.5 2f72d63cba3069b5e15a3983fbfa1da7914f7c1… CX_111111 192.168.0.2.1.1 TcpIP X 192.168.0.2 1ab3994a2ee6fbcdc999d5d1735cb9d5a12366d… CX_222222 192.168.0.3.1.1 TcpIP X 192.168.0.3 4864cc5d2fbdcfe2128ddaab222fe1a6faa0a4d… CX_333333 192.168.0.4.1.1 TcpIP X 192.168.0.4 efcd5570e981784342bcf2b2fd03b54b22746c4…

5.4 Adding / Removing Routes | Adding / Removing Routes Search Routes and add the result at the Local TwinCAT System PS> Get-AdsRoute -All -name "Tc3*" Name NetId Address Sub TcVersion RTSystem ---- ----- ------- --- --------- -------- TC3TestA1-CP67x 192.168.0.105.1.1 192.168.0.105 3.1.4021 Win7 TC3Test13-C6650 172.17.60.239.1.1 192.168.0.156 2.11.2246 Win7 PS> $cred = Get-Credential -Message "Get Credentials" -UserName "UserName" PS> Add-AdsRoute -Credential $cred -Address "TC3TestA1-CP67x" -temporary -passthru Name NetId Address Sub TcVersion RTSystem ---- ----- ------- --- --------- -------- TC3TestA1-CP67x 192.168.0.105.1.1 192.168.0.105 3.1.4021 Win7 PS> Get-AdsRoute -name "TC3TestA1-CP67x" | Test-AdsRoute TE1000 16 Version:

1.5.0