B&R#AS6 released, and let’s use AS Code!

B&R released a new version of Automation Studio 6 this year, which includes the BETA version of AS Code, a VS Code-based editor! In this article, we will explain how easy it is to use AS Code.

I don’t have B&R hardware myself, so I am limited in what I can test, but I will do my best.

Come on, let’s enjoy FA.

Reference Link

http://soup01.com/en/category/br_en/

Foreword

Thank you from the bottom of my heart for visiting my technical blog and YouTube channel.

We are currently running the “Takahashi Chris” radio show with Full-san (full@桜 八重 (@fulhause) / X) which I deliver every Wednesday night.

Sharing, not hoarding, technical knowledge

We publish technical information related to factory production technology and control systems for free, through blogs and videos.

With the belief that “knowledge should be accessible to everyone,” we share practical know-how and real-world troubleshooting cases from our own field experience.

The reason we keep it all free is simple: to help reduce the number of people who struggle because they simply didn’t know.

If you’ve ever thought:

  • “Will this PLC and device combination actually work?”
  • “I’m having trouble with EtherCAT communication—can someone test it?”
  • “I want to try this remote I/O, but we don’t have the testing environment in-house…”

Feel free to reach out!If lending equipment or sharing your configuration is possible, we’re happy to verify it and share the results through articles and videos.

(We can keep company/product names anonymous if requested.)

How can you support us?

Currently, our activities are nearly all unpaid, but creating articles and videos takes time and a proper testing environment.If you’d like to support us in continuing and expanding this content, your kind help would mean a lot.

Membership (Support our radio show)

This support plan is designed to enhance radio with Mr Full.

https://note.com/fulhause/membership/join

Amazon Gift List (equipment & books for content production)

Lists equipment and books required for content creation.

https://www.amazon.co.jp/hz/wishlist/ls/H7W3RRD7C5QG?ref_=wl_share

Patreon (Support articles & video creation)

Your small monthly support will help to improve the environment for writing and verifying articles.

https://www.patreon.com/user?u=84249391

Paypal

A little help goes a long way.

https://paypal.me/soup01threes?country.x=JP&locale.x=ja_JP

Just trying to share things that could’ve helped someone—if only they’d known.

Your support helps make knowledge sharing more open and sustainable.

Thank you for being with us.

soup01threes*gmail.com

https://x.com/3threes2

Technical knowledge shouldn’t be kept to ourselves.

Automation Studio Code?

Automation Studio Code (AS Code) is a state-of-the-art development environment designed for seamless integration with Automation Studio 6 (AS 6) projects. It provides advanced coding capabilities, debugging support, AI assistance, and source control integration to enhance the automation engineering experience.

Download AS6

Download AS6 from the link below.

https://www.br-automation.com/en/downloads/software/automation-studio/automation-studio-6/automation-studio-v6/

License Request

Please refer to the following Link for evaluation license requests.

B&R#Your first Project in Automation Studio

install

Start the setup FILE that was downloaded from B&R’s website earlier and select the installation language.

Select Automation Studio6 and proceed with Install.

Proceed with Next>.

Agree to the license and proceed with Next>.

Set the AS6 installation location and proceed with Next>.

Start setup with Install.

Please wait a moment…

Done!

AS6 startup

Start AS6, which you have just installed.

Enter license

The license entry screen appears.

Enter the evaluation license you received from B&R.

Done!

New Projects

To create a new project, click File>New Project.

Enter the project and press Next> to proceed.

Choose Hardware Configuration From ”Define a new hardware configuration manually”and proceed with Next>.

Next, Catalog is displayed, from which Hardware is selected.

Since I don’t have a B&R Controller at my disposal, choose PC and use Finish to create a project.

sample program

Create a simple program from AS6; add an ST program from the Toolbox.

Define SINT type variables in Variables.

Create a simple addition program in Cyclic.st.

arSim startup

Next, launch the simulation by right-clicking on the following Icon from the Task bar>ToggleView.

The ARsim operation screen will appear.

Restart ARsim with the Restart button.

Done!

Open AS Code

Finally, we come to the main part of this article – AS Code. First, open the ST program we just added.

To the right of the ST program, click on the “Open AS Code” button.

Done!I opened the ST program from AS Code.

Download Program

To download the St program, open the following figure (1) and click on ICON (2) to download the program to arSim.

Connecting to the Runtime

From the drop-list, set the Runtime that AS Code wants to connect to. I don’t have hardware, so I set it to arSIM.

Select the Configuration to be activated.

Play button to start connection.

An orange BAR appears below the ASCode, indicating that it is connecting the AS Code to the Runtime.

Addition of monitoring variables

Click the + button from the WATCH list to add the variable you wish to monitor.

The Add Variable Popup will appear.

Add the iCounter variable that was just defined in the ST program.

Enable Break Point

Next, to add a Break Point to the ST program, right click on the program>Add Breakpoint.

A red circle is added to Line 4, which is the Break Point. In other words, Runtime program execution stops once at this red circle.

As shown in the figure below, when program execution reaches the Break Point, the program stops once.

The WATCH list also displays the current value of the iCounter.

Finally, click the button shown below to resume program execution.

The figure below shows that the current value of iCounter has changed.

Disable Break Point

To disable Break Points, right click on BREAKPOINTS>Disable All Breakpoints.

Then, disable the Break Point with the button shown below.

Done!

シェアする

  • このエントリーをはてなブックマークに追加

フォローする