Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>WinCC OA Script ActionsNew to Visual Studio Code? Get it now.
WinCC OA Script Actions

WinCC OA Script Actions

RichardJanisch

| (0) | Free
Execute WinCC OA CTRL scripts directly from VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WinCC OA Script Actions

Version License VS Code

Execute WinCC OA CTRL scripts directly from Visual Studio Code

⚠️ Pre-Release Version - Not all features have been fully tested yet


✨ Features

🚀 Quick Script Execution

Execute WinCC OA CTRL scripts with a single click:

  • Right-click on .ctl files in Explorer → "Start Script"
  • Context menu in editor for open .ctl files → "Start Script"
  • Direct execution via WCCOActrl.exe (Windows) or WCCOActrl (Linux)
  • Cross-platform support (Windows/Linux)

🚀 Getting Started

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "WinCC OA Script Actions"
  4. Click Install

Configuration

Configure the extension to locate your WinCC OA installation and project.


⚙️ Settings

Setting Default Description
winccoa.scriptActions.pathSource static How to determine paths: static (manual) or automatic (auto-detect, coming soon)
winccoa.scriptActions.installPath - Path to WinCC OA installation (e.g., C:/Siemens/Automation/WinCC_OA/3.20 or /opt/WinCC_OA/3.20)
winccoa.scriptActions.projectName - Your WinCC OA project name

📋 Usage

  1. Open a .ctl file in VS Code
  2. Right-click in the editor or on the file in Explorer
  3. Select "Start Script"
  4. The script will be executed via WCCOActrl

Command Format

The extension builds and executes this command:

# Windows
C:/Siemens/Automation/WinCC_OA/3.20/bin/WCCOActrl.exe <full-path-to-script.ctl> -proj <ProjectName>

# Linux
/opt/WinCC_OA/3.20/bin/WCCOActrl <full-path-to-script.ctl> -proj <ProjectName>

🛠️ Requirements

  • Visual Studio Code 1.105.0 or higher
  • WinCC OA installation with WCCOActrl executable
  • Valid WinCC OA project

⚠️ Known Limitations

  • Automatic path detection is not yet implemented
  • No output capture (script runs in background)
  • No parameter support (executes main() function)

📜 Disclaimer

WinCC OA and Siemens are trademarks of Siemens AG. This project is not affiliated with, endorsed by, or sponsored by Siemens AG. This is a community-driven open source project created to enhance the development experience for WinCC OA developers.


📄 License

This project is licensed under the MIT License.


🤝 Contributing

Contributions are welcome! Whether you want to:

  • Report bugs or issues
  • Suggest new features
  • Improve documentation
  • Submit code improvements

Please open an issue or submit a pull request on GitHub.


🔗 Links

  • GitHub Repository
  • Issue Tracker
  • WinCC OA Documentation

Made with ❤️ for the WinCC OA community

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft