How To | Reading / Writing Data These Cmdlets use ArgumentCompleters proposing registered Routes. Open an ADS Session PS> New-TcSession -NetId '172.17.62.105.1.1' -port 851 ID Address Connected State Cycles Losses LastError Established LastSuccee d -- ------- --------- ----- ------ ------ --------- ----------- ----------- 5 172.17.62.105.1.1:851 True Succeeded 0 0 2024-01-08T12:50:58 Establishes a new Ads Session/Connection to the specified NetId/Port address.
Opens an ADS Session, use it and closes it afterwards PS> $session = New-TcSession -NetId '1.2.3.4.1.1' -port 10000 PS> $session | Get-AdsState Target NetId Port State Latency (ms) ------ ----- ---- ----- ------- CX_1234 1.2.3.4.1.1 10000 Config 3 PS> $session | Close-TcSession Opens a session to the registered route with AmsNetId: 1.2.3.4.1.1 and closes the ADS Session again. Open an ADS Session with wildcard name pattern.
PS> $route = Get-AdsRoute -Name "Tc3*" PS> $session = New-TcSession -Route $route -Port 851 PS> $session ID Address Connected State Cycles Losses LastError Established LastSuccee d -- ------- --------- ----- ------ ------ --------- ----------- ----------- 5 172.17.62.105.1.1:851 True Succeeded 0 0 2024-01-08T12:50:58 Establishes a new ADS Session/Connection to the specified route destination that has the name pattern "tc3*" via port 851 (PLC1).
List established ADS Sessions PS> Get-TcSession ID Address Connected State Cycles Losses LastError Established LastSuccee d -- ------- --------- ----- ------ ------ --------- ----------- ----------- 5 172.17.62.105.1.1:851 True Succeeded 0 0 2024-01-08T12:50:58 Lists all actual initiated sessions. Close ADS Sessions PS> Close-TcSession -Id 5 Closes the session with id 5.
5.9.2 Symbolic / Handle / IndexGroup IndexOffset Access | Symbolic / Handle / IndexGroup IndexOffset Access 5.9.2.1 Symbolic Access | Symbolic Access Because the symbolic information can be downloaded from the target (done by Get-TcSymbol ), the Read- TcValue and Write-TcValue Cmdlets are able to use .NET objects type-safe and seamlessly. All data – if possible – is marshaled transparently via the network. TE1000 22 Version: 1.5.0