- 8B PDO config: ULINT-sized payload, no 0x1A01 diag PDO on SM3 (device rejected SM3=8 with diag assigned: 'size not allowed, min/max 0xa') - twin_layout_blob_sized(): single 64-bit mapping entry for 8B payloads - Ticker: per-byte XOR 0x5A transform in 8B mode so TwinCAT can verify every byte individually (1KB path unchanged, const-guarded) - TwinCAT automation scripts: deploy with RPC retry, LinkVariables-based whole-array relink (element links only carry 1 byte), ADS watch, diag - Docs: 8B design, verification methodology, test report
17 lines
795 B
PowerShell
17 lines
795 B
PowerShell
$helper = 'C:\Program Files (x86)\Beckhoff\TwinCAT\3.1\Components\Base\TcSysManCmdHelper.exe'
|
|
$tsproj = 'C:\Users\tonycao\work\twincat3-auto-cli\TwinCAT_EL6695_Secondary\TwinCAT_EL6695_Secondary.tsproj'
|
|
$out = 'C:\Users\tonycao\work\twincat3-auto-cli\TwinCAT_EL6695_Secondary\Logs\el6695_export.xml'
|
|
|
|
New-Item -ItemType Directory -Path 'C:\Users\tonycao\work\twincat3-auto-cli\TwinCAT_EL6695_Secondary\Logs' -Force | Out-Null
|
|
|
|
$path = 'TIID^设备 1 (EtherCAT)^模块 1 (EK1100)^模块 8 (EL6695)'
|
|
Write-Host "Exporting EL6695 to $out ..."
|
|
& $helper -v 4026.0 -o $tsproj -w $path $out 2>&1
|
|
Write-Host "Exit code: $LASTEXITCODE"
|
|
if (Test-Path $out) {
|
|
Write-Host "Export OK: $out ($((Get-Item $out).Length) bytes)"
|
|
Get-Content $out -TotalCount 50
|
|
} else {
|
|
Write-Host "Export failed"
|
|
}
|