beckhoff TE1000 — 6.45 Register-AdsHandle

TcXaeMgmt Version 7.X | Register-AdsHandle RouteSymbol Register-AdsHandle -Route -Port [-Path] [ ] AddressSymbol Register-AdsHandle -Address -Port [-Path] [ ] SessionSymbol Register-AdsHandle -Session [-Path] [ ] SessionIdSymbol Register-AdsHandle -SessionId [-Path] [ ] InputObject Register-AdsHandle [-InputObject] [ ] DESCRIPTION This Cmdlet registers a symbol handle at the connected system. The handle is returned as AdsHandleInfo.

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 address of the Target system The AmsNetId. Type: AmsNetId Parameter Sets: NetIdPortSymbol Aliases: Required: False Position: Named Default value: None TE1000 186 Version: 1.5.0