Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Open source scripts for analyzing and converting B&R AS4 projects to Automation Studio 6. Detects deprecated libraries, function blocks, unsupported hardware - includes helpers for migration.

License

Notifications You must be signed in to change notification settings

br-automation-community/as6-migration-tools

Repository files navigation

Visitors Downloads Made for B&R

Open-source tools that turn complex Automation Studio migrations into a single, actionable report.
Detecting deprecated libraries & functions, unsupported hardware, and more.

AS4 → AS6 analyzer running a project scan

Download EXE Report Issue


Features

  • Reduce manual grepping and trial-and-error when opening AS4 projects in AS6.
  • Catch breaking changes early: libraries, function blocks/functions, hardware, mapp, and common pitfalls.
  • Repeatable, deterministic scans you can run before every commit or release.
  • Non-destructive by default: analyze first; apply helper conversions when you’re ready.
  • Works fully offline; no telemetry; everything runs locally.
  • Fast feedback on large projects; verbose mode for deep dives.
  • One clean, shareable report per run (severity + path + hint).
  • Windows EXE for one-click usage; Python CLI for power users and CI.

Get started

  • Windows (recommended): Download latest release → Unzip → Run as6-migration-tools.exe
  • From source (devs): pip install -r requirements.txtpython gui_launcher.py or python as4_to_as6_analyzer.py "<path>"

💡 Tip: If you're using WSL, convert Windows paths like this:
C:\Projects\MyProject/mnt/c/Projects/MyProject


Windows Defender false positives

⚠️ Newly built .exe files may sometimes be flagged by Microsoft Defender (e.g. as Wacapew.A!ml).
This is a false positive caused by the way Python applications are bundled with PyInstaller.


Included Scripts

Script Purpose
gui_launcher.py GUI for running the scripts
as4_to_as6_analyzer.py Main analysis and migration report generator
helpers/asmath_to_asbrmath.py Replaces deprecated AsMath functions
helpers/asstring_to_asbrstr.py Replaces deprecated AsString functions
helpers/asopcua_update.py Updates OPC UA client code for AR 6 compatibility
helpers/mappmotion_update.py Updates mappMotion code for mappMotion 6 compatibility
helpers/license_checker.py Searching for needed mapp technology licenses

Additional helper scripts may be added in future versions - pull requests welcome.

Calling a helper script directly

Due to the structure of the project, calling python helpers/<anyscript>.py will result in an error. To prevent this, either use the GUI or change the call to python -m helpers.<anyscript> (omit the .py extension)


Requirements

  • Python 3.12 (tested)
  • Designed for Automation Studio 4.12 projects
  • Generates reports to assist in migration to Automation Studio 6.x

Limitations

  • This tool does not perform full automatic migration of projects.
  • It provides analysis and recommendations to assist developers during migration.
  • Helper scripts make best-effort changes based on known patterns, but may not cover all edge cases.
  • Manual review and validation is always required after running the tool.

Update Notifications

On startup the GUI automatically checks if a newer release is available on GitHub. If a newer version exists a popup appears with:

  • Link to the release (opens default browser)
  • Release notes (truncated)
  • Checkbox: "Ignore this version" – suppresses further notices for that exact tag/build.

The ignored version is stored locally inside a small JSON file and you will only be notified again once a higher version is published.


Contributing

  • Found an issue? Please open a GitHub issue.
  • Have ideas or improvements?
    Fork the repo and submit a pull request - contributions are very welcome!
    • Please run the black formatter prior to committing any changes to ensure a consistent style.
      Hint: PyCharm allows to do so automatically via Settings->Tools->Black

License

Unofficial project. Not affiliated with or endorsed by B&R Industrial Automation.
Provided as-is under the MIT License, without warranty.
“B&R” and “Automation Studio” are trademarks of their respective owners.

💪 Thanks a lot for spending your time helping. Keep rocking 🥂

About

Open source scripts for analyzing and converting B&R AS4 projects to Automation Studio 6. Detects deprecated libraries, function blocks, unsupported hardware - includes helpers for migration.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 11