- ticker: --spin mode polls FPRD until payload changes (phase-locks processing to TwinCAT frame arrival instead of free-running ticker), timeout at 1.5 periods keeps loop alive on master stop - verified: 238k cycles, 0 errors, exec=245us (FPWR-bound), TwinCAT PLC task confirmed at 2000.8 Hz (all three tasks 0.5ms; base tick was already 50us - no base-time change needed) - docs: 500us latency plan; scripts: task-rate ADS probe, 2kHz deploy, UI automation experiments (pywinauto) for task cycle inspection
19 lines
673 B
PowerShell
19 lines
673 B
PowerShell
#Requires -RunAsAdministrator
|
|
$ErrorActionPreference = 'Continue'
|
|
$dte = New-Object -ComObject TcXaeShell.DTE.17.0
|
|
$dte.MainWindow.Visible = $true
|
|
try { $dte.SuppressUI = $false } catch {}
|
|
$dte.Solution.Open('C:\Users\tonycao\work\twincat3-auto-cli\TwinCAT_EL6695_Primary\TwinCATProject1.sln')
|
|
Start-Sleep 25
|
|
$proj = $dte.Solution.Projects.Item(1)
|
|
$n = $proj.ProjectItems.Count
|
|
Write-Host "top-level items: $n"
|
|
for ($i = 1; $i -le $n; $i++) {
|
|
$it = $proj.ProjectItems.Item($i)
|
|
Write-Host "[$i] $($it.Name)"
|
|
try {
|
|
$m = $it.ProjectItems.Count
|
|
for ($j = 1; $j -le $m; $j++) { Write-Host " - $($it.ProjectItems.Item($j).Name)" }
|
|
} catch {}
|
|
}
|