RELEASE 2025: Automation Studio Code Watch Extension Overview

Introduction

  • Automation Studio Code - Beta version is a modern editor integrated with Automation Studio, designed for seamless compatibility with existing Automation Studio 6 projects. It enables users to perform editing, compilation, online connection, transfer, and debugging tasks without switching to the main Automation Studio application.

  • The AS Code beta version was first released alongside Automation Studio 6.3

AS Code - new Watch Extension

With the latest update of AS Code, a new key feature called the Watch extension has been introduced, allowing users to monitor variables from multiple scopes in a single window.

:clipboard: Technical Overview

  • Integration: The Watch extension is directly integrated into Automation Studio Code

  • Variable Monitoring: Developers can monitor variables from multiple scopes (global, structures, function blocks) in a single watch window. This eliminates the need to switch between Automation Studio and Automation Studio Code during development.

  • OPC UA-Based Communication: The extension uses OPC UA for secure communication with the target system. Authentication is supported via username/password or anonymous tokens, with credential storage handled by the IDE’s secret store infrastructure.

  • Live Values and Editing: The extension displays live variable values and, in development versions, supports writing to variables (enumerations, booleans, numbers, etc.).

  • Reordering and Persistence: Watched variables can be reordered via drag-and-drop, and the selection/order is persisted between sessions.

  • Performance: There is a current limit of 100 monitored variables to ensure optimal performance, including array elements.

  • Configuration Requirements: OPC UA client/server must be enabled, and exported data types set to “all” for full functionality, especially for enumerations.

Live Demo - Open Watch, establish connection using OPCUA and select PV for watch

:envelope_with_arrow: Q&A

Q: Do variables need to be enabled individually in the OPC UA server?
A: No, all variables are accessible if OPC UA is enabled and the user has the correct role.

Q: Can structure variables be monitored and reordered?
A: Yes, structure variables can be browsed and reordered in a flat list, allowing logical grouping.

Q: Are locally declared C variables watchable?
A: Only variables declared in variable files are watchable; local C variables are not visible at runtime.

:books: Related topics/additional info

:link: Innovation 2025 : AS6 with AS code beta was released

7 Likes

Note that it is currently required to have a BR_xxx system role, set as a role to the user, that connects to the OpcUa, to get read/write access!
Or at least that’s the only way I could get it to work.

System roles are the following:

2 Likes

Hi guys, I need some advice. How do I log out of watch window when I set it to remember my login and now it automatically logs me in? I want to log in as a different user.
And I still can’t get write permissions even though my user is BR_Engineer

@phaehnel can you help colleague?

Writing is not supported in the currently available 6.4.0 version of Automation Studio Code Beta.

You can get to the Release Notes from the “Help” section of the menu bar in AS Code.

3 Likes

Hi, maybe this information is helpful for you:

To remove stored credentials for the active target, use the command Watch: Delete Target Credentials. The next time you open the Watch Window, you’ll be asked to log in again. CTRL+SHIFT+P → Watch: Delete target credentials

3 Likes