beckhoff · TE1000 · 240 pp.

Beckhoff TE1000 TwinCAT 3 ADS PowerShell Module — Operation manual

Руководство по модулю PowerShell TcXaeMgmt для TwinCAT 3: установка, управление маршрутами ADS, чтение/запись данных, диагностика устройств TwinCAT и справка по командлетам.

Related manuals

Contents

Document text

Table of contents

Table of contents Table of contents 1 Foreword.................................................................................................................................................... 7 1.1 Notes on the documentation ............................................................................................................. 7 1.2 For your safety .................................................................................................................................. 8 1.3 Notes on information security............................................................................................................

9 2 Overview .................................................................................................................................................. 10 3 Requirements .......................................................................................................................................... 11 4 Installation and Activation...................................................................................................................... 12 4.1 Installation by PackageManager (PowerShell Gallery, Internet access necessary) .......................

12 4.2 Manual Installation without Internet access .................................................................................... 13 4.3 Check succeeded installation.......................................................................................................... 14 5 How To ..................................................................................................................................................... 15 5.1 Getting Help ....................................................................................................................................

15 5.2 Argument Completers ..................................................................................................................... 15 5.3 Getting registered Routes and Broadcast Search........................................................................... 16 5.4 Adding / Removing Routes ............................................................................................................. 16 5.5 Setting Device AmsNetId ................................................................................................................ 19 5.6 Configure Device Realtime Settings ...............................................................................................

19 5.7 (Re)Starting and Stopping TwinCAT............................................................................................... 19 5.8 Starting and Stopping the PLC and other ADS Servers.................................................................. 21 5.9 Reading / Writing Data .................................................................................................................... 21 5.9.1 Connect to a target device / ADS Server ......................................................................... 21 5.9.2 Symbolic / Handle / IndexGroup IndexOffset Access ......................................................

22 5.9.3 Read Write Values ........................................................................................................... 24 5.9.4 Calling RpcMethods and accessing PLC Properties........................................................ 27 5.10 TwinCAT / Device Diagnosis........................................................................................................... 28 5.10.1 Testing Device Availability and Latencies........................................................................ 28 5.10.2 Get the local AmsNetId or Route .....................................................................................

29 5.10.3 Get information about a TwinCAT device ........................................................................ 29 5.10.4 Accessing Symbolic Information ...................................................................................... 30 5.10.5 Getting Realtime Performance Information...................................................................... 31 6 TcXaeMgmt Version 7.X ......................................................................................................................... 33 6.1 about_AdsFileProvider....................................................................................................................

33 6.2 about_AdsSymbolProvider.............................................................................................................. 37 6.3 about_TcXaeMgmt.......................................................................................................................... 39 6.4 Get-AmsNetId ................................................................................................................................. 48 6.5 Restart-TwinCAT.............................................................................................................................

49 6.6 Set-AmsNetId.................................................................................................................................. 55 6.7 Set-RTimeCpuSettings ................................................................................................................... 58 6.8 Start-AdsProcess ............................................................................................................................ 62 6.9 Get-TComObject .............................................................................................................................

66 6.10 Get-TcSymbolStatistics................................................................................................................... 68 6.11 Set-AdsRouteProperty .................................................................................................................... 71 6.12 Copy-AdsRemoteItem..................................................................................................................... 74 TE1000 3 Version: 1.5.0

Page 3

Table of contents

Table of contents 6.13 Get-MdpModules............................................................................................................................. 78 6.14 Get-TcRouterConfig ........................................................................................................................ 82 6.15 New-AdsRemoteItem ...................................................................................................................... 84 6.16 Read-MdpTransferStatus................................................................................................................

87 6.17 Remove-AdsRemoteItem................................................................................................................ 90 6.18 Write-MdpTransferObject................................................................................................................ 93 6.19 Add-AdsRoute................................................................................................................................. 99 6.20 Add-MqttRoute ..............................................................................................................................

110 6.21 Close-TcSession ........................................................................................................................... 114 6.22 Copy-AdsFile................................................................................................................................. 115 6.23 Get-AdsRoute ............................................................................................................................... 119 6.24 Get-AdsState.................................................................................................................................

123 6.25 Get-AmsRouterEndpoint ............................................................................................................... 127 6.26 Get-EcBoxes ................................................................................................................................. 128 6.27 Get-EcFrameStatistics .................................................................................................................. 130 6.28 Get-EcMaster ................................................................................................................................

132 6.29 Get-IODevice ................................................................................................................................ 134 6.30 Get-IoFreeRun .............................................................................................................................. 136 6.31 Get-MqttRoute............................................................................................................................... 138 6.32 Get-RTimeCpuSettings .................................................................................................................

139 6.33 Get-RTimeLatency ........................................................................................................................ 141 6.34 Get-RTimePerformance ................................................................................................................ 145 6.35 Get-TcDataType............................................................................................................................ 148 6.36 Get-TcEvent ..................................................................................................................................

152 6.37 Get-TcLicense............................................................................................................................... 156 6.38 Get-TcRouterInfo .......................................................................................................................... 160 6.39 Get-TcSession .............................................................................................................................. 163 6.40 Get-TcSymbol ...............................................................................................................................

164 6.41 Get-TcTargetInfo........................................................................................................................... 170 6.42 Get-TcVersion ............................................................................................................................... 173 6.43 New-TcSession ............................................................................................................................. 176 6.44 Read-TcValue ...............................................................................................................................

179 6.45 Register-AdsHandle ...................................................................................................................... 185 6.46 Register-AdsNatRoute .................................................................................................................. 188 6.47 Remove-AdsRoute........................................................................................................................ 191 6.48 Remove-MqttRoute .......................................................................................................................

194 6.49 Reset-IoFreeRun........................................................................................................................... 197 6.50 Restart-AdsComputer ................................................................................................................... 199 6.51 Send-TcReadWrite........................................................................................................................ 203 6.52 Set-AdsState .................................................................................................................................

209 6.53 Set-AmsRouterEndpoint ............................................................................................................... 215 6.54 Set-IoFreeRun............................................................................................................................... 217 6.55 Stop-AdsComputer........................................................................................................................ 219 6.56 Test-AdsRoute ..............................................................................................................................

223 6.57 Unregister-AdsHandle................................................................................................................... 227 6.58 Write-TcValue ............................................................................................................................... 230 TE1000 4 Version: 1.5.0

Page 4

Table of contents

Table of contents 7 Support and Service ............................................................................................................................. 238 TE1000 5 Version: 1.5.0

Page 5

Table of contents

Table of contents TE1000 6 Version: 1.5.0

Page 6