beckhoff TE1000 — 6.51 Send-TcReadWrite

TcXaeMgmt Version 7.X | Send-TcReadWrite Sends a Read/Write request with index group 0xf004 (SymbolValueByName) and offset 0. The write data will be initialized with the project symbol path and the returned (read) data is by default a byte array of 64 bytes. The result value will be formatted as hex code.

Example 3 PS> $route = Get-AdsRoute -Name 'CX-123456' PS> $session = $route | New-TcSession -Port 851 PS> $handle = $session | Send-TcReadWrite -IndexGroup SymbolHandleByName -WriteValue "GVL.vgInt" - ReadType Int32 -force PS> $session | Read-TcValue -IndexGroup SymbolValueByHandle -IndexOffset $handle -ValueType Int16 42 Create a session to the PLC (Port 851) of a target system, determine the SymbolHandle by InstancePath and use this handle to read its 'Int16' Value (INT on PLC System). PARAMETERS -IndexGroup IndexGroup of the Value to ReadWrite, only for IndexGroup/IndexOffset access. Tab completion: Completes well-known IndexGroup constants (e.g., PlcRWMX, SymbolValueByHandle). IMPORTANT:

Please be aware, that writing data via IndexGroup/IndexOffset can overwrite data in the ProcessImage and posibly destabilizes the system. No validity check is done for the symbol alignment and therefore this should be done with highest care! Tab completion: Completes well-known IndexGroup constants (e.g., PlcRWMX, SymbolValueByHandle). The port. Type: UInt32 Parameter Sets: (All) Aliases: IG Required: True Position: Named Default value: 0 Accept pipeline input: False Accept wildcard characters: False -IndexOffset IndexOffset of the Value to write, only for IndexGroup/IndexOffset access. IMPORTANT:

Please be aware, that writing data via IndexGroup/IndexOffset simply overwrites data in the ProcessImage and can destabilize the system. No validity check is done for the symbol alignment and therefore this should be done with highest care! If applicable writing data via symbolic information should be preferred! The port. Type: UInt32 Parameter Sets: (All) Aliases: IO Required: False Position: Named Default value: 0 Accept pipeline input: False Accept wildcard characters: False -WriteValue The value to write. If no additional Length parameter is set, the Write-TcValue Cmdlet marshals this value to its appropriate size.

To not overwrite data of other symbols within the process image, special attention must be taken (see the Confirm and Whatif parameters). This parameter is optionally. It defaults to $null and will trigger a write operation without writing data. The value. Type: Object Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None TE1000 205 Version: 1.5.0