beckhoff TE1000 — 6.1 about_AdsFileProvider

TcXaeMgmt Version 7.X | about_AdsFileProvider CREATING A CUSTOM DRIVE If a route was added after module import, or if you want a drive with a custom name, use New-PSDrive with the AdsFileProvider dynamic parameters:

# Create a drive by route name or IP address PS> New-PSDrive -Name MyTarget -PSProvider AdsFileProvider -Root '' -Address CX_01234 # Create a drive from a route object (pipeline) PS> Get-AdsRoute -Address CX_01234 | New-PSDrive -Name MyTarget -PSProvider AdsFileProvider -Root '' # Create a drive using an explicit Route parameter PS> $route = Get-AdsRoute -Address CX_01234 PS> New-PSDrive -Name MyTarget -PSProvider AdsFileProvider -Root '' -Route $route After creation the drive can be used like any other AdsFileProvider drive: PS> cd MyTarget:\TargetDir PS MyTarget:\TargetDir> dir DYNAMIC PARAMETERS When creating a new drive with New-PSDrive, the following dynamic parameters are available:

Address (string) - Route name or IP address of the target Port (int) - AMS port (defaults to System Service) Route (IRouteAddressed) - A route object (e.g. from Get-AdsRoute) ROOT DIRECTORIES The drive root exposes TwinCAT standard directories as top-level folders:

BootDir - TwinCAT Boot folder (CurrentConfig, event logs) BootProject - Boot project files (bootprj) ConfigDir - TwinCAT configuration path Generic - Freely-chosen file paths InstallDir - TwinCAT installation path RepositoryDir - TwinCAT repository directory TargetDir - TwinCAT target path (routes, licenses, certificates) PATH STRUCTURE ADS paths follow a consistent format that combines an optional drive name, a StandardDirectory, and a relative path within that directory: [DriveName:]\StandardDirectory[\RelativePath] Three path forms are supported: Bare path: StandardDirectorypath Example: TARGETDIRRoutesStaticRoutes.xml Drive-qualified: DriveName:StandardDirectorypath Example:

CX_01234:TARGETDIRRoutesStaticRoutes.xml Provider-qualified: AdsFileProvider::DriveName:StandardDirectorypath Example: AdsFileProvider::CX_01234:TARGETDIRfile.txt The special drive name "Local" (case-insensitive) always resolves to the local TwinCAT system, regardless of the machine name. This is a built-in path alias, not the actual PSDrive name. The automatic drive for the local system is named after the machine (Environment.MachineName): Local:\TARGETDIR\Routes\StaticRoutes.xml TE1000 34 Version: 1.5.0