Remanufacturing and Modernizing B&R Control Systems
A practical guide for automation engineers maintaining B&R X20CP1584 PLCs and related hardware from defunct OEMs with zero documentation. Covers repair, in-family migration, cross-platform migration, project planning, and cost analysis.
Table of Contents
- Overview
- CP1584 Repair vs Replace Decision Matrix
- B&R In-Family Migration (Recommended Path)
- X20 to X67 Migration (Form Factor Change)
- B&R to CODESYS Migration
- B&R to Siemens Migration
- B&R to Beckhoff Migration
- Migration Project Planning
- Minimizing Downtime During Migration
- Cost/Benefit Analysis Framework
- Legacy B&R Specific Considerations
- Cross-References
- Key Findings
- Sources
1. Overview
Modernizing a B&R control system falls on a spectrum with five distinct zones. The correct choice depends on hardware health, spare parts availability, downtime risk tolerance, budget, and long-term support requirements.
The Modernization Spectrum
Zone 1 Zone 2 Zone 3 Zone 4 Zone 5
REPAIR | COMPONENT UPGRADE | IN-FAMILY | CROSS-PLATFORM | FULL REDESIGN
| | CPU SWAP | MIGRATION |
| | | |
Cost: | $10 - $500 | $1,500 - $5,000| $5,000 - $25,000| $25,000+
Risk: | Low | Low-Medium | Medium-High | High
Downtime: | Hours | 1-2 days | 1-4 weeks | 2-12 weeks
Disruption:| None | Minimal | Moderate | Complete
| | | |
Example: | Replace caps, | X20CP1584 | X20CP3484 or | New PLC + new
| new CF card, | -> X20CP1485 | CODESYS/Wago | HMI + new IO
| new battery | | | + reprogram
Assessment Framework
Use this questionnaire to determine which zone applies:
| Factor | Zone 1-2 (Repair/Upgrade) | Zone 3 (In-Family) | Zone 4-5 (Migrate/Redesign) |
|---|---|---|---|
| CPU failure mode | Repairable (caps, PSU, CF) | Intermittent / slow | Unrepairable / end of life |
| IO health | All OK | Mostly OK | Degraded or missing modules |
| Software | Have project file | Have project file | No project file |
| Original OEM | Available for support | Gone but docs exist | Gone, no docs |
| Remaining machine life | < 3 years | 3-7 years | 7+ years |
| Safety system | No safety or simple E-stop | SafeLOGIC present | Complex safety rated to SIL 2+ |
| Budget | < $500 | $1,500-$5,000 | $5,000-$50,000+ |
| Downtime window | < 4 hours | 1-2 planned days | 1-4 weeks planned |
Critical First Step: Documentation
Before making any decision, reconstruct documentation. See documentation-reconstruction.md and program-reverse-engineering.md for procedures.
Without the Automation Studio project file, software migration effort multiplies by 3-5x. Without IO wiring documentation, hardware swap downtime multiplies by 2-4x. Prioritize recovering both before committing to any migration path.
AS4 to AS6 Migration Tools (Critical for Software Recovery)
When migrating from the CP1584 to a modern replacement (e.g., CP3484), you will likely need to move from Automation Studio 4 to Automation Studio 6. This is not a simple upgrade — AS6 has breaking changes in project format, PVI version (6.x drops INA2000 support entirely), and mapp Framework. The B&R community maintains free tools to assist:
| Tool | Repository / Source | Purpose |
|---|---|---|
| as6-migration-tools | github.com/br-automation-community/as6-migration-tools | Automated project conversion scripts, syntax migration helpers |
| BRLibToHelp | github.com/br-automation-community/BRLibToHelp | Extracts help documentation from B&R library files |
| SBOM Generator | github.com/br-automation-community/sbom-generator | Generate Software Bill of Materials for AS projects |
Migration path: CP1584 → CP3484 (or newer):
- Recover the AS4 project using techniques in program-reverse-engineering.md
- Open the project in AS4 and ensure it compiles cleanly
- Run the community migration tools to identify breaking changes
- Upgrade mapp components to their mapp 6 equivalents
- Replace all INA2000 PVI references with ANSL (see pvi-api.md)
- Re-target the hardware configuration to the new controller
- Test on the bench before deploying to the machine
AS 6.5 benefits for migration (December 2025): AS 6.5 introduces ST-OOP with full inheritance, polymorphism, access specifiers (PUBLIC/PRIVATE/PROTECTED), abstract methods, and method overriding — enabling modern object-oriented IEC 61131-3 programming that significantly improves code maintainability. Other AS 6.5 features relevant to migration: hard real-time multicore task scheduling (assign cyclic tasks to specific CPU cores), FTP RBAC, expanded ManagedCertificateStore (ANSL/FTP/HTTP/SMTP), TFTP disabled by default (security improvement), self-signed certificate handling, CLI library exporter (BR.AS.LibraryExporter.exe), and SNI support in AsHttp. See firmware-version-mgmt.md §3.2 for the complete AS 6.x release history.
Warning: The original AS4 TG dongle licenses may not carry forward to AS6. See license-mgmt.md for license recovery strategies.
See firmware-version-mgmt.md §5.3.1 for detailed AS4→AS6 breaking changes.
AR 6.5 Multicore Task Scheduling — Migration Impact
AS 6.5 with AR 6.5 introduces hard real-time multicore support that is a significant selling point for migrating to newer B&R hardware. Understanding this feature is important for migration planning because it changes how task scheduling works on the target hardware.
What changes in AR 6.5 multicore:
| Feature | AR 4.x (CP1584) | AR 6.5 (multicore hardware) |
|---|---|---|
| Task scheduling | Single-core preemptive | Tasks assignable to specific cores |
| Cyclic #1–#8 | All on one core | Distribute across cores |
| ANSL communication | Shares core with cyclic tasks | Dedicated core for ANSL tasks |
| Motion control | Competes with logic for CPU | Isolate motion on dedicated core |
| I/O processing | Shares CPU with user tasks | Background I/O processor still independent |
Practical benefit for migrated machines:
- Motion control (Cyclic #1) can run on Core 0, while logic (Cyclic #2–#4) runs on Core 1
- ANSL/OPC-UA communication no longer competes with real-time tasks for CPU time
- Higher total throughput without reducing individual cycle times
- Reduced cycle time violations (Exception 144) on complex machines
Hardware requirements:
- Multicore requires AR 6.5 AND a multicore CPU (X20CP3xxx, X20EM, APC industrial PCs)
- The X20CP1684 (single-slot successor to CP1584) does NOT support multicore — it has a single-core processor
- For multicore, you need at minimum a X20CP3xxx (3-slot, dual-core) or X20EM (ARM multi-core)
Migration implication: If your CP1584 machine has complex motion + logic that frequently hits cycle time violations, migrating to a multicore platform (X20CP3xxx or X20EM with AR 6.5) may eliminate those issues entirely by distributing task load across cores. This is a stronger justification for migration than just security compliance.
Source: B&R Community — “RELEASE 2025: Automation Studio 6.5 - Complete overview” (community.br-automation.com/t/release-2025-automation-studio-6-5-complete-overview/9439), “Innovation 2025: Multicore Processing in Automation Software 6” (community.br-automation.com/t/innovation-2025-multicore-processing-in-automation-software-6/8477)
ST-OOP in AS 6.5 — Modern IEC 61131-3 for Refactored Projects
AS 6.5 adds full Structured Text Object-Oriented Programming (ST-OOP) to the IEC 61131-3 language set. This is relevant for migration because when refactoring recovered AS4 code, you have the option to restructure it using modern OOP patterns:
| Feature | Syntax | Use Case |
|---|---|---|
| Inheritance | FUNCTION_BLOCK Child EXTENDS Parent | Reuse common axis/motor logic across multiple axes |
| Polymorphism | Dynamic method dispatch via OVERRIDE | Generic state machine framework with specialized behaviors |
| Access specifiers | VAR PUBLIC, VAR PRIVATE, VAR PROTECTED | Protect calibration data from accidental modification |
| Abstract methods | ABSTRACT METHOD | Define interface contracts for device drivers |
| Classes | CLASS, END_CLASS | Value-type objects (not reference-type like function blocks) |
When to use ST-OOP in migration:
- When the recovered AS4 project uses copy-paste patterns across multiple axes/stations
- When refactoring for maintainability by a one-man team (reduces code duplication)
- When building new functionality on top of the migrated base
When NOT to use ST-OOP:
- When doing a literal migration (keep existing code structure unchanged)
- When the target is AS 4.x compatibility (ST-OOP requires AS 6.x)
- When team members are not familiar with OOP concepts
2. CP1584 Repair vs Replace Decision Matrix
X20CP1584 Hardware Architecture
| Component | Specification | Failure Mode | Repairability |
|---|---|---|---|
| CPU | Intel Atom E620T 600MHz | Overheating (thermal paste), clock degradation | Low - not practical |
| RAM | 256MB DDR2 SDRAM (soldered) | Memory errors, bit flips | Not repairable |
| Flash/Boot | CompactFlash Type I slot | Card failure, corruption, connector wear | High - swap CF card |
| Battery | CR2477N 3V/950mAh (retentive data + RTC) | Dead battery, data loss | Trivial - swap battery |
| PSU | External 24VDC via X20 bus | Capacitor failure, voltage regulation | Moderate |
| Base | X20 base module | Pin corrosion, connector damage | Low-Moderate |
| Ethernet | 1x GbE + 1x POWERLINK (RJ45) | ESD damage, connector wear | Low |
| USB | 2x USB (Type A) | Physical damage | Low |
| POWERLINK | X20 bus interface | FPGA failure | Not repairable |
| Display interface | None (headless) | N/A | N/A |
| Power supply input | 24VDC via X20 bus | Voltage spikes, reverse polarity | Fuse + buffer cap |
Common Failure Modes and Repair Costs
| Failure Symptom | Likely Cause | Repair Cost | Time | Difficulty |
|---|---|---|---|---|
| Will not boot, no LED activity | CF card corruption or failure | $20-80 (CF card) | 30 min | Low |
| Will not boot, LED on but no Ethernet | Corrupt firmware image on CF | $0 (re-flash from backup) | 1-2 hrs | Medium |
| Intermittent reboots, watchdog trips | Capacitor degradation on PSU | $10-50 (capacitors) | 1-2 hrs | Medium |
| CMOS reset on power cycle, wrong date / retentive data lost | Dead CR2477N battery | $5-15 | 5 min | Trivial |
| No Ethernet link | ESD damage to PHY / connector | $50-150 (module swap) | 1 hr | Medium |
| POWERLINK bus faults | FPGA communication error | Not repairable - replace CPU | N/A | N/A |
| Memory errors, blue screen | DDR2 failure (soldered) | Not repairable - replace CPU | N/A | N/A |
| Overheating, thermal shutdown | Thermal paste degradation, fanless clog | $5-20 (paste + cleaning) | 30 min | Low |
| USB port not working | Physical damage | Not practical to repair | N/A | N/A |
| Complete no-power | External PSU failure or base module | $50-200 (PSU) or $200-400 (base) | 1 hr | Low-Medium |
Decision Flowchart
CP1584 FAILURE REPORTED
|
Does it power on?
/ \
YES NO
| |
Does it boot to Check external PSU.
AR runtime? Replace PSU ($50-200).
/ \ Does it power on now?
YES NO / \
| | YES NO
Machine CF card likely Fixed. Base module or
is running corrupt. Monitor. CPU failure.
but degraded. Replace CF |
Monitor. ($20-80) + CPU hardware
| re-flash. failure. Replace.
| | ($1,500-$5,000
Which Is project for in-family
component file backed upgrade)
is failing? up?
/ \ / \
SAFE NON-SAFE YES NO
LOGIC FAULT Recover Recover project
| | from CF first, then
| | or backup. re-flash.
| | |
| | Can you
| | recover it?
| | / \
| | YES NO
| | | |
| | Re-flash Must reverse-
| | and test. engineer or
| | recreate.
| | (See program-
| | reverse-
| | engineering.md)
| |
| |
Safety Is failure
hardware recurring?
issue. / \
Requires YES NO
certified | |
repair Track Repair
or frequency. complete.
module If >2x/year, Return to
replace. plan service.
| upgrade.
| |
| Is machine
| >3 years from
| planned end of
| life?
| / \
| YES NO
| | |
| Consider Repair and
| in-family monitor.
| upgrade.
|
SafeLOGIC
module
failure:
- Check
X20 safe
bus cables
- Check
configuration
- Replace safe
module
($500-2000)
- Recertification
may be required
When Repair Makes Sense
- Machine expected remaining life under 3 years
- Failure is a known single-component issue (CF card, battery, capacitors)
- Spare CPU is already in inventory (common: OEM bought 2-3 spares)
- Downtime budget is under 4 hours
- No safety system involved or safety system unaffected
- Software is stable and well-documented
- Budget is constrained to under $500
When Replacement Is the Only Option
- CPU itself has failed (Atom processor, DDR2, FPGA)
- POWERLINK bus interface is unreliable
- Multiple recurring failures indicating board-level degradation
- No spare CPU available and none on the secondary market
- Machine life extension justifies capital expenditure
- Need for additional IO capacity, memory, or communication interfaces
- Safety system requires upgrade for compliance
CP1584 on the Secondary Market
| Source | Typical Price | Condition | Risk |
|---|---|---|---|
| Surplus brokers (eBay, surplus.net) | $400-$1,200 | Used, unknown runtime | Firmware mismatch, age |
| Industrial parts brokers (PLC Center, Radwell) | $800-$2,000 | Tested, warranty | 30-90 day warranty |
| B&R direct (if still stocked) | $2,000-$4,000 | New, full warranty | May not be available |
| Refurbished by specialist | $600-$1,500 | Refurbished, tested | 90-day to 1-year warranty |
| Machine graveyard (same OEM) | $0-$300 | Untested, as-is | Firmware, age, unknown |
Important: When buying a replacement CP1584, match the firmware version exactly if possible. See firmware-version-mgmt.md. A firmware version mismatch may require recompiling the project in Automation Studio, which requires the project file.
3. B&R In-Family Migration (Recommended Path)
Migration Within X20 Platform
CP1584 Discontinuation Notice (SN 2022/54): B&R issued discontinuation notice SN 2022/54 for the X20CPx58x series (CP1584, CP1585, CP3584, CP3585) due to component discontinuation. Last-Time-Buy (LTB) deadline was February 28, 2023. The CP1584 is now in the Obsolete phase of B&R’s lifecycle — no new units are available from B&R, and repair service is available only for a limited time after obsolescence. This makes spare parts sourcing from the secondary market (eBay, surplus brokers, classicautomation.com, all4sps.com) critical. Always verify firmware compatibility and burn-test used CPUs before deploying as production spares. See spare-parts.md for sourcing strategies.
The X20 system celebrated its 20th anniversary in 2024 and is actively sold and supported by B&R with no end-of-life announced. Product Manager Andreas Hager confirmed: “The X20 is twenty years old and still going strong.” The three-part module design (bus module + electronic module + terminal block) has remained consistent since 2004, ensuring backward compatibility for IO modules. Migration within X20 is the lowest-risk upgrade path because the programming environment (Automation Studio), the runtime (Automation Runtime / AR), the IO bus (POWERLINK + X2X), and the IO modules remain the same or are backward compatible.
Source: B&R Press Release, October 2024
B&R Product Lifecycle Phases
B&R uses a four-phase lifecycle model for all products. Understanding this is critical when planning spare parts and migrations:
| Phase | Status | Customer Action |
|---|---|---|
| Active | Full production, available unconditionally | Use for new projects |
| Classic | Still in production, but beginning phase-out | B&R notifies customers 3 years before phase-out; do not use for new projects |
| Limited | Only Last-Time-Buy (LTB) orders fulfilled | Must have placed binding LTB order during Classic phase; no new orders |
| Obsolete | No longer available | B&R repair service available for 3 years after obsolescence |
The current lifecycle status of any B&R product is visible at www.br-automation.com and in B&R’s online offers system. Check before committing to a migration path.
Source: B&R Lifecycle Policy
Target CPU Comparison
| Parameter | X20CP1584 (Current) | X20CP1585 | X20CP1684 | X20CP1484 | X20CP1485 | X20CP3484 | X20CP3485 |
|---|---|---|---|---|---|---|---|
| Processor | Intel Atom E620T 600MHz | Intel Atom E640T 1.0GHz | Intel Atom E680T 1.0GHz | Intel Atom E3825 1.33GHz | Intel Atom E3845 1.91GHz | Intel Celeron J1900 2.0GHz | Intel Celeron J3455 1.5GHz |
| Cores | 1 | 1 | 1 | 2 | 4 | 4 | 4 |
| RAM | 256 MB DDR2 | 256 MB DDR2 | 256 MB DDR2 | 1 GB DDR3L | 2 GB DDR3L | 4 GB DDR3L | 4 GB DDR4 |
| User SRAM | 1 MB | 1 MB | 1 MB | 1 MB | 1 MB | 1 MB | 1 MB |
| Storage | CompactFlash | CompactFlash | CompactFlash | SD card | SD card | SD card | SD card |
| Ethernet | 1xGbE + 1xPOWERLINK | 1xGbE + 1xPOWERLINK | 1xGbE + 1xPOWERLINK | 2x 10/100 | 2x 10/100/1000 | 3x 10/100/1000 | 2x 10/100/1000 |
| Interface slots | 1 | 1 | 1 | 1 | 1 | 3 | 2 |
| POWERLINK | V1/V2 (MN/CN) | V1/V2 (MN/CN) | V1/V2 (MN/CN) | 1x via bus | 1x via bus | 2x via bus | 2x via bus |
| USB | 2x USB 1.1/2.0 | 2x USB 1.1/2.0 | 2x USB 1.1/2.0 | 2x Type A | 2x Type A | 2x Type A | 2x Type A |
| Battery | CR2477N (950mAh) | CR2477N (950mAh) | CR2477N (950mAh) | CR2032 | CR2032 | CR2032 | CR2032 |
| Min cycle time | 400 us | 200 us | 200 us | 1 ms | 500 us | 200 us | 100 us |
| Power consumption | 8.6 W | 3 W | N/A | N/A | N/A | N/A | N/A |
| Display | None | None | None | None | None | DVI-I | DVI-I |
| Approx. price | Discontinued | $2,500-$3,500 | $2,000-$3,000 | $1,500-$2,500 | $2,000-$3,500 | $3,000-$5,000 | $3,500-$5,500 |
| AR compatibility | AR 4.x | AR 4.x (AS 4.3+) | AR 4.x (AS 4.7+) | AR 4.x | AR 4.x | AR 4.x | AR 4.x |
| Recommended for | (Legacy) | Best drop-in upgrade | Drop-in upgrade | Budget upgrade | Standard upgrade | Performance upgrade | Performance upgrade |
X20CP1585 is the best direct drop-in replacement for CP1584: Same Atom family processor at higher clock (1.0 GHz vs 0.6 GHz), same CompactFlash storage (no media migration), same RAM (256 MB DDR2), same interface slots, same form factor, and same X2X/POWERLINK bus architecture. The faster CPU halves the minimum task class cycle time (200 us vs 400 us) and dramatically reduces power consumption (3 W vs 8.6 W). Supports OPC-UA. Available from industrial parts suppliers (~$2,500-$3,500 new, ~$1,000-$2,000 surplus). Confirmed as a valid upgrade path by B&R Community: see community.br-automation.com/t/x20cp1585-controller-upgrade/8885.
X20CP1684 is an alternative direct replacement: Same CompactFlash storage and same RAM. Identical performance profile to CP1585 (1.0 GHz, 200 us minimum cycle). Requires Automation Studio 4.7 or later. See community.br-automation.com/t/upgrading-x20cp1584-with-x20cp1684/5727.
X20CP3484 is the performance upgrade path: Switches from CompactFlash to SD card (requires media migration), adds more interface slots and faster POWERLINK. The DDR4 variant provides even better memory performance.
Important: Board-level exchange between CP1484 and CP1584 is NOT possible — the processor types are different and the boards are incompatible. See community.br-automation.com/t/exchange-electronic-boards-between-cpu-x20cp1484-and-x20cp1584/5343.
New Generation X20 Controllers (AR 6.x Targets)
B&R announced a new generation of X20 controllers with Intel Apollo Lake I processors, significantly higher performance, additional RAM, integrated onboard flash memory, and OPC UA over TSN support. These controllers target AR 6.x and Automation Studio 6.x and represent the forward-looking migration path from the CP1584:
| Parameter | X20 New Gen (Apollo Lake I) | X20CP3687X | X20CP0484-1 (Compact-S extended) | Key Difference from CP1584 |
|---|---|---|---|---|
| Processor | Intel Apollo Lake I | Intel (PC-class performance) | Intel | Modern multi-core architecture |
| RAM | 512 MB+ DDR3L/DDR4 | High (PC-class) | 512 MB DDR3L, 2 GB internal flash | 2-4x CP1584 |
| Storage | SD card + onboard flash | SD + onboard flash | SD card + 2 GB onboard flash | No CF card dependency |
| Ethernet | Multiple GbE ports | Multiple GbE | 1x or 2x GbE | More connectivity options |
| Interface slots | 1-3 | 3 | 1 | Depends on model |
| POWERLINK | V2 via bus modules | Via bus modules | Via bus module | Same protocol family |
| OPC UA over TSN | Yes | Yes | Via bus module | Major new capability — deterministic OPC UA at field level |
| Field-level master | Yes | Yes | Configurable | Can serve as TSN/OPC UA field master |
| AR compatibility | AR 6.x only | AR 6.x | AR 6.x | Not backward compatible with AR 4.x |
| AS requirement | AS 6.x | AS 6.x | AS 6.x | Separate product line from AS 4.x |
X20CP3687X — “The power of a PC” in a compact X20 controller. B&R positions this as the highest-performance X20 controller, combining industrial PC performance with the compact X20 form factor. Ideal for machines that need advanced motion control, vision processing, or IIoT gateways alongside PLC control.
X20CP0484-1 — Extended Compact-S series controller with 512 MB RAM and 2 GB internal flash. This is the budget-friendly AR 6.x entry point, suitable for machines that don’t need the full performance of the Apollo Lake I generation but still want patchable AR 6.x firmware.
Sources: B&R “Expanded X20 PLC generation” product page (br-automation.com/en/products/plc-systems/innovations/)
Critical migration implications:
- AS 6 is a separate product — it does not replace AS 4.x. It requires its own license and installation. Projects from AS 4.x cannot be opened directly in AS 6.x; they must be ported using the community migration tools.
- AR 6 drops VxWorks 5.5 — the underlying RTOS migrates to VxWorks 6.x/7.x. Binary-incompatible. All
.brmodules must be recompiled for AR 6 targets. - INA2000 protocol is deprecated in AR 6.x. PVI 6.x uses only ANSL. See pvi-api.md for the implications.
- CF cards are being phased out in favor of SD cards and onboard flash. The CP1584’s dependency on B&R-certified CF cards goes away.
- exOS (Linux alongside AR) is available on multi-core AR 6 controllers, enabling IIoT capabilities without a separate PC. See ar-rtos.md §1.3 and iiot-retrofit.md for exOS details.
Development Tools Update (2025-2026)
New community tools and official B&R tools have emerged that simplify B&R development and migration:
| Tool | Source | Purpose |
|---|---|---|
| Automation Studio Code | B&R (bundled with AS 6.3+) | VS Code-based editor with modern ST/C++ editing, syntax highlighting, minimap, Git integration, and AS Copilot AI assistant. Open beta since June 2025. Fully compatible with AS 6 projects. |
| AS Copilot | B&R (cloud service) | AI assistant integrated into AS Code for ST code generation and commenting. Free until end of 2025 (rate limited). Requires Copilot account. C/C++ support planned. |
| VS Code B&R Automation Tools | github.com/br-automation-com/vscode-brautomationtools | Edit, build, and transfer AS projects from VS Code. Provides IntelliSense for C/C++ programs, build tasks via BR.AS.Build.exe, and transfer tasks via PVITransfer.exe. Requires AS and PVI installed on the system. Not a B&R product — community-maintained. |
| Structured Text VS Code extension | marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-st | Syntax highlighting for IEC 61131-3 ST in VS Code. Can be configured for .fun, .var, .typ B&R file extensions. |
| Loupe Package Manager (LPM) | loupeteam.github.io/LoupeDocs/tools/lpm.html | CLI for managing Loupe packages in AS and Loupe UX ecosystems. Install, update, and remove packages from the command line. |
| as6-migration-tools | github.com/br-automation-community/as6-migration-tools | Automated AS4→AS6 project conversion (existing entry — still the primary migration tool) |
| OMJSON / OMBSON | github.com/loupeteam/OMJSON, OMBSON | JSON/BSON communication libraries for B&R PLCs. Enables modern JSON-based IIoT communication directly from PLC code. |
| TCPComm / UDPComm | github.com/loupeteam/TCPComm, UDPComm | Simplified wrappers around AsTCP/AsUDP system libraries for easier TCP/UDP communication in PLC programs. |
| AxisLib | github.com/loupeteam/AxisLib | Control B&R Mapp Motion and ACP10 servo axes from a higher-level API. |
Note: The awesome-B-R community repository was archived on April 30, 2025 (made read-only). The curated list of tools is now frozen but remains a valuable reference. Active tool development continues in individual repositories. The archive is at github.com/archive-br-automation-com/awesome-B-R.
AS Code vs VS Code B&R Tools — Which to Use?
| Feature | AS Code (B&R official) | VS Code B&R Tools (community) |
|---|---|---|
| ST editing | Full IntelliSense, syntax highlighting | Syntax highlighting only (via separate extension) |
| C/C++ editing | Full IntelliSense, syntax highlighting | IntelliSense via community extension |
| Build/Transfer | Integrated via AS 6.3 | Build via BR.AS.Build.exe, Transfer via PVITransfer.exe |
| AI assistance | AS Copilot (cloud) | None |
| Git integration | Native | Native (VS Code built-in) |
| AS 4.x compatibility | No — AS 6.x only | Yes — works with AS 4.x projects |
| Debugging | Integrated | Via PVI |
| Cost | Requires AS 6 license (no extra cost) | Free |
What Changes with In-Family Migration
| Aspect | Impact | Action Required |
|---|---|---|
| CPU speed | Faster cycle times | May need to adjust task timing |
| RAM | More program/data space | No action required, benefits automatic |
| Storage (CF to SD) | Different media type | Clone CF to SD card before swap |
| Ethernet speed | 10/100 to 10/100/1000 on some | Recheck auto-negotiation on switches |
| POWERLINK | Same protocol, same timing | No action for single node; verify bus config for multi-node |
| IO modules | Backward compatible | Plug-and-play, verify bus addresses |
| Software project | Same AR, same programming | Open in AS 4.x, recompile, download |
| mapp components | Version differences possible | Verify mapp version compatibility |
| Safety configuration | SafeLOGIC modules compatible | Re-verify safety parameters after download |
| Firmware version | Must match AR version | See firmware-version-mgmt.md |
Migration Steps in Automation Studio
Prerequisites:
- Automation Studio 4.x installed (AS 4.x is current)
- Original project file (.apj) recovered or reconstructed
- Target CPU firmware installed in Automation Studio
- CF card backed up using SD card or USB transfer
Step-by-Step Procedure:
-
Backup existing system
- Create full CF card image:
dd if=/dev/sdX of=cp1584_backup.img bs=4M - Backup Automation Studio project file
- Export IO configuration and hardware tree
- Document all parameter values (see config-file-formats.md)
- Record POWERLINK node addresses and bus timing
- Create full CF card image:
-
Open project in Automation Studio 4.x
- If project was created in AS 3.x, AS 4.x will prompt for migration
- Accept migration. Review migration log for warnings.
- Common migration warnings: deprecated function blocks, renamed libraries
- Resolve all warnings before proceeding
-
Change hardware configuration
- In the Hardware Catalog, locate the target CPU
- Right-click existing CPU in the hardware tree -> Replace Hardware
- Select the new CPU model
- Verify all IO modules are still recognized
- Check for any address conflicts after replacement
-
Verify and resolve library compatibility
- Check Library Repository for all used libraries
- Update any libraries flagged as incompatible
- Pay special attention to mapp component versions
- Rebuild project: Project -> Rebuild All
-
Adjust timing parameters
- Open Task Configuration
- Review cycle times against new CPU performance
- If cycle times were tight on old CPU, they will be fine on new CPU
- If software used timing-dependent code (WAIT ms, hardware counters), verify
- Adjust POWERLINK cycle time if required (usually no change needed)
-
Prepare new CPU
- Insert SD card in new CPU
- Power on new CPU, connect Ethernet
- Update firmware via Automation Studio if needed: Tools -> Update Firmware
- Verify firmware version matches project requirements
- Set IP address to match original CPU configuration
-
Download and test
- Download project to new CPU: CPU -> Download
- Verify all IO modules are detected on bus
- Run I/O check: manually activate each input, verify each output
- Run Auto Configuration to let IO modules self-initialize
- Run machine through manual cycle if possible
-
Safety system verification
- If SafeLOGIC is present: re-verify all safety parameters
- Check safe inputs, safe outputs, safe analog values
- Confirm safe bus communication
- Document safety verification for compliance records
-
Commission and monitor
- Run machine in automatic mode
- Monitor for 4-8 hours minimum
- Check for any unexpected behavior in timing-sensitive sequences
- Archive project with new hardware configuration
Hardware Replacement Procedure
PRE-SWAP CHECKLIST
==================
[ ] Machine powered down and locked out (LOTO)
[ ] Original CPU CF card backed up (dd image)
[ ] New CPU firmware version verified
[ ] New CPU IP address configured
[ ] Ethernet cables labeled
[ ] POWERLINK bus cables labeled
[ ] X20 base module connectors labeled
[ ] IO module positions documented with photos
[ ] Project compiled and ready for download
[ ] Test plan prepared
SWAP PROCEDURE
=============
1. Disconnect Ethernet cables from old CPU
2. Disconnect POWERLINK bus cables from old CPU (note: may be daisy-chain)
3. Remove old CPU from X20 base module (slide latch)
4. Mount new CPU on X20 base module
5. Reconnect POWERLINK bus cables (same positions)
6. Reconnect Ethernet cables (same positions)
7. Power on machine
8. Connect laptop to CPU via Ethernet
9. Ping CPU IP address - confirm connectivity
10. Open Automation Studio, connect to CPU
11. Download project
12. Verify IO configuration matches
13. Run I/O check
14. Start machine, monitor
POST-SWAP
=========
[ ] All IO modules detected on bus
[ ] IO check passed (all inputs/outputs verified)
[ ] Machine runs through full automatic cycle
[ ] No error flags in diagnostics
[ ] Backup of new configuration saved
[ ] Old CPU archived as spare (if functional)
[ ] Maintenance log updated
IO Module Backward Compatibility
X20 IO modules are generally backward compatible across CPU generations. Specific notes:
- X20 digital and analog IO modules: fully compatible, plug-and-play
- X20 safe IO modules: compatible, but safety parameters must be re-verified
- X20 communication modules (PROFINET, EtherNet/IP, Modbus): compatible
- X20 bus couplers: compatible
- X20 power supply modules: compatible
- X20 interface modules (X2X, POWERLINK): compatible
Exception: Some very early X20 modules (pre-2010) may need firmware updates to work with AR 4.x. Check the module firmware version in Automation Studio’s Hardware Catalog.
4. X20 to X67 Migration (Form Factor Change)
X67 System Overview
B&R X67 is the IP67-rated compact variant of the X20 system. It uses the same Automation Runtime, the same POWERLINK protocol, and the same programming model (Automation Studio). The difference is physical: X67 modules are designed for mounting directly on the machine without a control cabinet.
X20 vs X67 Comparison
| Aspect | X20 | X67 |
|---|---|---|
| IP rating | IP20 (cabinet mount) | IP67 (direct machine mount) |
| Form factor | 15mm wide modules, DIN rail | Compact blocks, M12 connectors |
| Wiring | Screw terminals | M12 connectors (pre-wired cables) |
| IO density | Higher per module | Lower per module (distributed) |
| Cost per point | Lower | Higher (connector cost) |
| Deployment | Centralized cabinet | Distributed on machine |
| Suitability | New builds, cabinet retrofits | Retrofit without cabinet expansion |
| CPU | Full range (CP1584, CP1484, etc.) | X67C CPU variants |
| IO bus | POWERLINK + X2X | POWERLINK + X2X (same) |
| Programming | Automation Studio | Automation Studio (same) |
| Safety | SafeLOGIC via X20 safe bus | SafeLOGIC via X67 safe bus |
| Diagnostic | LED + web interface | LED + web interface |
When X67 Makes Sense
- Machine has no room for additional cabinet space
- Need to distribute IO across multiple machine zones
- IP67 environment requirement (washdown, dusty, outdoor)
- Simplified installation (M12 connectors vs screw terminals)
- Retrofit where pulling new cables to cabinet is impractical
When X20 Remains Better
- Existing X20 IO modules are healthy and compatible
- Cabinet space is available
- Cost sensitivity (X67 modules cost more per IO point)
- Centralized control architecture preferred
- Complex safety system (more options in X20)
X20 to X67 Migration Considerations
| Concern | Detail |
|---|---|
| Project portability | Same AR, same AS project structure. Minor hardware tree changes only. |
| IO wiring | X67 uses M12 connectors. Requires complete rewiring of field devices. |
| Bus wiring | POWERLINK topology unchanged. Physical cable type may differ (IP67 rated). |
| CPU selection | Use X67C-series CPU. Performance comparable to X20CP1484/1485. |
| Safety migration | SafeLOGIC configuration portable but safe IO modules change. |
| Physical installation | X67 modules mount with brackets or adhesive. No DIN rail needed. |
| Cost | Higher per-point IO cost offset by reduced cabinet and wiring cost. |
X67C CPU Models for Migration
When migrating from a CP1584, the most appropriate X67C CPU replacements are:
| Model | Processor | RAM | POWERLINK | Ethernet | Notes |
|---|---|---|---|---|---|
| X67BC8321 | Intel Atom (1.6 GHz) | 1 GB DDR3 | 2x POWERLINK | 2x GbE | Direct upgrade path, far exceeds CP1584 |
| X67BC8322 | Intel Atom (1.6 GHz) | 1 GB DDR3 | 2x POWERLINK | 2x GbE | With 2x USB, RS232 |
| X67BC8323 | Intel Atom (1.6 GHz) | 1 GB DDR3 | 2x POWERLINK | 2x GbE | With interface slots (serial, CAN) |
| X67DC832A | Intel Atom (1.6 GHz) | 512 MB DDR3 | 1x POWERLINK | 2x GbE | DIP switch for station number |
Note: X67C CPUs use Intel Atom processors significantly faster than the CP1584’s E620T. All X67C models support AR 6.x, which provides substantially more features than the CP1584’s AR 4.x. The migration from AR 4.x to AR 6.x requires Automation Studio 6 and careful project conversion (see Section 3).
X67 M12 Connector Wiring
X67 modules use industry-standard M12 connectors (A-coded for power/signal, D-coded for Ethernet/POWERLINK):
| Connector Type | Application | Pin Configuration |
|---|---|---|
| M12 A-coded 5-pin | Digital IO, analog IO | Pin 1: +24V, Pin 2: Signal, Pin 3: Ground, Pin 4: NC, Pin 5: Shield |
| M12 A-coded 8-pin | Analog IO (differential) | Pin 1: +24V, Pin 2: Signal+, Pin 3: Ground, Pin 4: Signal-, Pin 5: NC/Supply- |
| M12 D-coded 4-pin | Ethernet, POWERLINK | Standard IEEE 802.3af: Pin 1: TX+, Pin 2: TX-, Pin 3: RX+, Pin 4: RX- |
| M12 A-coded 12-pin | Multi-channel digital | Two channels per connector |
X67 Safe IO Migration Notes
When migrating safety systems from X20 to X67:
| X20 Safe Module | X67 Equivalent | Key Differences |
|---|---|---|
| X20SI4340 (safe digital input, 4-ch) | X67SI4340 (safe digital input, 4-ch) | Same function block interface, M12 instead of terminal |
| X20SO4120 (safe digital output, 4-ch) | X67SO4120 (safe digital output, 4-ch) | Same function block interface, M12 instead of terminal |
| X20SA4430 (safe analog input) | X67SA4430 (safe analog input) | Same function block interface |
SafeLOGIC configurations are fully portable — the safety program runs identically on X20 and X67 safety modules. The hardware configuration tree must be updated with the correct X67 module order codes, but no safety logic changes are needed. Safety recertification (SIL verification) should be performed after any hardware change per IEC 61508 requirements.
5. B&R to CODESYS Migration
Overview
CODESYS V3 is the dominant IEC 61131-3 development environment that runs on hardware from multiple vendors. Migrating from B&R to CODESYS means choosing a new hardware platform (Wago, Beckhoff, ifm, etc.) while porting the software to CODESYS.
Target Hardware Platforms
| Platform | CPU Example | Price Range | EtherCAT | PROFINET | CODESYS Support |
|---|---|---|---|---|---|
| Wago PFC200 | Wago PFC200 (ARM Cortex A8) | $500-$2,000 | Yes (via CODESYS EtherCAT) | Yes | CODESYS V3.5 |
| Wago Edge Controller | Wago PFC100/200 V3 | $800-$3,000 | Yes | Yes | CODESYS V3.5 |
| Beckhoff CX | Beckhoff CX9020 (Intel) | $1,000-$3,000 | Yes (native) | Yes | CODESYS V3.5 (via TwinCAT) |
| ifm CR | ifm CR7000/CR8000 | $800-$2,500 | Yes | Yes | CODESYS V3.5 |
| Any CODESYS V3 controller | Various ARM/x86 | $500-$5,000 | Varies | Varies | CODESYS V3.5 |
| Raspberry Pi + CODESYS | RPi 3/4 + CODESYS RTE | $100-$300 | No | No | CODESYS V3.5 (limited) |
What Is Portable from B&R to CODESYS
| Element | Portability | Notes |
|---|---|---|
| IEC 61131-3 languages (ST, LD, FBD, SFC, IL) | High | ST is most portable. IL is deprecated in CODESYS. |
| Standard function blocks (TON, TOF, CTU) | High | Syntax identical. Confirm timing behavior. |
| User-defined function blocks | Medium-High | Rewrite using CODESYS FB structure. Logic is portable, B&R-specific calls are not. |
| Data types (STRUCT, ARRAY, ENUM) | High | Mostly identical syntax. |
| Task configuration | Medium | Different task model. Map B&R tasks to CODESYS tasks. |
| POWERLINK configuration | Low | POWERLINK supported via EPSG CODESYS EtherCAT stack but configuration differs entirely. |
| mapp components | None | No equivalent. Must implement functionality from scratch. |
| B&R library functions (mc, as, sys) | None | Must find or write equivalents. |
| Visualization (mapp View / Panel) | None | Must rebuild in CODESYS WebVisu or third-party HMI. |
| OPC-UA communication | High | Both support OPC-UA, but configuration is different. |
| Modbus communication | Medium | Both support Modbus, but implementation differs. |
| File system operations | Low | B&R FileIO library has no CODESYS equivalent. Use SysFile library. |
What Is NOT Portable (Must Be Rewritten)
- All B&R-specific libraries (mapp, mc, as, sys, FileIO, Timer, etc.)
- All mapp components (mapp Motion, mamp View, mapp Alarm, etc.)
- B&R visualization pages
- B&R configuration objects (Axis, CAM, etc.)
- B&R-safe function blocks (SafeLOGIC programs)
- B&R PVI communication
- B&R-specific task triggers (hardware interrupt, POWERLINK event)
POWERLINK on CODESYS
POWERLINK (Ethernet POWERLINK) is standardized through EPSG (Ethernet POWERLINK Standardisation Group). CODESYS supports POWERLINK through the CODESYS EtherCAT stack, but this is not a direct drop-in replacement.
Reality check: Most CODESYS hardware platforms use EtherCAT, not POWERLINK. If you need to keep existing POWERLINK IO, your options are limited:
- Use a B&R X20 bus coupler as a POWERLINK-to-EtherCAT gateway (complex)
- Replace IO with EtherCAT-compatible IO (requires rewiring)
- Use CODESYS on B&R hardware (possible but defeats migration purpose)
Recommendation: If IO must be replaced anyway (due to degradation), migrate to EtherCAT IO simultaneously. If IO is healthy, stay within B&R ecosystem.
Safety System Migration: B&R SafeLOGIC to CODESYS Safe SIL
This is the most critical and costly aspect of any cross-platform migration.
| Aspect | B&R SafeLOGIC | CODESYS Safe SIL |
|---|---|---|
| Programming | B&R AS safe editor | CODESYS Safe editor (separate SIL2/3 environment) |
| Certification | TUV-certified for B&R hardware | TUV-certified for specific CODESYS controller |
| IO | X20 safe IO modules | Platform-specific safe IO (EtherCAT FSoE) |
| Validation | B&R validation toolchain | CODESYS Safety SIL validation toolchain |
| Recertification | Required when changing hardware | Required (new platform = new certification) |
| Effort | N/A for same platform | 2-6 weeks for safety system alone |
| Cost | Included with SafeLOGIC modules | Controller + safe IO + engineering + certification |
Safety migration is not a software port. It requires:
- New SIL assessment for the target platform
- Rewriting all safety logic in CODESYS Safe SIL
- New hardware safety validation (FSoE communication tests)
- Third-party validation and certification
- Updated safety documentation (SRS, SIS, test records)
Estimated cost for safety migration alone: $5,000 - $25,000 depending on complexity.
Estimated CODESYS Migration Effort
| Component | Effort (person-days) | Prerequisites |
|---|---|---|
| Hardware selection and procurement | 3-5 | IO requirements documented |
| Control logic porting (per 1000 IEC lines) | 5-15 | Original program understood |
| B&R-specific library replacement | 10-30 | Depends on library usage |
| Motion control reimplementation | 15-40 | If motion is used |
| HMI/visualization rebuild | 10-30 | If visualization is used |
| Communication (OPC-UA, Modbus, custom) | 5-15 | Protocol requirements |
| Safety system (if applicable) | 20-40 | SIL certification required |
| Testing and commissioning | 10-20 | Full system test |
| Total (simple, no motion, no safety) | 40-100 | 8-20 weeks |
| Total (complex, with motion + safety) | 100-200+ | 20-40+ weeks |
6. B&R to Siemens Migration
Siemens Platform Overview
Siemens S7-1500 is the flagship PLC platform within the TIA Portal ecosystem. Migration from B&R to Siemens is a complete platform change: different hardware, different software (TIA Portal vs Automation Studio), different IO, different communication protocols.
Hardware Comparison
| Aspect | B&R X20CP1584 | Siemens S7-1500 (e.g., CPU 1515-2 PN) |
|---|---|---|
| Processor | Intel Atom E620T 600MHz | Siemens industrial processor |
| RAM | 256MB DDR2 | 256KB work memory, 1.5MB load memory |
| Storage | CompactFlash | SIMATIC Memory Card |
| Ethernet | 2x 10/100 + POWERLINK | 2x PROFINET (10/100/1000) |
| IO | X20 via POWERLINK/X2X | ET 200 via PROFINET |
| Programming | Automation Studio 4.x | TIA Portal (STEP 7) |
| Languages | IEC 61131-3 (ST, LD, FBD, SFC, IL) | IEC 61131-3 (ST, LD, FBD, SFC) + Graph, CFC |
| Safety | SafeLOGIC | F-CPU (Failsafe CPU) |
| Motion | Integrated (mapp Motion) | Integrated (Technology Objects) |
| Diagnostics | Web-based, LED | Web-based, LED, TIA Portal integrated |
Software Migration Challenges
| B&R Concept | Siemens Equivalent | Migration Complexity |
|---|---|---|
| Automation Studio project | TIA Portal project | Complete recreation |
| IEC 61131-3 ST code | STEP 7 ST code | Medium - syntax differences |
| B&R Function Blocks (mapp, mc) | Siemens FC/FB + Technology Objects | High - rewrite required |
| POWERLINK bus | PROFINET | Complete IO reconfiguration |
| X20 IO modules | ET 200SP / ET 200MP | Complete rewiring |
| mapp View visualization | WinCC Advanced/Comfort | Complete recreation |
| OPC-UA | OPC-UA (Siemens) | Medium - different API |
| SafeLOGIC | F-CPU + F-I/O | Complete safety system rewrite |
| Task configuration | Cycle OB, time OB | Medium - different model |
| Data logging | Siemens Data Logging | Medium |
| Alarm management | Siemens Alarm Management | Medium |
IEC 61131-3 Dialect Differences (B&R ST vs Siemens ST)
B&R Automation Studio ST: | Siemens TIA Portal ST:
-----------------------------------+----------------------------------
x := y + z; | x := y + z;
IF a THEN | IF a THEN
b := TRUE; | b := TRUE;
END_IF; | END_IF;
// B&R uses: | // Siemens uses:
fbInst(input := 10); | fbInst(input := 10);
| // or:
| fbInst.Input := 10;
// B&R timer: | // Siemens IEC timer:
TON_inst(IN := TRUE, PT := T#5s); | TON_Instance(IN := TRUE, PT := T#5S);
// B&R string: | // Siemens string:
s := 'Hello'; | s := 'Hello';
| // STRING[254] type declaration
| // differs from B&R STRING type
// B&R array access: | // Siemens array access:
a[5] := 10; | a[5] := 10;
| // Array bounds checking differs
// B&R pointer (rare): | // Siemens pointer:
p := ADR(variable); | p := %MW100; // absolute addressing
Communication Migration: POWERLINK to PROFINET
This is one of the most impactful changes. POWERLINK and PROFINET are fundamentally different protocols:
| Aspect | POWERLINK (B&R) | PROFINET (Siemens) |
|---|---|---|
| Standard | Open (EPSG) | Siemens + PI |
| Topology | Tree, star, daisy-chain | Star, tree (switched) |
| Timing | Deterministic (isochronous) | Deterministic (IRT, RT) |
| Configuration | B&R AS or openCONFIGURATOR | TIA Portal |
| IO devices | X20 modules | ET 200SP, ET 200MP, third-party |
| Cables | Standard Ethernet | Standard Ethernet |
| Switches | Standard or managed | Siemens SCALANCE or standard |
Impact: All IO must be replaced. All field wiring to IO terminals must be re-punched or re-connected. IO addresses will change. All IO references in program code must be updated.
Safety Migration: B&R SafeLOGIC to Siemens F-CPU
| Aspect | B&R SafeLOGIC | Siemens F-CPU |
|---|---|---|
| Safety CPU | Separate SafeLOGIC module or integrated | Integrated F-CPU (same CPU with safety) |
| Safety IO | X20 safe IO modules | F-I/O modules (ET 200F, ET 200SP F) |
| Programming | SafeLOGIC in Automation Studio | F-CPU programming in TIA Portal |
| Certification | SIL 2/3 | SIL 1-3 (depends on F-CPU variant) |
| Validation | B&R tools | Siemens tools + TUV |
| Safety communication | Safe bus (B&R proprietary) | PROFIsafe |
| Effort to migrate | N/A | 3-8 weeks |
Cost Comparison: In-Family vs Siemens Migration
| Cost Item | B&R In-Family (X20CP1584 -> X20CP3484) | Siemens S7-1500 Migration |
|---|---|---|
| New CPU | $3,000-$5,000 | $2,000-$6,000 |
| New IO modules | $0 (reuse X20) | $5,000-$20,000 (ET 200) |
| Software (AS 4.x) | $0 (already have) | $2,000-$5,000 (TIA Portal license) |
| Engineering labor | 2-5 days | 20-60 days |
| Safety recertification | Minimal (same platform) | $5,000-$25,000 |
| Wiring changes | Minimal | Complete rewiring |
| Commissioning downtime | 1-2 days | 1-4 weeks |
| Training | Minimal (same tools) | 2-4 weeks for engineers |
| Total estimated cost | $4,000-$8,000 | $25,000-$80,000+ |
7. B&R to Beckhoff Migration
Beckhoff Platform Overview
Beckhoff’s TwinCAT 3 environment runs on standard PC hardware (CX series industrial PCs or standard IPCs) and provides IEC 61131-3 programming. It is architecturally similar to B&R in several ways, making it a relatively more natural migration target than Siemens.
B&R vs Beckhoff: Architectural Similarities
| Aspect | B&R X20 | Beckhoff TwinCAT 3 |
|---|---|---|
| CPU | Intel Atom on embedded module | Intel Celeron/i-series on CX or standard IPC |
| Bus | POWERLINK (Ethernet POWERLINK) | EtherCAT |
| IO | X20 modules (DIN rail, IP20) | EtherCAT Terminals (DIN rail, IP20) |
| Programming | Automation Studio | TwinCAT 3 (CODESYS-based) |
| Languages | IEC 61131-3 | IEC 61131-3 + Python + C++ |
| Safety | SafeLOGIC (SIL 2/3) | TwinCAT Safety (SIL 2/3) via FSoE |
| HMI | Power Panel / mapp View | TwinCAT HMI / CX Touch panels |
| Motion | Integrated (mapp Motion) | Integrated (TwinCAT NC PTP/NC I) |
| Configuration | AS hardware tree | TwinCAT System Manager |
| Cost model | Higher CPU, lower per-point IO | Lower CPU, moderate per-point IO |
Key Differences
| Difference | Impact on Migration |
|---|---|
| POWERLINK vs EtherCAT | IO bus change. Must replace all IO modules and field wiring. |
| Automation Studio vs TwinCAT | Different IDE. Project structure differs. |
| B&R mapp components | No Beckhoff equivalent. Must implement functionality directly. |
| X20 module vs EtherCAT terminals | Different physical form factor, different wiring (screw terminals vs spring-clamp). |
| B&R-specific libraries | Must rewrite for TwinCAT. TwinCAT has its own library ecosystem. |
| Configuration objects | B&R Axis/CAM objects -> TwinCAT NC PTP/NC I configuration. |
Library Migration: B&R to TwinCAT
| B&R Library/Function | TwinCAT Equivalent | Notes |
|---|---|---|
mapp Motion (mcAXIS, mcPower) | Tc2_MC_Power, Tc2_MC_Base | Axis configuration changes; FB interface differs but concepts similar |
mapp AlarmX | Tc2_Alarm | Beckhoff alarm management uses different trigger model |
mapp View (HMI) | Tc3_HMI or Tc3_WebUI | Completely different HMI paradigm; web-based in TwinCAT |
FileIO | Tc2_System SysFile* | File operations; similar API surface |
AsTCP / AsUDP | Tc2_Socket | Socket API; similar but different function block naming |
AsBrStr | Tc2_Standard | String operations |
AsMath | Tc2_Standard F_MATH | Math functions |
AsTimer | TON/TOF/TP (IEC standard) | Timer function blocks |
McParam (drive params) | EtherCAT drive configuration | Via ESI (EtherCAT Slave Information) XML files |
PVI (PLC access) | ADS/AMS protocol | Beckhoff’s native communication protocol |
Powerlink | EtherCAT master (built into TwinCAT) | Configure in System Manager, scan bus |
Beckhoff Hardware Selection for Migration from CP1584
| B&R Component | Beckhoff Replacement | Model Suggestion | Notes |
|---|---|---|---|
| X20CP1584 (CPU) | CX9020 or C6920 | Intel Celeron N3160 (CX9020) or Core i (C6920) | Far exceeds CP1584 performance |
| X20 base module | CX bus coupler terminals | BK1120 (EtherCAT coupler) | First terminal in each EtherCAT segment |
| X20 digital input (e.g., X20DI9371) | EL1002, EL1004, EL1008 | 2/4/8-ch 24V DC digital input | Spring-clamp terminals |
| X20 digital output (e.g., X20DO9321) | EL2002, EL2004, EL2008 | 2/4/8-ch 24V DC digital output | Spring-clamp terminals |
| X20 analog input (e.g., X20AI4622) | EL3122, EL3152, EL3162 | 2-ch ±10V/4-20mA, 14-16-bit | Per-channel configurable on some models |
| X20 analog output (e.g., X20AO4622) | EL4002, EL4032 | 2-ch analog output | |
| X20 POWERLINK interface | Integrated EtherCAT on CX | N/A | No separate bus module needed |
| X20 RS232 (IF1) | EL6021 | 1-ch serial RS232 terminal | |
| ACOPOS drive | AM8000/AM3000 servo | EtherCAT-compatible | FSoE safe terminals for safety |
EtherCAT Configuration in TwinCAT (from B&R POWERLINK)
The EtherCAT configuration replaces POWERLINK entirely. Configuration steps:
- Install TwinCAT 3 XAE on development PC
- Create new TwinCAT project (TwinCAT XAE project type)
- Add target device — configure CX9020 IP address
- Scan EtherCAT bus — TwinCAT System Manager auto-discovers connected terminals
- Import ESI XML files — for any non-Beckhoff EtherCAT slaves (drives, gateways)
- Map process data — link EtherCAT terminal I/O to PLC variables in the “I/O” mapping view
- Configure drive axes — TwinCAT NC PTP for point-to-point, NC I for interpolated motion
- Safety configuration — add TwinCAT Safety project, map safe I/O, write safety PLC program
openCONFIGURATOR: If migrating to a non-Beckhoff EtherCAT platform (CODESYS, Wago), use the open-source openCONFIGURATOR tool from the EtherCAT Technology Group (https://www.ethercat.org) instead of TwinCAT System Manager for bus configuration. openCONFIGURATOR provides similar EtherCAT network scanning and process data mapping capabilities.
Migration Path
-
Hardware: Replace B&R X20 CPU with Beckhoff CX9020 (or similar). Replace all X20 IO with EtherCAT terminals. Replace power supplies if needed.
-
Software:
- Create new TwinCAT 3 project
- Port IEC 61131-3 logic (ST code is most portable)
- Configure EtherCAT IO in TwinCAT System Manager
- Replace B&R library calls with TwinCAT library equivalents (see table above)
- Configure motion control in TwinCAT NC PTP or NC I
- Build HMI in TwinCAT HMI or web-based
-
Safety:
- Replace B&R SafeLOGIC with TwinCAT Safety
- Use EtherCAT FSoE safe terminals (EL6900, etc.)
- Rewrite safety logic in TwinCAT Safe editor
- Recertify (SIL assessment on new platform)
-
HMI replacement:
- mapp View → TwinCAT HMI (Tc3_HMI) for PC-based visualization
- Or use TwinCAT TF2000 (web-based HMI) for browser access
- mapp View widget library has no TwinCAT equivalent; rebuild all screens
- Consider third-party web HMI solutions if TwinCAT HMI is insufficient
Beckhoff vs Siemens vs B&R Stay: Decision Matrix
| Criteria | Stay with B&R | Migrate to Beckhoff | Migrate to Siemens |
|---|---|---|---|
| Lowest migration effort | Yes | Medium | High |
| Lowest total cost | Yes (if in-family) | Medium | High |
| Best long-term support | Good (B&R active) | Excellent (Beckhoff large) | Excellent (Siemens dominant) |
| Widest talent pool | Small (B&R niche) | Medium | Large (Siemens standard) |
| Open standards support | Good (POWERLINK open) | Excellent (EtherCAT open) | Mixed (PROFINET proprietary) |
| Motion control sophistication | High | High | High |
| Safety certification | Good | Good | Good |
| Best for new features | Medium | High | High |
| Risk level | Low | Medium | High |
8. Migration Project Planning
Phase Overview
Phase 1: Document Existing System Week 1-2
Phase 2: Functional Requirements Spec Week 2-3
Phase 3: Hardware Selection Week 3-4
Phase 4: Software Development Week 4-12
Phase 5: Factory Acceptance Test Week 12-13
Phase 6: Commissioning Week 13-14
Phase 7: Parallel Operation Week 14-18
Phase 8: Decommissioning Old System Week 18
Phase 1: Document Existing System
Duration: 1-2 weeks
See documentation-reconstruction.md for detailed procedures. Key deliverables:
- Hardware inventory with module types, positions, and firmware versions
- IO wiring diagrams (input/output mapping)
- Network configuration (IP addresses, POWERLINK topology)
- Software version information (AR version, AS project version)
- Safety system documentation (if applicable)
- Photographs of all wiring, module positions, and label plates
- Export of current PLC program (if accessible)
Critical deliverable for cross-platform migration: A functional requirements document that describes what the machine does, not how it does it. This separates the machine’s behavior from the specific implementation.
Phase 2: Functional Requirements Specification
Duration: 1 week
Document what the control system must do in platform-independent terms:
- Process flow: Step-by-step description of machine operation
- IO list: Every input, output, analog value, and its function
- Interlocks: All safety and operational interlocks
- Sequences: All automatic sequences (start-up, normal operation, shutdown, emergency stop)
- Alarms: All alarm conditions and responses
- Setpoints: All operator-adjustable parameters
- Communication: All external interfaces (HMIs, SCADA, MES, other PLCs)
- Motion: All axes, speeds, positions, cam profiles
- Safety: All safety functions and their SIL requirements
This document becomes the acceptance criterion for the new system. It also serves as the primary input if you need to recreate the program from scratch.
Phase 3: Hardware Selection
Duration: 1 week
Based on functional requirements, select target platform:
| Decision Factor | Weight | B&R In-Family | CODESYS/Wago | Siemens S7-1500 | Beckhoff CX |
|---|---|---|---|---|---|
| Migration effort | 30% | 10/10 | 5/10 | 3/10 | 6/10 |
| Total cost | 25% | 9/10 | 7/10 | 4/10 | 7/10 |
| IO compatibility | 15% | 10/10 | 3/10 | 2/10 | 3/10 |
| Safety portability | 15% | 9/10 | 5/10 | 5/10 | 6/10 |
| Long-term support | 10% | 8/10 | 7/10 | 9/10 | 9/10 |
| Talent availability | 5% | 4/10 | 6/10 | 9/10 | 6/10 |
Score each option on a 1-10 scale, multiply by weight, sum.
Phase 4: Software Development
Duration: 4-8 weeks (varies with complexity)
For in-family migration: 2-5 days (mostly recompile and verify) For cross-platform migration: 4-12+ weeks
Milestones:
- Development environment configured
- IO mapping table completed (old addresses to new addresses)
- Core control logic ported
- All sequences implemented
- All alarms implemented
- Motion control configured (if applicable)
- HMI screens created
- Communication interfaces tested
- Safety logic implemented (if applicable)
- Unit testing complete
Phase 5: Factory Acceptance Test
Duration: 1 week
Conduct FAT with machine or IO simulation:
- Verify all IO points against requirements document
- Test all sequences manually and in automatic
- Verify alarm behavior
- Test communication interfaces
- Verify safety system (if applicable)
- Document any deviations from requirements
- Obtain sign-off from stakeholders
Phase 6: Commissioning
Duration: 1 week
- Install new hardware during planned downtime
- Wire IO (or verify preserved wiring for in-family swap)
- Download software
- Verify IO point-by-point
- Test sequences with machine
- Adjust timing and parameters
- Document all changes from FAT
Phase 7: Parallel Operation
Duration: 2-4 weeks
- Run new system in parallel with old (if architecture allows)
- Or: run new system with old system on standby
- Monitor for anomalies
- Train operators on any HMI changes
- Tune performance parameters
Phase 8: Decommissioning Old System
Duration: 1 day
- Remove old hardware
- Archive old CF card and project file
- Update maintenance documentation
- Return old hardware to spare parts pool (if functional) or dispose
- Update asset register
Resource Estimation
| Migration Type | Total Duration | Engineering Effort | Commissioning Duration | Downtime Required |
|---|---|---|---|---|
| In-family CPU swap | 2-4 weeks | 2-5 person-days | 1-2 days | 4-8 hours |
| X20 to X67 | 4-8 weeks | 10-20 person-days | 3-5 days | 1-3 days |
| B&R to CODESYS (simple) | 8-16 weeks | 40-80 person-days | 1-2 weeks | 1-2 weeks |
| B&R to CODESYS (complex) | 16-40 weeks | 100-200 person-days | 2-4 weeks | 2-4 weeks |
| B&R to Siemens | 16-40 weeks | 80-200 person-days | 2-4 weeks | 2-4 weeks |
| B&R to Beckhoff | 12-30 weeks | 60-150 person-days | 1-3 weeks | 1-3 weeks |
9. Minimizing Downtime During Migration
Strategy 1: Pre-Commissioning on Bench
Before the shutdown, build a replica of the new system on a workbench:
- Mount new CPU and IO modules on DIN rail
- Wire test inputs (switches, buttons) and test outputs (LEDs, relays)
- Download software and verify basic operation
- Simulate IO states using manual switches or test software
- Test all sequences, alarms, and safety logic
- Resolve all software issues before the production shutdown
Benefit: Reduces commissioning downtime by 50-75%.
Strategy 2: Staged Migration
For complex systems, migrate in stages over multiple short shutdowns:
Stage 1 (Shutdown 1, 4-8 hours):
- Install new CPU alongside old CPU
- Wire new CPU to existing IO (parallel wiring)
- Pre-position all cables
Stage 2 (Shutdown 2, 4-8 hours):
- Switch IO connections from old to new CPU
- Verify IO point-by-point
- Run machine on new CPU
Stage 3 (Shutdown 3, 2-4 hours):
- Remove old CPU and wiring
- Final cleanup and documentation
Strategy 3: IO Mapping Preservation
When migrating within B&R (X20 to X20), preserve IO addresses:
- Document all IO addresses in old system
- In new system, manually set IO addresses to match old system
- Program references remain unchanged
- Only hardware configuration changes, not software logic
This technique reduces software modification to near zero for in-family swaps.
Strategy 4: Temporary Bridge PLC
For cross-platform migrations where downtime must be minimized:
- Install a small, inexpensive PLC (e.g., Wago 750-8206) as a temporary controller
- Program it with minimal logic to keep the machine running (manual mode only)
- This frees the original B&R hardware for reference during migration
- Or: this allows the original hardware to be decommissioned safely
Strategy 5: Rollback Plan
Always have a rollback plan:
Rollback Checklist (before starting migration):
[ ] Old CPU CF card fully backed up (dd image)
[ ] Old CPU stored in anti-static bag, labeled
[ ] IO wiring diagram documented (with photos)
[ ] All IO connections can be restored to old configuration within 2 hours
[ ] Backup of all new software and configurations
[ ] Test procedure for verifying rollback success
[ ] Decision criteria: when to abort migration and rollback
[ ] Rollback decision authority identified (who makes the call)
Downtime Estimation by Strategy
| Strategy | Planned Downtime | Risk of Overtime | Preparation Effort |
|---|---|---|---|
| Direct swap (no prep) | 1-4 weeks | High | Minimal |
| Pre-commissioned on bench | 1-3 days | Low-Medium | 2-4 weeks |
| Staged migration (3 stages) | 3x 4-8 hours | Low | 4-6 weeks |
| Temporary bridge PLC | 4-8 hours (final) | Low | 3-5 weeks |
| Parallel operation | 2-4 hours (cutover) | Very Low | 6-8 weeks |
10. Cost/Benefit Analysis Framework
Repair Cost Model
Total Repair Cost = Parts Cost + Labor Cost + Downtime Cost + Risk Cost
Parts Cost:
CF card: $20 - $80
Battery (CR2032): $5 - $15
Capacitors: $10 - $50
PSU replacement: $50 - $200
Base module: $200 - $400
Labor Cost:
Diagnosis: 1-4 hours x hourly rate
Repair: 0.5-4 hours x hourly rate
Testing: 1-4 hours x hourly rate
Downtime Cost:
Production loss per hour x estimated downtime hours
(typically 1-8 hours for repair scenarios)
Risk Cost (probability-weighted):
P(failure within 6 months) x (replacement cost + downtime cost)
Example: 30% chance of failure within 6 months
x $5,000 replacement cost
= $1,500 risk cost
Example Repair Calculation:
Parts (CF card): $40
Labor (4 hours): 4 x $100/hr = $400
Downtime (4 hours): 4 x $500/hr = $2,000
Risk (30% x $5000): $1,500
TOTAL: $3,940
In-Family Upgrade Cost Model
Total Upgrade Cost = Hardware Cost + Software Cost + Labor Cost +
Downtime Cost + Commissioning Cost
Hardware Cost:
New CPU (X20CP1485): $2,000 - $3,500
SD card (if not included): $20 - $60
New firmware license (if needed): $0 - $500
Mounting hardware (if needed): $0 - $50
Software Cost:
Automation Studio license: $0 (already have)
Library updates: $0 - $200
Labor Cost:
Preparation and planning: 8-16 hours x hourly rate
Hardware swap: 4-8 hours x hourly rate
Software migration: 4-16 hours x hourly rate
Testing: 8-16 hours x hourly rate
Downtime Cost:
Production loss per hour x estimated downtime hours
(typically 4-16 hours for in-family swap)
Commissioning Cost:
IO verification: 4-8 hours x hourly rate
Safety verification: 4-8 hours x hourly rate
Run-in monitoring: 8-16 hours x hourly rate
Example In-Family Upgrade Calculation:
Hardware (CPU): $2,500
Software: $100
Labor (40 hours): 40 x $100/hr = $4,000
Downtime (8 hours): 8 x $500/hr = $4,000
Commissioning (16 hours): 16 x $100/hr = $1,600
TOTAL: $12,200
Platform Migration Cost Model
Total Migration Cost = Hardware Cost + Software/License Cost +
Engineering Cost + Downtime Cost +
Commissioning Cost + Safety Cost +
Training Cost + Risk Contingency
Hardware Cost:
New PLC CPU: $1,000 - $6,000
IO modules (all replaced): $5,000 - $25,000
Networking equipment: $500 - $3,000
Power supplies: $200 - $1,000
Cabinets/enclosures: $500 - $3,000
Cabling/wiring: $1,000 - $5,000
Software/License Cost:
Programming software: $1,000 - $5,000
Communication drivers: $200 - $2,000
HMI software: $500 - $3,000
Safety software (if needed): $500 - $2,000
Engineering Cost:
Documentation: 40-80 hours x hourly rate
Software development: 200-800 hours x hourly rate
Testing and simulation: 40-80 hours x hourly rate
HMI development: 40-120 hours x hourly rate
Downtime Cost:
Production loss per hour x estimated downtime hours
(typically 40-160 hours for full migration)
Commissioning Cost:
Installation: 40-80 hours x hourly rate
IO verification: 16-40 hours x hourly rate
Sequence testing: 40-80 hours x hourly rate
Safety validation: 40-80 hours x hourly rate
Performance tuning: 16-40 hours x hourly rate
Safety Cost (if applicable):
Safety engineering: $5,000 - $15,000
SIL assessment: $3,000 - $10,000
Third-party validation: $2,000 - $8,000
F-I/O modules: $2,000 - $8,000
Training Cost:
Engineering team: $2,000 - $8,000
Maintenance team: $500 - $2,000
Operators: $500 - $2,000
Risk Contingency:
20-30% of total above (unforeseen issues)
Example Platform Migration (B&R to Siemens, moderate complexity):
Hardware: $18,000
Software/Licenses: $5,500
Engineering (500 hours): 500 x $100/hr = $50,000
Downtime (80 hours): 80 x $500/hr = $40,000
Commissioning (200 hours): 200 x $100/hr = $20,000
Safety: $15,000
Training: $6,000
Contingency (25%): $38,625
TOTAL: $193,125
Ongoing Maintenance Cost Comparison (Annual)
| Cost Item | B&R In-Family | CODESYS Platform | Siemens Platform | Beckhoff Platform |
|---|---|---|---|---|
| Spare parts inventory | $1,000-$3,000 | $500-$2,000 | $500-$2,000 | $500-$2,000 |
| Software maintenance | $500-$1,000/yr | $300-$800/yr | $500-$1,500/yr | $300-$800/yr |
| Engineering support (hrs/yr) | 10-20 | 15-30 | 10-20 | 15-25 |
| Failure probability (annual) | 2-5% | 2-5% | 2-4% | 2-5% |
| Mean repair cost per failure | $500-$2,000 | $300-$1,500 | $300-$1,500 | $300-$1,500 |
| Expected annual repair cost | $50-$200 | $30-$150 | $30-$120 | $30-$150 |
| Training refresh (annual) | $500 | $500 | $1,000 | $500 |
| Total annual | $2,550-$5,700 | $2,130-$5,050 | $2,530-$5,620 | $2,080-$4,950 |
ROI Calculation
ROI = (Annual Savings - Annual Cost) / Migration Investment x 100%
Annual Savings = Old annual maintenance - New annual maintenance
+ Reduced downtime value
+ Reduced failure probability value
Annual Cost = New annual maintenance
+ License fees
+ Support contracts
Example (B&R in-family upgrade):
Migration investment: $12,200
Old annual maintenance: $5,000
New annual maintenance: $3,000
Reduced downtime: 4 hours/year x $500/hr = $2,000
Reduced failure probability: $200/year saved
Annual savings: $5,000 - $3,000 + $2,000 + $200 = $4,200
Annual net benefit: $4,200 - $3,000 = $1,200
ROI: $1,200 / $12,200 x 100% = 9.8%
Payback period: $12,200 / $1,200 = 10.2 years
Example (B&R to Siemens, with 7-year machine life remaining):
Migration investment: $193,125
Old annual maintenance: $5,000
New annual maintenance: $3,000
Reduced downtime: 16 hours/year x $500/hr = $8,000
Reduced failure probability: $200/year saved
Annual savings: $5,000 - $3,000 + $8,000 + $200 = $10,200
Annual net benefit: $10,200 - $3,000 = $7,200
ROI: $7,200 / $193,125 x 100% = 3.7%
Payback period: $193,125 / $7,200 = 26.8 years
This migration would NOT pay for itself within the machine's remaining life.
In-family upgrade is the correct choice.
Decision Rule Summary
IF machine remaining life < 3 years AND system is repairable:
-> REPAIR (Zone 1-2)
Budget: $10 - $500
Risk: Low
ELIF machine remaining life 3-7 years AND project file available:
-> IN-FAMILY UPGRADE (Zone 3)
Budget: $1,500 - $8,000
Risk: Low-Medium
ELIF machine remaining life > 7 years AND OEM standardization needed:
-> CROSS-PLATFORM MIGRATION (Zone 4)
Budget: $15,000 - $80,000
Risk: Medium-High
ELIF full redesign of machine control required:
-> FULL REDESIGN (Zone 5)
Budget: $25,000 - $200,000+
Risk: High
ELIF no project file AND no documentation:
-> DOCUMENTATION FIRST
See documentation-reconstruction.md
Then reassess.
11. Legacy B&R Specific Considerations
B&R 2003 / B&R 2005 Systems
B&R’s predecessor system (2003/2005 series) uses different hardware, different programming (AS V2.x or earlier), and different IO. Migration from 2003/2005 to X20 is effectively a platform migration:
| Aspect | B&R 2003/2005 | B&R X20 |
|---|---|---|
| Programming | Automation Studio 2.x | Automation Studio 4.x |
| Runtime | AR 2.x | AR 4.x |
| IO bus | CAN bus | POWERLINK / X2X |
| IO modules | 2003/2005 series | X20 series |
| CPU modules | 2003 CPU (e.g., CP570) | X20CP series |
| Language support | AWL (B&R-specific), ST, LD | IEC 61131-3 standard |
| Project format | .apj (AS 2.x) | .apj (AS 4.x, different internal format) |
Migration path: AS 2.x projects can sometimes be imported into AS 4.x, but this is not guaranteed. AWL (Anweisungsliste) is B&R’s proprietary instruction list language that has no direct equivalent in IEC 61131-3 IL. AWL programs must be manually rewritten in ST.
B&R Power Panel Migration
B&R Power Panel devices combine HMI and PLC functionality. Migration options:
| From | To | Effort |
|---|---|---|
| Power Panel 400 | Power Panel 500 | Low-Medium (same AR, new hardware) |
| Power Panel 400 | X20 CPU + separate HMI | Medium |
| Power Panel 400 | Industrial PC + Control Runtime | Medium-High |
B&R APROL (DCS) Migration
APROL is B&R’s process automation / DCS platform. Migration from older APROL versions:
- In-place upgrade: APROL V3.x to APROL V4.x (supported by B&R migration tools)
- APROL to X20-based control (if process control complexity justifies DCS)
- APROL to alternative DCS (Siemens PCS 7, ABB 800xA, Emerson DeltaV)
APROL migration is beyond the scope of this guide due to its process-industry-specific complexity.
Safety System Recertification Requirements
When any safety-related hardware or software changes, recertification may be required:
| Change Type | Recertification Required? | Notes |
|---|---|---|
| Same SafeLOGIC module, software unchanged | No | Hardware repair only |
| Same SafeLOGIC module, software update | Possibly | If safety parameters changed |
| New SafeLOGIC module, same program | Yes | Module validation required |
| Different SafeLOGIC module generation | Yes | Full safety validation |
| SafeLOGIC to different platform | Yes | Full SIL assessment + validation |
Recertification process:
- Update Safety Requirements Specification (SRS)
- Update Safety Validation Report
- Perform functional safety testing on new hardware
- Document all changes and their safety impact
- Have independent assessor review (for SIL 2+)
- File updated documentation
Estimated recertification effort: 1-4 weeks for in-family, 2-8 weeks for cross-platform.
Adaptive Manufacturing and the ACOPOS D1 (2026 Context)
B&R’s 2026 Innovation Days theme is adaptive automation — moving from rigid production lines to flexible, modular manufacturing systems. As part of this strategy, B&R launched the ACOPOS D1 servo drive in Pune, India (March 2026), targeting compact cabinet footprint, scalable multi-axis motion, and built-in edge intelligence for predictive maintenance.
Implications for CP1584 machine remanufacturing:
- If you are extending the life of a CP1584-based machine by 7+ years, the D1 (and likely AR 6.x controllers) represents the forward-looking migration target
- The D1’s edge intelligence for predictive uptime aligns with modern IIoT strategies (see iiot-retrofit.md)
- Adaptive manufacturing principles (modular machine design, software-configurable production) may influence how you architect control systems during remanufacturing
- B&R’s India-first launch of the D1 signals growing investment in the India/Asia-Pacific market, which may improve spare parts availability and local support for B&R systems in those regions
Note: As of mid-2026, the ACOPOS D1 has not been fully specified publicly. When technical specifications become available, evaluate it as a potential replacement for aging ACOPOS 8V1 drives. See acopos-drives.md for the D1 section and the complete ACOPOS family reference.
Automation Studio 4 to Studio 6 Migration (AS4 → AS6)
As of 2024-2026, B&R has released Automation Studio 6 (AS6) as the successor to the long-standing AS 4.x line. This migration is increasingly relevant for engineers maintaining CP1584 machines because:
- EU Cyber Resilience Act (CRA) compliance — CRA requirements apply from December 2027 and mandate security-by-design for connected products. Machines placed on the EU market after this date must comply. AS6 incorporates IEC 62443-4-1 compliant security features that AS4 cannot provide.
- AS4 end-of-life timeline — While B&R has not announced a hard EOL for AS4, the CRA effectively forces migration for any machine that must remain in production or be sold in the EU after 2027.
- New CPU hardware requires AS6 — The X20CP1684 (successor to CP1584) requires Automation Studio 4.7 minimum or preferably AS 6.0+.
Key Differences Between AS4 and AS6
| Aspect | AS 4.12 | AS 6.x |
|---|---|---|
| Project format | .apj (AS4 binary) | .apj (AS6 format, different structure) |
| Runtime | AR 4.x (B04.xx) | AR 5.x/6.x (G05.xx / I06.xx) |
| IEC 61131-3 editor | Built-in (proprietary) | AS Code (VS Code-based, beta in 2025) |
| OPC UA stack | OPC UA 1.01/1.03 | OPC UA 1.04+, enhanced security profiles |
| mapp components | mapp 4.x | mapp 6.x (restructured hierarchy) |
| Security model | Basic user/password | IEC 62443-4-1 role-based access, certificate management |
| Compiler | AS4 native compiler | AS6 compiler with improved optimization and diagnostics |
| License model | Per-target licenses | Updated licensing with mapp technology licenses |
Community Migration Tools (Free)
The B&R Community maintains an open-source tool specifically for AS4→AS6 migration analysis:
as6-migration-tools — https://github.com/br-automation-community/as6-migration-tools
This tool scans AS 4.12 project files and generates a migration report identifying:
- Deprecated libraries and function blocks
- Unsupported hardware references
- OPC UA structural changes needed
- mappMotion API changes
- AsMath and AsString function replacements
- Missing mapp technology licenses
- Common migration pitfalls
Installation and usage:
## Option 1: Download Windows EXE from GitHub Releases
## https://github.com/br-automation-community/as6-migration-tools/releases/latest
## Unzip and run as6-migration-tools.exe
## Option 2: From source
git clone https://github.com/br-automation-community/as6-migration-tools.git
cd as6-migration-tools
pip install -r requirements.txt
python gui_launcher.py
## Or for CLI:
python as4_to_as6_analyzer.py "C:\Projects\MyAS4Project"
Helper scripts included:
| Script | Purpose |
|---|---|
helpers/asmath_to_asbrmath.py | Replaces deprecated AsMath functions with AsBrMath equivalents |
helpers/asstring_to_asbrstr.py | Replaces deprecated AsString functions with AsBrStr equivalents |
helpers/asopcua_update.py | Updates OPC UA client code for AR 6 compatibility |
helpers/mappmotion_update.py | Updates mappMotion code for mappMotion 6 API |
helpers/license_checker.py | Scans for required mapp technology licenses |
The tool is non-destructive by default — it analyzes and reports before making changes. Run the analyzer first, review the report, then apply helper scripts selectively.
Important limitations:
- The tool does NOT perform a fully automatic migration. It provides analysis and recommendations.
- Helper scripts make best-effort changes based on known patterns but do not cover all edge cases.
- Manual review and validation is always required after running any helper script.
- Requires Python 3.12 (tested).
Official B&R Migration Resources
B&R provides a free online course for the migration:
- ENG:
https://share.articulate.com/5PakLoeB_I2sjJxoopM5t(Migration to AS 6 – Step-by-Step Checklist) - GER:
https://share.articulate.com/4ma0vcvpVY_WxgVuoMDCu(Migration auf Automation Studio 6) - Requires one-time registration on B&R’s learning platform.
B&R also offers paid migration services:
- Dedicated engineering service — B&R engineers perform the full migration
- Migration consulting — B&R analyzes your project and provides an optimization strategy
AS4→AS6 Migration Procedure for CP1584 Machines
Prerequisites:
- Recovered AS4 project file (.apj + all source files) — see project-reconstruction.md
- Automation Studio 6 installed on a PC (available from B&R downloads with active service contract, or via B&R Value Provider)
- Access to the CP1584 target hardware for testing
Step-by-step migration:
-
Analyze the AS4 project with as6-migration-tools:
python as4_to_as6_analyzer.py "C:\Projects\Recovered_AS4_Project"Review the generated report. Address all CRITICAL and HIGH severity items.
-
Open the project in AS6. AS6 can open AS 4.12 projects with an automatic migration wizard. The wizard will:
- Convert project file format
- Update library references to newer versions
- Flag deprecated function blocks and renamed libraries
- Identify hardware that is no longer supported
-
Resolve deprecated libraries. Common replacements:
AS4 Library AS6 Equivalent Notes AsMathAsBrMathRun helper script asmath_to_asbrmath.pyAsStringAsBrStrRun helper script asstring_to_asbrstr.pymappMotion 4.xmappMotion 6Run helper script mappmotion_update.pyLegacy OPC UA components mappService OPC UA Restructured OPC UA configuration -
Update OPC UA configuration. AS6 uses a restructured OPC UA information model. Run
helpers/asopcua_update.pyand manually review the changes. Test with an OPC UA client (UaExpert, Prosys). -
Update hardware configuration. If migrating to a newer CPU (e.g., X20CP1684), update the hardware tree in AS6. See spare-parts.md Section 3.2 for CPU upgrade paths and firmware-version-mgmt.md for firmware compatibility.
-
Compile and resolve errors. The AS6 compiler provides improved diagnostics compared to AS4. Address all compilation errors and warnings.
-
Test on a bench. Before deploying to the production machine:
- Build the new target hardware (or use the existing CP1584 if hardware is unchanged)
- Download the AS6-compiled program
- Run IO point-by-point verification (see documentation-reconstruction.md Section 6.3)
- Verify all machine sequences and safety systems
-
Deploy during a planned shutdown. The production deployment follows the same procedure as any firmware upgrade. See firmware-version-mgmt.md for the production deployment checklist.
Estimated migration effort:
| Project Size | AS4 Project Lines | Estimated Effort | Notes |
|---|---|---|---|
| Small | < 5,000 | 2-5 days | Simple IO, no motion, no mapp |
| Medium | 5,000-20,000 | 1-2 weeks | Some mapp, basic motion |
| Large | 20,000-100,000 | 2-6 weeks | Complex mapp, motion, safety |
| Very Large | 100,000+ | 4-12 weeks | Full mapp suite, safety, multi-axis motion |
Critical gotchas:
- mapp components are restructured in AS6. mappService, mappMotion, mappView, and other mapp components have been reorganized with new hierarchies. This is the single largest manual effort in most migrations.
- Safety programs require special handling. SafeLOGIC programs must be migrated using SafeDESIGNER (AS6 version). Do not attempt to manually convert safety logic — use the official migration path.
- AR 6.x firmware requires the matching AS6 compiler. You cannot compile AR 6.x programs with AS 4.x, and vice versa.
- CF card format changes. AR 6.x may use a different CF card partition layout than AR 4.x. The CF card must be regenerated using AS6’s
Generate CF/SD Cardfunction. - OPC UA certificates must be regenerated. AS6 uses a different OPC UA certificate management system. Existing certificates from AS4 will not work.
- ANSL/PVI protocol changes. External PVI connections may need updated client libraries for AR 6.x compatibility. See pvi-api.md for PVI version requirements.
X20CP1684 — The CP1584 Successor
B&R has released the X20CP1684 as the direct successor to the CP1584. This is relevant when remanufacturing a CP1584 machine and deciding whether to upgrade the CPU.
| Parameter | X20CP1584 | X20CP1684 |
|---|---|---|
| Processor | Intel Atom E640T @ 600 MHz | Intel Atom (400 MHz, newer architecture) |
| RAM | 256 MB DDR2 | 512 MB LPDDR4 |
| Flash | CompactFlash (removable) | 1 GB internal flash |
| Ethernet | 10/100/1000 Mbps (1 port) | Gigabit Ethernet |
| Interface slots | 1 | 1 |
| Minimum AS | AS 3.0.90.20 | AS 4.7 (recommended: AS 6.0+) |
| Minimum AR | AR 4.x | AR 5.x+ |
| Fanless | Yes | Yes |
| CF card required | Yes | No (internal flash) |
Key differences for migration:
- The CP1684 uses internal flash instead of CompactFlash — no more CF card failures, but also no removable media for backup. Use FTP or Automation Studio transfer instead.
- The LPDDR4 memory is twice the capacity and significantly faster than DDR2.
- Automation Studio 6 is the recommended development environment for CP1684.
- X20 IO modules, bus modules, and interface modules are fully compatible between CP1584 and CP1684 (same X2X bus, same POWERLINK).
Migration path CP1584 → CP1684:
- Recover the AS4 project (see project-reconstruction.md)
- Migrate project to AS6 (see above procedure)
- Update hardware tree: replace X20CP1584 with X20CP1684
- Compile, test on bench, deploy during planned shutdown
- No IO module changes needed — all X20 modules are compatible
See cp1584-hardware-ref.md for the complete CP1584 hardware reference and spare-parts.md for ordering information.
12. Cross-References
| Document | Purpose |
|---|---|
| documentation-reconstruction.md | Procedures for documenting undocumented B&R systems |
| project-reconstruction.md | Reconstructing lost Automation Studio projects from PLC and CF card |
| program-reverse-engineering.md | Reverse-engineering B&R PLC programs from compiled binaries |
| spare-parts.md | Sourcing B&R spare parts from brokers, surplus, and used market |
| firmware-version-mgmt.md | Managing firmware versions for B&R CPUs and IO modules |
| cp1584-hardware-ref.md | Detailed hardware reference for X20CP1584 |
| safe-io-diagnostics.md | Diagnosing SafeLOGIC and safe IO module issues |
| config-file-formats.md | B&R configuration file formats and structures |
| cf-card-boot.md | CF card boot process, recovery, and cloning procedures |
13. Key Findings
-
B&R X20 is not obsolete. The X20 platform is actively sold and supported by B&R. In-family migration is always the lowest-risk path when the project file is available.
-
Recovery of the Automation Studio project file is the single most important prerequisite. Without it, migration effort multiplies 3-5x. Prioritize CF card backup and project file recovery before any other action. See project-reconstruction.md and cf-card-boot.md.
-
CP1584 is repairable for most common failure modes. CF card failure ($20-80), battery replacement ($5-15), and capacitor replacement ($10-50) address the majority of failures. Only CPU-level failures (processor, FPGA, DDR2) require replacement.
-
In-family CPU swap costs $3,000-$8,000 total. Cross-platform migration costs $25,000-$200,000+. The cost difference is almost always decisive for machines with remaining life under 7 years.
-
POWERLINK and FPGA-based X20 bus communication are not portable to other platforms. Any migration away from B&R requires complete IO replacement. This is the single largest cost driver in cross-platform migration ($5,000-$25,000 for IO alone).
-
Safety system migration is the most complex and risky aspect of any platform change. SafeLOGIC to a different safety platform requires full SIL recertification, complete logic rewrite, and 2-8 weeks of safety engineering. Budget $5,000-$25,000 for safety migration alone.
-
Pre-commissioning on a workbench reduces production downtime by 50-75%. Build the new system on a bench, test all logic and IO, and resolve software issues before the production shutdown.
-
IO mapping preservation is key for in-family swaps. By manually setting new IO addresses to match old addresses, the program requires zero modification for IO references. This reduces in-family swap downtime to 4-8 hours.
-
Secondary market CP1584 units are available ($400-$2,000) but carry risk. Match firmware versions. Test thoroughly before deploying as a spare. Budget for potential software incompatibilities.
-
Automation Studio 4.x can open AS 3.x projects with migration steps. The migration is mostly automatic but may flag deprecated function blocks and renamed libraries. Resolve all migration warnings before deploying.
-
CODESYS V3 is the most practical cross-platform target if leaving B&R is necessary, because it uses standard IEC 61131-3 and runs on hardware from multiple vendors. However, B&R-specific libraries and mapp components have no CODESYS equivalent and must be rewritten from scratch.
-
The “repair vs replace” decision is primarily a function of machine remaining life and failure type. Use the decision framework in Section 2. Repair for machines with less than 3 years of remaining life. Upgrade in-family for 3-7 years. Consider cross-platform migration only for 7+ years remaining life.
-
AS4→AS6 migration is necessary for CRA compliance. The EU Cyber Resilience Act requires connected products placed on the EU market after December 2027 to meet IEC 62443-4-1 security requirements. AS6 is B&R’s CRA-compliant platform. The community-maintained
as6-migration-tools(github.com/br-automation-community/as6-migration-tools) provides free automated analysis and helper scripts for the migration. -
X20CP1684 replaces CP1584 as the current-generation 1-slot X20 CPU. The CP1684 uses internal flash (no CF card), 512 MB LPDDR4 RAM, and requires AS 4.7+ (recommended AS 6.0+). All X20 IO modules and interface modules are fully compatible, making in-family CPU upgrade straightforward when the AS4 project is available.
-
New X20 generation (Apollo Lake I) with OPC UA over TSN is the future-proof path. B&R’s newest X20 controllers add OPC UA over TSN support and field-level master capability. Combined with AR 6.5’s hard real-time multicore task scheduling (assign task classes to specific CPU cores), these controllers deliver deterministic control and modern networking in the same compact form factor. The X20CP0484-1 (512 MB RAM, 2 GB flash) is the budget AR 6.x entry point. The X20CP3687X delivers PC-class performance in a compact X20 package.
-
AS 6.5 (December 2025) is the current latest release. Key features: ST-OOP (inheritance, polymorphism, abstract classes), ManagedCertificateStore extended to ANSL/FTP/HTTP/SMTP, FTP RBAC, SMB 1.0 permanently disabled, SNI support in AsHttp, certificate signing requests (CSR) via ArCert, self-signed certificate validation warnings, and TFTP disabled by default. AR 6.5 adds multicore hard real-time, FTP RBAC, and hypervisor repair boot. See firmware-version-mgmt.md §3.2 for the complete release history.
14. Sources
- B&R Industrial Automation. “X20 System Overview and Catalog.” br-automation.com. Active product line documentation.
- B&R Industrial Automation. “Automation Studio 4 Migration Guide.” Technical documentation for upgrading from AS 3.x to AS 4.x.
- B&R Industrial Automation. “X20CP1584 Technical Data Sheet.” Hardware reference.
- B&R Industrial Automation. “POWERLINK - Ethernet POWERLINK Standardisation Group (EPSG).” openPOWERLINK.org.
- B&R Industrial Automation. “SafeLOGIC Safety System Technical Manual.” SIL 2/3 safety controller documentation.
- CODESYS Group. “CODESYS V3.5 Programming Guide.” codesys.com.
- CODESYS Group. “CODESYS EtherCAT and POWERLINK Support Documentation.”
- Siemens AG. “SIMATIC S7-1500 System Manual.” Siemens documentation portal.
- Siemens AG. “TIA Portal Migration Guide.”
- Beckhoff Automation. “TwinCAT 3 System Documentation.” beckhoff.com.
- EPSG (Ethernet POWERLINK Standardisation Group). “POWERLINK Communication Profile Specification.” ethernet-powerlink.org.
- IEC 61131-3:2013. “Programmable Controllers - Part 3: Programming Languages.” International Electrotechnical Commission.
- IEC 61508. “Functional Safety of Electrical/Electronic/Programmable Electronic Safety-related Systems.” International Electrotechnical Commission.
- ISA-TR84.00.04. “Guidelines for the Implementation of ANSI/ISA-84.00.01-2004.”
- Pilz GmbH. “Safety Migration Planning Guidelines.” Industry technical paper.
- Various industrial automation broker and surplus listings (PLC Center, Radwell, surplus.net). Pricing data for spare parts and used equipment as of 2024-2025.
- Practical field experience with B&R X20CP1584 systems in manufacturing environments.
- Industry standard lifecycle management practices for industrial control systems (ISA-95, IEC 62443 for cybersecurity considerations during migration).
- B&R Community Forum. “AS4->AS6: Migration Made Simple: Tools, Community & Free Courses.”
https://community.br-automation.com/t/as4-as6-migration-made-simple-tools-community-free-courses/8553 - br-automation-community/as6-migration-tools. GitHub repository.
https://github.com/br-automation-community/as6-migration-tools - B&R Industrial Automation. “X20CP1684 Product Page.” br-automation.com.
https://www.br-automation.com/en-us/products/plc-systems/x20-system/x20-plc/x20cp1684/ - B&R Industrial Automation. “Automation Studio 6 Features.” B&R Community.
https://community.br-automation.com/t/b-r-automation-studio-6-features/2979 - B&R Community Forum. “Project Migration from Automation Studio 4.12 to 6.1.”
https://community.br-automation.com/t/project-migration-from-automation-studio-4-12-to-6-1/7309 - EU Cyber Resilience Act.
https://digital-strategy.ec.europa.eu/en/policies/cyber-resilience-act - B&R Industrial Automation. “TÜV Rheinland confirms B&R’s CRA Guide for POWERLINK.”
https://www.br-automation.com/en/about-us/press-room/tuev-rheinland-confirms-brs-cra-guide-for-powerlink-31-03-2026/ - B&R Community Forum. “Why on earth is B&R discontinuing software that works?”
https://community.br-automation.com/t/why-on-earth-is-b-r-discontinuing-software-that-works/11332