Skip to content

ABB Robotics

On this page

AnyAutomation Studio works with the programs of ABB robots. Robot projects and controller backups in your workspace appear as a tree, RAPID modules open with syntax colouring, an outline and checks, and the AI writes and changes RAPID for you. Connect Studio to a virtual controller in RobotStudio or to a real IRC5 or OmniCore controller to see its state, check the program on a virtual controller, load and unload modules, set the program pointer, start and stop the program, back up the controller and restore it. Every change on a real controller asks for your confirmation first, and Stop always works at once.

Requirements

  • A Pro+ plan or higher. ABB Robotics is available on Pro+ and Enterprise and is unlocked in the free trial. On the free tier and the Basic and Pro plans, its side bar, its commands and its AI tools do not appear.
  • The ABB Robotics support component of Studio. It is off by default in the Studio setup. Select ABB Robotics support when you install Studio, or run the setup again and select it.
  • RobotStudio or the ABB Robot Communication Runtime, to connect to a controller. Install one of them on the computer with Studio. Robot projects and RAPID editing work without it.
  • A supported controller. IRC5 controllers with RobotWare 6 and OmniCore controllers with RobotWare 8, virtual or real. A virtual controller runs in RobotStudio on this computer, with its RobotWare installed through RobotStudio.
  • For a real controller: a network connection to it, the RobotWare option for PC connections (616-1 PC Interface on an IRC5, 3119-1 RobotStudio Connect on an OmniCore) and a controller user that is allowed to do the action, for example to load a program, to start it or to make a backup. Connect only to controllers you are allowed to work on.

Where ABB Robotics Appears

ABB Robotics has its own side bar, ABB Robotics, with a robot arm icon in the activity bar. It holds the Robot Project view with your robot projects, controller backups and robot controllers. You can also open it with View > Open View > ABB Robotics. Its commands are listed under ABB Robotics in the Command Palette (Ctrl+Shift+P). While a controller is connected, the status bar shows it on the left.

Robot Projects in the Workspace

The Robot Project view lists every robot project and controller backup of your workspace. For each one it shows the controller with its generation and RobotWare version, the tasks, for example T_ROB1, and below each task its modules. On an IRC5 with several tasks, the modules that all tasks share are under Shared. Home holds the files of the HOME folder and Configuration the configuration files, such as EIO.cfg. Expand a module to see its routines and data. A module that the backup names but that is not there carries the note Missing.

Click an entry to open it; a routine or a data declaration opens at its line. Type in the view to filter it. The right-click menu renames, deletes, cuts, copies and pastes modules and configuration files. When the module list of the backup names a module you rename, move or delete, Studio reminds you to update that list, because the controller loads the modules of this list when the backup is restored.

The title bar of the view has these buttons:

  • Open Robot Project... opens a robot project or controller backup from any folder. Choose the folder. If it is already in your workspace, Studio selects it in the view. If it is outside, choose Open Folder to replace the folders of the window with it, or Add to Workspace to keep them and show the new project next to them; with no folder open, it opens directly. If the folder is not a project itself but holds robot projects in its subfolders, Studio tells you how many and offers to open it anyway. If the view cannot show the project, for example because it lies inside another robot project or the search of the workspace leaves its folder out, a message tells you why. When the view finds no project, it offers Open Robot Project too.
  • New Robot Project... creates a new robot project. Choose the folder and click Create Here, then choose the controller generation, OmniCore or IRC5. Studio creates the project and opens its main module, for example MainModule. Existing files are never overwritten.
  • Compare Robot Backups... compares two robot projects or backups. Choose them from the list, or choose Browse... for a folder. The differences open side by side, file by file, and only real differences are shown: signatures, time stamps and line endings are left out.
  • Compare Robot Signals with TIA compares the I/O signals of the robot with the TIA project, see Comparing Robot Signals with TIA.
  • Refresh Robot Projects searches the workspace again.

Studio works with robot projects and controller backups, not with RobotStudio stations. If your workspace is a RobotStudio solution, the Robot Project view explains how to get a robot project; if you open one with Open Robot Project..., Studio shows the same hint as a message: start the virtual controller of the station in RobotStudio, find it with Find Robot Controllers and choose Upload as New Robot Project..., or open a backup of the controller.

Editing RAPID

Files with the extensions .mod, .modx, .sys and .sysx in the RAPID and HOME folders of a robot project open as RAPID: with syntax colouring, comments toggled with !, matching brackets, folding of modules, routines, records and blocks, and automatic indentation. The Outline view, the breadcrumbs and Go to Symbol in Editor list the module with its data, record types and routines. The configuration files of the controller, such as EIO.cfg and SYS.cfg, open with syntax colouring and an outline of their sections.

While you type, Studio checks the open module and lists its findings in the Problems view under RAPID, for example a block that is not closed, a missing semicolon, a name declared twice or a module name that differs from the file name. This check runs on your computer and needs no controller. To check a program as the controller does, see Checking the Program on a Virtual Controller.

A .mod or .sys module keeps the encoding it has, and it can only hold characters of Western European languages; a .modx or .sysx module is stored as UTF-8. To change the format of a module, right-click it in the Robot Project view or in the Explorer and choose Convert RAPID Module Format. The converted module opens unsaved under its new name; save it to write the file. The original stays as it is. Delete or rename the original before you load or check the module, because a task can hold a module only once. To replace the original in one step, choose Replace the Original in the message that appears after the conversion: Studio writes the converted file, removes the original and switches its open editors to the new file. If the module list of the backup names the module, Studio changes its entry to the new file name as well and says so before it replaces the file, so the tree shows no missing module; save the module list first if it has unsaved changes. If you have already saved the converted file, it only removes the original. If you saved the original again after the conversion, Studio replaces nothing; convert it again. Press Ctrl+Z in the Explorer to undo the replacement: Studio puts back the original and its entry in the module list, and where an editor of the converted file was open, it opens the original there again. Studio asks before it undoes the step, and Ctrl+Y in the Explorer does the replacement again.

Writing Programs with the AI

Ask the AI in the chat for the program you need, for example "Write a pick and place routine for T_ROB1 in MainModule that waits for the start signal". The AI hands the task to a dedicated RAPID specialist. It reads the robot project, writes and changes modules and configuration files, and checks its work.

A change of the AI appears in the editor as a comparison with Keep and Undo, as for any file. For RAPID modules and configuration files the file on disk changes exactly when you choose Keep: auto save never writes it before. Undo leaves the file as it was. Saving such a file with Ctrl+S keeps its change. A new module the AI proposes exists on disk only after Keep.

Checking the Program on a Virtual Controller

A virtual controller checks a RAPID program as the robot does. Studio uses a connected virtual controller of the same generation for it, never a real controller. The check loads the modules into the task for a moment and puts the task back as it was afterwards; it writes nothing into your files.

To check on demand, choose Check Program in the title bar of a RAPID editor, or right-click the controller, a task or a module of a robot project in the Robot Project view. If several virtual controllers are connected, choose one; Studio remembers it for the project. The findings appear in the Problems view under RAPID check (virtual controller), at the line and column the controller names. The controller reports only the first error per task, so check again after you fixed it. A task that is running is not checked. On an IRC5, Studio does not send a module with a syntax error to the controller: fix the findings under RAPID first. If two files of a task declare the same module, for example MainModule.mod and MainModule.modx, the task is not checked and Studio names both files. If every task of the check has such a pair, Studio tells you before it asks you to choose a controller.

When you choose Keep for a change of the AI to a RAPID module, Studio checks the kept modules of the project together on the virtual controller before it saves them. Without findings it saves them without a message. With findings the dialog Errors Found on the Virtual Controller lists them: Save Anyway writes the files, Don't Save keeps the change in the editor without writing it, so you can fix it first. Without a matching virtual controller, Studio saves the files and tells you that they were not checked and why; Don't Show Again turns that note off.

If a check was interrupted, for example because the connection broke, Studio tells you when you connect to that virtual controller again. Click Restore Now to put its tasks back, or Studio does it at the next check.

Connecting to a Robot Controller

  1. In the Robot Project view, click Find Robot Controllers, or right-click Robot Controllers. Studio finds the virtual controllers running on this computer and the controllers in the network. The node shows how many were found and how many are connected.
  2. Right-click a controller and choose Connect to Robot Controller.
  3. If the controller asks for a user, the sign-in dialog of the controller opens, with its name in the title. Enter the User name and the Password of a controller user and click Sign In. Tick Remember on this computer for my Windows user to sign in automatically next time. The password goes only to the controller and never to the AI.

To sign in with another user, choose Sign In to Robot Controller...; Forget Stored Controller Sign-In removes stored sign-ins. Disconnect from Robot Controller closes the connection.

Studio shows whether a controller is Virtual or Real. If it cannot tell, it shows Unknown, treated as real and handles the controller with the same care as a real one. If a real controller refuses the connection, check that it has the option for PC connections named under Requirements.

Controller State

A connected controller shows its generation, RobotWare version, kind, operating mode and whether Studio holds write access. Below it the tasks show their state, Running, Stopped, Ready or Not initialized, the position of the program pointer, for example MainModule/main, and not selected for a task that is not selected on the FlexPendant. Refresh Controller State reads the state again.

The status bar shows the connected controller with its kind and operating mode, for example Virtual, Auto, in a warning colour for a real controller. Hover over it for the state and the write access, click it for the actions of the controller. When the connection is lost, Studio tells you.

Show Live Robot Signals opens a read-only table of the I/O signals of the controller, with name, type, device, network, device map, category and value at the time of reading. Studio never writes signals.

Write Access

To change something on a controller, Studio needs write access to it. Studio requests it itself when an action needs it; you can also choose Request Write Access and give it back with Release Write Access. What you may have to do at the controller:

  • IRC5 in manual mode: confirm the request for write access on the FlexPendant.
  • Real OmniCore: enable External control for this computer on the FlexPendant. Studio never switches it on at a real controller.
  • Another client holds write access, for example RobotStudio or the FlexPendant: release it there and try again.

Studio never switches the operating mode or the motors of a controller.

Loading Modules onto the Controller

  1. Save the modules. Studio sends only saved files; a change of the AI that waits for Keep has to be kept or undone first.
  2. Right-click a robot project, a task or a module in the Robot Project view and choose Load to Robot Controller..., or choose it in the title bar of a RAPID editor. On a project or a task, all its modules are loaded.
  3. If several connected controllers fit, choose one.

Studio copies the module files into HOME/AnyAutomation on the controller, loads them into their task, replaces modules of the same name and sets the program pointer to main. The tasks have to be stopped. The result names the loaded modules, where the program pointer now stands, and for each module that was not loaded, the reason. A task without a routine main keeps its program pointer. On an IRC5, a module with a syntax error stops the whole load and nothing is sent. If two files of a task declare the same module, for example MainModule.mod and MainModule.modx after Convert RAPID Module Format, Studio sends nothing and names the module and both files; delete or rename one of them. Studio checks this before it asks you to choose a controller.

If the controller finds errors in a module while it loads it, it can load the module under a new name, for example MainModule#2. The result names the module with this reason, and a warning names the new name and offers Unload MainModule#2, or Unload Modules for several. The warning also appears when the AI loaded the module. The renamed module stays on the controller until you unload it: Studio unloads it only when you click the button, and on a real controller after the confirmation.

An OmniCore that stores modules in UTF-8 keeps a loaded .mod or .sys module as a .modx or .sysx file. After such a load, a message names these modules and offers Convert Module, or Convert Modules for several. After you confirm, Studio replaces each file in your project with the converted file in UTF-8, changes its entry in the module list of the backup and switches its open editors, so that your project matches the controller. Press Ctrl+Z in the Explorer to undo it: the originals and their entries in the module list come back, and the originals open again where editors of the converted files were open. Studio asks before it undoes the step, and Ctrl+Y in the Explorer converts the modules again.

Copy to Robot Controller HOME... copies the module files into HOME/AnyAutomation on the controller without loading them into a task.

To remove modules from a task, right-click the task of a connected controller and choose Unload Modules from Robot Controller..., then tick the modules. System modules and encoded modules are not offered. A module that the controller loaded under a new name, such as MainModule#2, is offered too. The module files in HOME stay on the controller.

Setting the Program Pointer

Right-click a task of a connected controller and choose Set Program Pointer to Main, or choose it on the controller to set it for all its normal tasks. Set Program Pointer to Routine... asks for the module and the name of the routine, for example main in MainModule. The result names each task with its new program pointer. A task without a routine main is named with this reason, and its program pointer stays where it was. If no task got a program pointer, the result begins with Program pointer not set.

Starting and Stopping the Program

Right-click the controller and choose Start Robot Program, or click the controller in the status bar and choose it there. Studio starts the normal tasks that are selected on the FlexPendant. The controller has to be in automatic mode with the motors on; Studio never switches the operating mode, the motors or the task selection. The robot moves as soon as the program starts: make sure that nobody is in its working range.

Stop Robot Program stops every program task of the controller at once, without asking. You find it at the top of the right-click menu of the controller, in the title bar of the view and as the red Stop button in the status bar while a task is running. On a task it stops only this task. Stop also works when your plan no longer includes ABB Robotics. If Studio cannot stop the program, it tells you so: stop it on the FlexPendant.

The Confirmation at a Real Controller

Before Studio loads, replaces or unloads modules, sets the program pointer, starts the program or restores a backup on a real controller, or on a controller it cannot identify, the dialog Confirm Robot Controller Action opens. It names the controller, says that it is a real controller, and lists the operating mode, the tasks, the modules and what else will happen. For a start it lists the motors, the tasks that start and the run mode and warns that the robot moves. Cancel is the default button, and Enter never confirms. You can still click Stop in Studio while the dialog is open. After Cancel nothing is changed on the controller. On a virtual controller, Studio does not show this dialog.

Before Studio first loads, unloads or restores on a real controller, it saves a backup of it in the BACKUP folder of the controller and on this computer; the confirmation says so. If the controller changes after you confirmed, nothing is changed and Studio asks you to try again.

Backups, Upload and Compare

  • Back Up Robot Controller on the controller, or in the actions of the status bar entry, saves a backup in the BACKUP folder of the controller and a copy on this computer.
  • Upload as New Robot Project... on the controller turns its program into a new robot project in your workspace. Enter the name of the project folder, with letters, digits, _ and -. The project holds the RAPID program, the HOME folder and the configuration of the controller. The folders Studio itself writes in HOME when it loads or checks a program are left out.
  • Compare with Robot Controller on a robot project compares it with the program and configuration of the connected controller. The differences open side by side, file by file, or a message says that both are the same. An OmniCore keeps a loaded .mod module as a .modx file. The comparison with an OmniCore treats the two files as one module, compares their content, shows such a module under the name of your file and tells you which modules the controller keeps under the other file type. The module list of the backup shows this difference too, because the controller lists the .modx file there; Convert Module after a load changes the entry in your project as well. The folders Studio itself writes in HOME are not compared.

Restoring from a Backup

  1. Right-click the controller or a robot project and choose Restore Robot Controller from Backup....
  2. Choose the backup: on the controller, on this computer or in the workspace.
  3. Choose what to restore: RAPID Program and Configuration, RAPID Program Only or Configuration Only.
  4. Confirm. All tasks have to be stopped.

The controller restarts to finish the restore, and the connection ends. Click Connect Again when the controller is back. Safety settings and user permissions are not restored.

Comparing Robot Signals with TIA

Compare Robot Signals with TIA compares the PROFINET I/O signals of a robot project with the PLC that controls the robot: with the TIA project attached in Studio, a TIA project opened offline, or the PLC tag tables of a TIA export folder. If the TIA project has several PLCs, choose the PLC; if a robot device fits several TIA devices, choose its TIA device. The result opens as a list with a line per signal: its type, device map, PLC address, TIA tag, tag address and data type, with a status such as Matches, Tag Missing, Type Differs or Overlap and a note on what to change. The header sums up the deviations. Change Source..., Choose TIA Devices... and Refresh repeat the comparison. The comparison changes nothing in TIA.

Working with the AI

Besides writing programs, you can ask the AI to:

  • Read and explain the modules, routines, data and signal references of a robot project or a backup, and its I/O configuration.
  • Compare two robot projects or backups, a project with the connected controller, or the robot signals with the TIA project.
  • Create a robot project, create a module or convert a module format. A new module is proposed in the editor and written with Keep.
  • Find robot controllers and read their state and live I/O signals.
  • Connect and disconnect, and request or release write access.
  • Check the program on a virtual controller, fix the first error and check again.
  • Load, copy to HOME or unload modules, set the program pointer and start the program.
  • Back up the controller, upload its program as a new project and restore a backup.
  • Stop the program.

The AI never asks you for a password: when a controller needs a sign-in, Studio asks you in its own dialog.

Confirmations for the AI

  • Reading, comparing and checking run without a prompt. A search for controllers at addresses outside this computer asks you every time.
  • Creating a robot project, connecting, disconnecting and write access ask for your confirmation in the chat, as set in Tool Approvals (see AI Chat).
  • On a virtual controller, loading, copying to HOME, unloading, setting the program pointer, starting, uploading, backing up and restoring follow the level you set in Tool Approvals, as any other tool.
  • On a real controller, or one Studio cannot identify, each of these actions shows a confirmation card in the chat on every call, whatever level you set and also with Allow all or Autopilot (Preview). Loading, unloading, setting the program pointer, starting and restoring then also open the dialog Confirm Robot Controller Action of Studio. If you cancel there, the chat shows Declined in the Studio confirmation dialog and nothing changes.
  • Always Deny refuses a tool without asking.
  • Stop always runs at once, without a confirmation, at every level. It has no row in Tool Approvals.

What Is Not Supported Yet

  • Watching the controller: the event log, RAPID variables and a watch of signal values. Show Live Robot Signals reads the signals once.
  • Writing signals or RAPID data on a controller, and moving the robot by hand.
  • Setting up the controller: the operating mode, the motors, the task selection on the FlexPendant and External control stay with you at the controller.
  • RobotStudio stations and simulation: creating virtual controllers, stations and simulations stays in RobotStudio.
  • Controllers before RobotWare 6.

Notes

  • Stop Robot Program is no safety function. The emergency stop and the safety of the cell stay with the safety system of the robot.
  • Check a program on a virtual controller before you load it onto a real one, and test it at reduced speed first.