beckhoff TE1000 — 6.57 Unregister-AdsHandle

TcXaeMgmt Version 7.X | Unregister-AdsHandle AddressInfo Unregister-AdsHandle -Address -Port [-InputObject] [ ] SessionHandle Unregister-AdsHandle -Session [-Handle] [ ] SessionInfo Unregister-AdsHandle -Session [-InputObject] [ ] SessionIdHandle Unregister-AdsHandle -SessionId [-Handle] [ ] SessionIdInfo Unregister-AdsHandle -SessionId [-InputObject] [ ] DESCRIPTION This Cmdlet unregisters an already registered symbol handle from the target system. The Cmdlet supports raw [uint] handles or AdsHandleInfo objects.

EXAMPLES Example 1 PS> $session = New-TcSession -NetId '1.2.3.4.5.6' -Port 851 PS> $handleInfo = $session | Register-AdsHandle - Path 'TwinCAT_SystemInfoVarList._AppInfo.ProjectName' PS> $handleInfo = Register-AdsHandle -Path 'TwinCAT_SystemInfoVarList._AppInfo.ProjectName' - Session $s PS> $handleInfo InstancePath Result Handle ------------ ------ ------ TwinCAT_SystemInfoVarList._AppInfo.ProjectName NoError 0x428000FC (1115685116) PS> Read-TcValue -Session $session -IndexGroup SymbolValueByHandle -IndexOffset $handleInfo.Handle - Type String MyProject PS> $handle | Unregister-AdsHandle -Session $session PS> $session | Close-tcsession Opens a new device session, registers a Symbol Handle to the ProjectName of the running PLC Project, Reads the value by handle unregisters the handle and closes the session again.

PARAMETERS -NetId The NetId part of the device target address. The AmsNetId. Type: AmsNetId Parameter Sets: NetIdPortHandle, NetIdPortInfo Aliases: Required: False Position: Named Default value: None TE1000 228 Version: 1.5.0