How To | TwinCAT / Device Diagnosis ---- ---------- ----------- AddValues INT INT AddValues([in] INT i1,[in] INT i2) __getPropInt INT INT __getPropInt() __setPropInt __setPropInt([in] INT PropInt) The method can be called transparently in Powershell PS> $rpcSymbol.AddValues(39,3) 42 The same is true for the dynamic property PS> $rpcSymbol.PropInt InstancePath Category DataType Size Static Persistant IG IO ------------ -------- -------- ---- ------ ---------- -- -- MAIN.fbRpc.PropInt Primitive INT 2 False False 4040 10DEE8 PS> $rpcSymbol.PropInt | Read-TcValue 29224 5.10 TwinCAT / Device Diagnosis | TwinCAT / Device Diagnosis 5.10.1 Testing Device Availability and Latencies | Testing Device Availability and Latencies The Test-AdsRoute Cmdlet provides information about System availability AdsServer existence Available System Ports Access latencies/roundtrip times Check local PLC availability PS> Test-AdsRoute -Port 851 Name NetId Port Latency Result (ms) ---- ----- ---- ------- ------ CX-11111 192.168.0.2.1.1 851 3 Ok Test the Port 851 of the local system (PLC 1) for availablity.
Check the registered routes for availabilty PS> Get-AdsRoute | Test-AdsRoute Name NetId Port Latency Result (ms) ---- ----- ---- ------- ------ CX-11111 192.168.0.2.1.1 10000 4 Ok CX-22222 192.168.0.3.1.1 10000 Failed CX-33333 192.168.0.4.1.1 10000 4 Ok Get the locally registered routes and test if they are reachable (on AmsPort 10000) Port scan of the local TwinCAT System PS> Test-AdsRoute -OnlinePorts Name NetId Port Latency Result (ms) ---- ----- ---- ------- ------ CX-11111 192.168.0.2.1.1 10 0.6 Ok CX-11111 192.168.0.2.1.1 11 1.3 Ok CX-11111 192.168.0.2.1.1 12 1.2 Ok CX-11111 192.168.0.2.1.1 30 3 Ok TE1000 28 Version: 1.5.0