3HAC066554 AM Controller Software OmniCore-En
3HAC066554 AM Controller Software OmniCore-En
Application manual
Controller software OmniCore
Trace back information:
Workspace Main version a678
Checked in 2025-06-12
Skribenta version 5.6.019
Application manual
Controller software OmniCore
RobotWare 7.19
Table of contents
Overview of this manual ................................................................................................................... 11
Open source and 3rd party components ......................................................................................... 15
1 Introduction to RobotWare 17
1.1 Products, classes, and options ............................................................................ 17
1.2 RAPID language and programming environment ..................................................... 19
3 Connectivity 115
3.1 Connected Services .......................................................................................... 115
3.1.1 Overview ............................................................................................... 115
3.1.2 Connected Services connectivity ................................................................ 117
3.1.3 Connected Services registration ................................................................ 119
3.1.4 Summary of Connected Services paths in FlexPendant .................................. 121
3.1.5 Summary of Connected Services paths in RobotStudio .................................. 122
3.1.6 Configuration of system parameters ........................................................... 123
3.1.7 Configuring Connected Services using FlexPendant ...................................... 125
[Link] Introduction ................................................................................ 125
[Link] Enable or disable Connected Services using FlexPendant .................. 126
[Link] Configure Connected Services based on connection type using
FlexPendant ............................................................................... 127
[Link] Configuration of public network using FlexPendant ............................ 130
[Link] Configure internet connection with proxy using FlexPendant ............... 131
3.1.8 Configuring Connected Services using RobotStudio ...................................... 132
[Link] Introduction ................................................................................ 132
[Link] Enable or disable Connected Services using RobotStudio ................... 133
[Link] Configure connected services based on connection type using
RobotStudio ............................................................................... 134
[Link] Configuration of public network using RobotStudio ............................ 137
[Link] Configure internet connection with proxy using RobotStudio ............... 138
3.1.9 Connected Services information ................................................................ 139
3.1.10 Troubleshooting ...................................................................................... 149
[Link] Server connectivity troubleshooting ................................................ 149
[Link] 3G Connectivity troubleshooting ..................................................... 150
[Link] 4G Connectivity troubleshooting ..................................................... 151
[Link] How to get Connected Services Embedded logs from the controller ...... 152
[Link] Connected Services Embedded troubleshooting logs ......................... 153
3.1.11 Network topology scenarios ...................................................................... 155
Index 321
Usage
This manual can be used either as a reference to find out if an option is the right
choice for solving a problem, or as a description of how to use an option. Detailed
information regarding syntax for RAPID routines, and similar, is not described here,
but can be found in the respective reference manual.
Prerequisites
The reader should...
• be familiar with industrial robots and their terminology.
• be familiar with the RAPID programming language.
• be familiar with system parameters and how to configure them.
References
Tip
Reference Document ID
Product specification - OmniCore C line 3HAC065034-001
Product specification - OmniCore E line 3HAC079823-001
Product specification - OmniCore V line 3HAC074671-001
Operating manual - RobotStudio 3HAC032104-001
Operating manual - OmniCore 3HAC065036-001
Operating manual - Integrator's guide OmniCore 3HAC065037-001
Technical reference manual - RAPID Instructions, Functions and 3HAC065038-001
Data types
Technical reference manual - RAPID Overview 3HAC065040-001
Technical reference manual - System parameters 3HAC065041-001
Application manual - Additional axes 3HAC082287-001
Application manual - MultiMove 3HAC089689-001
Product manual - OmniCore C30 Type A 3HAC089064-001
Product manual - OmniCore C30 3HAC060860-001
Product manual - OmniCore C90XT 3HAC073706-001
Reference Document ID
Product manual - OmniCore E10 3HAC079399-001
Product manual - OmniCore V250XT Type B 3HAC087112-001
Product manual - OmniCore V400XT 3HAC081697-001
Revisions
Revision Description
A Released with RobotWare 7.0.
B Released with RobotWare 7.01.
The following updates are made in this revision:
• "Cyber security" replaced by "Cybersecurity" in entire manual.
• Updated the section Connected Services on page 115.
C Released with RobotWare 7.0.2.
The following updates are made in this revision:
• FlexPendant terminology updated in entire manual.
• Updated the section Summary of Connected Services paths in Flex-
Pendant on page 121.
D Released with RobotWare 7.1.
The following updates are made in this revision:
• Updated the section Connected Services on page 115.
• Added information about YuMi robots and Collision Detection, see
Collision detection for YuMi robots on page 221.
• Updated limitations for SFTP client, see Limitations on page 298.
E Released with RobotWare 7.2.
The following updates are made in this revision:
• Updated the section Connected Services on page 115.
• Information about the digital output MotSupOn updated in section
Signals on page 230.
• Section System parameters on page 66 updated with information about
how to adjust the values of the attributes RMQ Max Message Size and
RMQ Max No Of Messages.
• Updated sections due to remote mounted disk/virtual root changes:
Limitations on page 298 (FTP&SFTP client) and Limitations on page 299
(NFS Client).
F Released with RobotWare 7.3.
The following updates are made in this revision:
• Updated the section Connected Services on page 115.
G Released with RobotWare 7.4.
The following updates are made in this revision:
• Added the section Connected Services Embedded troubleshooting
logs on page 153.
• Updated the section Connected Services on page 115.
• Updated information regarding UTF-8, in Raw data communication on
page 41.
H Released with RobotWare 7.5.
• Updated limitation for Collision Avoidance [3150-1] on page 235.
Revision Description
J Released with RobotWare 7.6.
• Added the section Auto Acknowledge Input on page 311.
• Updated limitation regarding lead-through, see Overview of World
Zones on page 215.
• Added the section SafeMove Assistant on page 238.
K Released with RobotWare 7.10.
• Added the option Servo Tool Change [3110-1] on page 313.
• Minor corrections.
• Removed statement that the instructions StorePath and RestorePath
are included in RobotWare base. They require option Path Recovery.
• Added information about deactivation/deactivation and trigger signals,
see Collision Avoidance [3150-1] on page 235.
• Minor corrections in Network topology scenarios on page 155.
• Minor corrections in Auto Acknowledge Input on page 311.
L Released with RobotWare 7.12.
• Updated the section Connected Services information on page 139.
• The function Collision Avoidance is now available for delta robots,
seeLimitations on page 236.
M Released with RobotWare 7.13.
• ABB Connected Services is the new name for ABB Ability Connected
Services.
• Added section Electronically Linked Motors on page 96.
• Updated the section Connected Services on page 115.
N Released with RobotWare 7.14.
• Added section Tool Control [3109-1] on page 247.
P Released with RobotWare 7.15.
• Updated the server error details in the section Advanced page on
page 143.
• Updated the section Limitations on page 298 for FTP&SFTP Client.
Q Released with RobotWare 7.16.
• Added information about singularities and Absolute Accuracy in Robot-
Studio.
• Added information about user configuration files for Collision Avoid-
ance.
• Added limitation in Independent Axis regarding tool control.
R Released with RobotWare 7.17.
• Added section Ultra Accuracy [3101-10] on page 185.
• Added section RAPID language and programming environment on
page 19.
• Minor corrections.
• Added note in section FTP&SFTP client [3116-1] on page 297
• Added note in section on page 299
Revision Description
S Released with RobotWare 7.18.
• List of event logs added to section Introduction to User logs on page 79.
• Restructured the chapter RobotWare-OS. The following functionality
is removed from this manual because it is described in more detail in
TRM - RAPID Overview.
- Bit functionality
- Data search functionality
- Configuration functionality
- Process support functionality
- User message functionality
- RAPID support functionality
• Updated section RAPID language and programming environment on
page 19.
• Minor improvements.
T Released with RobotWare 7.19.
• Information about NFS versions updated in Introduction to NFS Client
on page 299.
• Added example with TRAP routine, see Path recorder on page 271.
• Section System parameters on page 66 updated with allowed values
for RMQ Max Message Size.
• Information related to the option WiFi [3013-2] is removed.
• Updated the section SafeMove Assistant on page 238.
RobotWare
For RobotWare, there is license information in the folder \licenses in the RobotWare
distribution package.
OpenSSL
This product includes software developed by the OpenSSL Project for use in the
OpenSSL Toolkit. ([Link]
This product includes cryptographic software written by Eric Young
(eay@[Link]).
This product includes software written by Tim Hudson (tjh@[Link]).
CTM
For OleOS, the Linux based operating system used on the conveyor tracking
module (CTM), a list of copyright statements and licenses is available in the file
/etc/[Link] located on the CTM board and accessible via the console port or
by downloading the file over SFTP.
For the CTM application, a list of copyright statements and licenses is available in
the file /opt/[Link]/ctm/[Link] located on the CTM board and accessible
via the console port or by downloading the file over SFTP.
1 Introduction to RobotWare
1.1 Products, classes, and options
Software products
RobotWare is a family of software products from ABB Robotics. The products are
designed to make you more productive and lower your cost of owning and operating
a robot. ABB Robotics has invested many years into the development of these
products and they represent knowledge and experience based on several thousands
of robot installations.
Product classes
Within the RobotWare family, there are different classes of products:
Product classes Description
RobotWare-OS This is the operating system of the robot. RobotWare-OS provides
all the necessary features for fundamental robot programming and
operation. It is an inherent part of the robot, but can be provided
separately for upgrading purposes.
For a description of RobotWare-OS, see the product specification
for the robot controller.
RobotWare options These products are options that run on top of RobotWare-OS. They
are intended for robot users that need additional functionality for
motion control, communication, system engineering, or applications.
Note
Not all RobotWare options are described in this manual. Some op-
tions are more comprehensive and are therefore described in sep-
arate manuals.
Process application These are extensive packages for specific process application like
options spot welding, arc welding, and dispensing. They are primarily de-
signed to improve the process result and to simplify installation and
programming of the application.
The process application options are all described in separate
manuals.
RobotWare Add-ins A RobotWare Add-in is a self-contained package that extends the
functionality of the robot system.
Some software products from ABB Robotics are delivered as Add-
ins. For example track motion (IRT), positioner (IRP), and standalone
controller. For more information see the product specification for
the robot controller.
The purpose of RobotWare Add-ins is also that a robot program
developer outside of ABB can create options for the ABB robots,
and sell the options to their customers. For more information on
creating RobotWare Add-ins, contact your local ABB Robotics rep-
resentative at [Link]/contacts.
Option groups
For OmniCore, the RobotWare options have been gathered in groups, depending
on the customer benefit. The goal is to make it easier to understand the customer
value of the options. However, all options are purchased individually. The groups
are as follows:
Option groups Description
Motion performance Options that optimize the performance of your robot.
Motion coordination Options that make your robot coordinated with external equipment
or other robots.
Motion Events Options that supervises the position of the robot.
Motion functions Options that control the path of the robot.
Motion Supervision Options that supervises the movement of the robot.
Communication Options that make the robot communicate with other equipment.
(External PCs etc.)
Engineering tools Options for the advanced robot integrator.
Servo motor control Options that make the robot controller operate external motors, in-
dependent of the robot.
Note
Not all RobotWare options are described in this manual. Some options are more
comprehensive and are therefore described in separate manuals.
General
RAPID is the primary programming language used for ABB Robotics, designed to
facilitate the control and automation of industrial robots. It is a high-level language
that is both powerful and user-friendly, making it accessible for both novice and
experienced programmers. Its syntax and structure are designed to be intuitive,
reducing the learning curve for new users.
RAPID is suitable for a wide range of applications, from simple pick-and-place
tasks to complex assembly operations. The language is designed to be reliable
and robust, ensuring consistent performance in industrial environments.
Ease of use
Creating and editing RAPID programs is done using the integrated code editors
in RobotStudio or on the FlexPendant. Additionally, there is an app for the
FlexPendant called Wizard, where RAPID programming is further simplified to
block programming.
RAPID programs can range from simple movement procedures to complex
structures including sending and receiving data from sensors, cameras, I/O devices,
other machines, and more. This to enable a highly flexible automation, utilizing the
robot's capability.
PROC main()
length := 10;
width := 5;
area := length * width;
TPWrite "The area of the rectangle is " \Num:=area;
ENDPROC
ENDMODULE
This program will calculate the area of a rectangle and show the answer on the
FlexPendant.
The area of the rectangle is 50
Draw a square
The robot is holding a pen above a piece of paper on a table. This program will
make the robot move the tip of the pen down to the paper and then draw a square.
xx0700000362
PROC main()
MoveL p10, v200, fine, tPen;
MoveL p20, v200, fine, tPen;
MoveL p30, v200, fine, tPen;
MoveL p40, v200, fine, tPen;
MoveL p10, v200, fine, tPen;
ENDPROC
Draw an arc
To add a curve or arc to the previous program, the instruction MoveC is added.
MoveL p10, v500, fine, tPen;
MoveC p20, p30, v500, fine, tPen;
MoveL p40, v500, fine, tPen;
xx0700000364
References
The RAPID programming language is described in detail in the following documents.
What do you want to know Where to read about it
• More detailed information about the functionality Technical reference manual - RAP-
• What instructions are there for a specific cat- ID Overview
egory, for example, move instructions
• Descriptions of specific functionality, for example,
interrupts or error handling
• Information about a specific instruction, function, Technical reference manual - RAP-
or data type ID Instructions, Functions and
Data types
• Details about how the robot controller handles Technical reference manual - RAP-
different parts of RAPID ID kernel
Introduction
Point-to-point (PTP) motion programming involves moving the robot from one
specific pose to another. Each pose represents a precise position and orientation
in space. This method ensures high accuracy, and the detail level can be flexible
to adapt to the specific application.
The RAPID programming language offers both simple movement instructions and
combinations with setting I/O signals or triggering events. Many of the software
options include instructions, functions, and data types that simplify specific parts
of the programming.
Motion settings
Motion settings involve configuring parameters that define how the robot moves.
These settings include:
• Speed: Determines the velocity at which the robot's joints or end effector
move. It can be set globally or for specific motion instructions.
• Acceleration and Deceleration: Controls the rate at which the robot speeds
up or slows down. Proper settings ensure smooth transitions and prevent
mechanical stress.
• Zone Data: Defines the precision of the robot's path. Smaller zones result in
more accurate movements but may reduce speed, while larger zones allow
faster movements with less precision.
• Tool and Work Object Data: Specifies the dimensions and properties of the
tool attached to the robot and the work object being manipulated. Accurate
data ensures correct positioning and movement.
Motion programming
Key aspects for motion programming include:
• Move instructions: Commands that direct the robot to move to specific
positions. Common instructions include:
- MoveJ: Joint movement to a target position.
- MoveL: Linear movement to a target position.
- MoveC: Circular movement through intermediate points.
• Path and Positioning: Defining the robot's path involves specifying
coordinates and orientations. Positions can be absolute or relative to a
reference frame.
• Synchronization: Ensures coordinated movements between multiple robots
or external devices. Synchronization can be achieved using signals or shared
data.
• Error Handling: Implementing routines to manage and respond to errors
during motion execution. This includes retry mechanisms and safe stops.
Related information
Options Described in
Motion Technical reference manual - RAPID Over-
view
All RAPID instructions, functions, and data Technical reference manual - RAPID Instruc-
types tions, Functions and Data types
Introduction
ABB robots can utilize both analog and digital I/O signals to interact with external
devices and systems.
The digital input (DI) signals receive binary data (0 or 1) from external sensors or
switches, indicating states such as on/off or open/closed. The digital output (DO)
signals send binary data to control external devices like relays, lights, or actuators.
The analog input (AI) signals receive continuous data from external sensors,
representing variables such as temperature, pressure, or position. The analog
output (AO) signals send continuous data to control external devices, allowing for
precise adjustments in operations like motor speed or valve position.
The I/O signals are mapped and configured using RobotStudio or directly on the
teach pendant. Each signal can be named and grouped for easier management.
Proper configuration ensures seamless integration with external systems, enabling
efficient communication and control.
Network protocols
A variety of network protocols can be used for I/O communication, ensuring
seamless integration with external systems. For example, PROFINET, EtherNet/IP,
DeviceNet, CC-link.
Safe communication is also possible, using PROFIsafe or CIP safety.
The specific network protocol options are described in their respective application
manual.
Related information
Options Described in
I/O principles Technical reference manual - RAPID Overview, section I/O principles
Introduction
The RAPID programming language facilitates user interaction through instructions
and functions that allow the robot to communicate with the operator, gather input,
and display information. This can also include updating data or selecting alternatives
adapted to the final application.
Examples of user interaction instructions and functions:
• UIMsgBox - Write message to FlexPendant
• UIDnumEntry/UINumEntry - Read a numeric value from the FlexPendant
• UIListView - Select item in a list from the FlexPendant
Related information
Options Described in
I/O principles Technical reference manual - RAPID Over-
view, section Communication
Introduction
RobotWare includes robust file handling capabilities that allow users to manage
and manipulate files efficiently. Key functionalities include:
• File transfer: Users can transfer files between the robot controller and external
devices such as PCs or network storage. This is essential for backing up
programs, updating software, and sharing data.
• File operations: RobotWare supports various file operations, including
creating, reading, writing, and deleting files. These operations can be
performed using RAPID commands, enabling automated file management
within robot programs.
• Data logging: Users can log data to files for monitoring and analysis purposes.
This includes recording operational parameters, error logs, and performance
metrics.
• Configuration files: RobotWare allows users to manage configuration files
that define system settings, I/O mappings, and other critical parameters.
These files ensure consistent and reliable robot operation.
• Integration with external systems: File handling in RobotWare facilitates
integration with external systems, enabling seamless communication and
data exchange. This is crucial for complex automation setups where multiple
devices need to interact.
Related information
Options Described in
File handling Technical reference manual - RAPID Over-
view, section File operation functions
File and I/O device handling File and I/O device handling on page 36
Purpose
The purpose of cyclically evaluated logical conditions, Cyclic bool, is to allow a
RAPID programmer to connect a logical condition to a persistent boolean variable.
The logical condition will be evaluated every 12 ms and the result will be written
to the connected variable.
What is included
The RobotWare base functionality Cyclic bool includes:
• instructions for setting up Cyclic bool: SetupCyclicBool,
RemoveCyclicBool, RemoveAllCyclicBool
• functions for retrieving the status of Cyclic bool:
GetMaxNumberOfCyclicBool, GetNextCyclicBool,
GetNumberOfCyclicBool.
Basic approach
This is the general approach for using Cyclic bool. For more detailed examples of
how this is done, see Cyclic bool examples on page 31.
1 Declare a persistent boolean variable, for example:
PERS bool cyclicbool1;
2 Connect a logical condition to the variable, for example:
SetupCyclicBool cyclicbool1, doSafetyIsOk = 1;
3 Use the variable when programming, for example:
WHILE cyclicbool1 = 1 DO
! Do what’s only allowed when all safety is ok
...
ENDWHILE
4 Remove connection when no longer useful, for example:
RemoveCyclicBool cyclicbool1;
Configuration
The following behavior of the Cyclic bool functionality can be configured:
Parameter Description
RemoveAtPpToMain It is possible to configure if the cyclically evaluated logical conditions
shall be removed or not when setting the program pointer to main.
• On - remove.
• Off - do not remove (default behavior).
ErrorMode It is possible to configure which error mode to use when the evalu-
ation of a Cyclic bool fails.
• SysStopError i - stop RAPID execution and produce an error
log (default behavior).
• Warning - produce a warning log.
• None - do nothing.
RecoveryMode It is possible to configure if a failing Cyclic bool shall be recovered
or not.
• On - try to recover the evaluation of a failing Cyclic bool (de-
fault behavior).
• Off - do not try to recover the evaluation of a Cyclic bool.
i Error mode SysStopError can only be combined with RecoveryMode - "On".
For more information, see System parameters on page 34.
Syntax
SetupCyclicBool Flag Cond [\Signal]
Flag shall be of:
• Data type: bool
- Object type: PERS or TASK PERS
Cond shall be a bool expression that may consist of:
• Data types: num, dnum and bool
- Object type: PERS, TASK PERS, or CONST
• Data types: signaldi, signaldo or physical di and do
- Object type: VAR
• Operands: 'NOT', 'AND', 'OR', 'XOR', '=', '(', ')'
\Signal shall be of:
• Object type: signaldo
RemoveCyclicBool Flag
Flag shall be of:
• Data type: bool
- Object type: PERS or TASK PERS
Limitations
• Records and arrays are not allowed in the logical condition.
• A maximum of 60 conditions can be connected at the same time.
• Any PERS num or dnum, CONST num or dnum or literal num or dnum used in a
condition must be of integer type. If using any decimal value this will cause
a fatal error.
PROC main()
SetupCyclicBool cyclicbool1, di1=1 AND do2=1;
WaitUntil cyclicbool1=TRUE;
! All is ok
...
! Remove connection when no longer in use
RemoveCyclicBool cyclicbool1;
ENDPROC
PROC main()
SetupCyclicBool cyclicbool1, flag1=TRUE AND flag2=TRUE;
WaitUntil cyclicbool1=TRUE;
! All is ok
...
! Remove connection when no longer in use
RemoveCyclicBool cyclicbool1;
ENDPROC
PROC main()
SetupCyclicBool cyclicbool1, num1=7 OR dnum1=10000000;
SetupCyclicBool cyclicbool2, num1=8 OR dnum1=11000000;
WaitUntil cyclicbool1=TRUE;
...
WaitUntil cyclicbool2=TRUE;
...
! Remove all connections when no longer in use
RemoveAllCyclicBool;
ENDPROC
PROC main()
SetupCyclicBool cyclicbool1, flag1=TRUE AND (num1=7 OR
dnum1=10000000);
WaitUntil cyclicbool1=TRUE;
! All is ok
...
! Remove connection when no longer in use
RemoveCyclicBool cyclicbool1;
ENDPROC
PROC main()
SetupCyclicBool cyclicbool1, flag1=MYTRUE AND num1=NUMLIMIT AND
dnum1=DNUMLIMIT;
WaitUntil cyclicbool1=TRUE;
! All is ok
...
! Remove connection when no longer in use
RemoveCyclicBool cyclicbool1;
ENDPROC
PROC main()
! The Expression (di_1 = 1) OR Flag2 = TRUE shall be
! used by SetupCyclicBool
my_routine (di_1 = 1) OR Flag2 = TRUE;
ENDPROC
PROC my_routine(bool X)
! It is possible to pass arguments between several procedures
MySetCyclicBool X;
ENDPROC
Instructions
Instruction Description
SetupCyclicBool SetupCyclicBool connects a logical condition to a boolean
variable.
RemoveCyclicBool RemoveCyclicBool removes a specific connected logical con-
dition.
RemoveAllCyclicBool RemoveAllCyclicBool removes all connected logical condi-
tions.
Functions
Function Description
GetMaxNumberOfCyclicBool GetMaxNumberOfCyclicBool retrieves the maximum
number of cyclically evaluated logical condition that can
be connected at the same time.
GetNextCyclicBool GetNextCyclicBool retrieves the name of a connected
cyclically evaluated logical condition.
GetNumberOfCyclicBool GetNumberOfCyclicBool retrieves the number of a
connected cyclically evaluated logical condition.
IsCyclicBool IsCyclicBool is used to test if a persistent boolean is
a Cyclic bool or not, i.e. if a logical condition has been
connected to the persistent boolean variable with the
instruction SetupCyclicBool.
Data types
Cyclic bool includes no data types.
[Link] Overview
Purpose
The purpose of binary and character based communication is to:
• store information in a remote memory or on a remote disk
• let the robot communicate with other devices
What is included
To handle binary and character based communication, RobotWare gives you access
to:
• instructions for manipulations of a file or I/O device
• instructions for writing to file or I/O device
• instruction for reading from file or I/O device
• functions for reading from file or I/O device.
Basic approach
This is the general approach for using binary and character based communication.
For a more detailed example of how this is done, see Code examples on page 39.
1 Open a file or I/O device.
2 Read or write to the file or I/O device.
3 Close the file or I/O device.
Limitations
Access to files and I/O devices cannot be performed from different RAPID tasks
simultaneously. Such an access is performed by all instruction in binary and
character based communication, as well as WriteRawBytes and ReadRawBytes.
E.g. if a ReadBin instruction is executed in one task, it must be ready before a
WriteRawBytes can execute in another task.
Data types
This is a brief description of each data type used for binary and character based
communication. For more information, see the respective data type in Technical
reference manual - RAPID Instructions, Functions and Data types.
Data type Description
iodev iodev contains a reference to a file or I/O device. It can be linked to the
physical unit with the instruction Open and then used for reading and
writing.
Instructions
This is a brief description of each instruction used for binary and character based
communication. For more information, see the respective instruction in Technical
reference manual - RAPID Instructions, Functions and Data types.
Instruction Description
Open Open is used to open a file or I/O device for reading or writing.
Close Close is used to close a file or I/O device.
Rewind Rewind sets the file position to the beginning of the file.
Write Write is used to write to a character based file or I/O device.
WriteBin WriteBin is used to write a number of bytes to a binary I/O device or
file.
WriteStrBin WriteStrBin is used to write a string to a binary I/O device or file.
WriteAnyBin WriteAnyBin is used to write any type of data to a binary I/O device or
file.
ReadAnyBin ReadAnyBin is used to read any type of data from a binary I/O device
or file.
Functions
This is a brief description of each function used for binary and character based
communication. For more information, see the respective instruction in Technical
reference manual - RAPID Instructions, Functions and Data types.
Function Description
ReadNum ReadNum is used to read a number from a character based file or I/O device.
ReadStr ReadStr is used to read a string from a character based file or I/O device.
ReadBin ReadBin is used to read a byte (8 bits) from a file or I/O device. This function
works on both binary and character based files or I/O devices.
ReadStrBin ReadStrBin is used to read a string from a binary I/O device or file.
PROC read_from_file()
VAR iodev file;
VAR num number;
VAR string text;
[Link] Overview
Purpose
The purpose of raw data communication is to pack different type of data into a
container and send it to a file or I/O device, and to read and unpack data. This is
particularly useful when communicating via a fieldbus, such as DeviceNet.
What is included
To handle raw data communication, RobotWare gives you access to:
• instructions used for handling the contents of a rawbytes variable
• instructions for reading and writing raw data
• a function to get the valid data length of a rawbytes variable.
Basic approach
This is the general approach for raw data communication. For a more detailed
example of how this is done, see Write and read rawbytes on page 43.
1 Pack data into a rawbytes variable (data of type num, byte or string).
2 Write the rawbytes variable to a file or I/O device.
3 Read a rawbytes variable from a file or I/O device.
4 Unpack the rawbytes variable to num, byte or string.
Limitations
Device command communication also require the base functionality Device
Command Interface and the option for the industrial network in question.
Access to files and I/O devices cannot be performed from different RAPID tasks
simultaneously. Such an access is performed by all instruction in binary and
character based communication, as well as WriteRawBytes and ReadRawBytes.
For example, if a ReadBin instruction is executed in one task, then it must be ready
before a WriteRawBytes instruction can execute in another task.
Data types
This is a brief description of each data type used for raw data communication. For
more information, see the respective data type in Technical reference
manual - RAPID Instructions, Functions and Data types.
Data type Description
rawbytes rawbytes is used as a general data container. It can be filled with any
data of types num, byte, or string. It also stores the length of the
valid data (in bytes).
rawbytes can contain up to 1024 bytes of data. The supported data
formats are listed in the instruction PackRawBytes, in Technical refer-
ence manual - RAPID Instructions, Functions and Data types.
Instructions
This is a brief description of each instruction used for raw data communication.
For more information, see the respective instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Instruction Description
ClearRawBytes ClearRawBytes is used to set all the contents of a rawbytes variable
to 0. The length of the valid data in the rawbytes variable is set to 0.
ClearRawBytes can also be used to clear only the last part of a
rawbytes variable.
PackRawBytes PackRawBytes is used to pack the contents of variables of type num,
byte or string into a variable of type rawbytes.
UnpackRawBytes UnpackRawBytes is used to unpack the contents of a variable of type
rawbytes to variables of type byte, num or string.
CopyRawBytes CopyRawBytes is used to copy all or part of the contents from one
rawbytes variable to another.
WriteRawBytes WriteRawBytes is used to write data of type rawbytes to any binary
file or I/O device.
ReadRawBytes ReadRawBytes is used to read data of type rawbytes from any binary
file or I/O device.
Functions
This is a brief description of each function used for raw data communication. For
more information, see the respective function in Technical reference manual - RAPID
Instructions, Functions and Data types.
Function Description
RawBytesLen RawBytesLen is used to get the valid data length in a rawbytes vari-
able.
PROC write_rawbytes()
VAR num length := 0.2;
VAR string length_unit := "meters";
Close io_device;
ENDPROC
PROC read_rawbytes()
VAR string answer;
Close io_device;
Copy rawbytes
In this example, all data from raw_data_1 and raw_data_2 is copied to
raw_data_3.
VAR rawbytes raw_data_1;
VAR rawbytes raw_data_2;
VAR rawbytes raw_data_3;
VAR num my_length:=0.2;
VAR string my_unit:=" meters";
[Link] Overview
Purpose
The purpose of the file and directory management is to be able to browse and edit
file structures (directories and files).
What is included
To handle file and directory management, RobotWare gives you access to:
• instructions for handling directories
• a function for reading directories
• instructions for handling files on a file structure level
• functions to retrieve size and type information.
Basic approach
This is the general approach for file and directory management. For more detailed
examples of how this is done, see Code examples on page 47.
1 Open a directory.
2 Read from the directory and search until you find what you are looking for.
3 Close the directory.
Data types
This is a brief description of each data type used for file and directory management.
For more information, see the respective data type in Technical reference
manual - RAPID Instructions, Functions and Data types.
Data type Description
dir dir contains a reference to a directory on disk or network. It can be linked
to the physical directory with the instruction OpenDir.
Instructions
This is a brief description of each instruction used for file and directory management.
For more information, see the respective instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Instruction Description
OpenDir OpenDir is used to open a directory.
CloseDir CloseDir is used to close a directory.
MakeDir MakeDir is used to create a new directory.
RemoveDir RemoveDir is used to remove an empty directory.
CopyFile CopyFile is used to make a copy of an existing file.
RenameFile RenameFile is used to give a new name to an existing file. It can also be
used to move a file from one place to another in the directory structure.
RemoveFile RemoveFile is used to remove a file.
Functions
This is a brief description of each function used for file and directory management.
For more information, see the respective instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Function Description
ReadDir ReadDir is used to retrieve the name of the next file or subdirectory under
a directory that has been opened with the instruction OpenDir.
Note that the first items read by ReadDir are . (full stop character) and ..
(double full stop characters) symbolizing the current directory and its parent
directory.
FileSize FileSize is used to retrieve the size (in bytes) of the specified file.
FSSize FSSize (File System Size) is used to retrieve the size (in bytes) of the file
system in which a specified file [Link] can either retrieve the total
size or the free size of the system.
IsFile IsFile test if the specified file is of the specified type. It can also be used
to test if the file exist at all.
List files
This example shows how to list the files in a directory, excluding the directory itself
and its parent directory (. and ..).
PROC lsdir(string dirname)
VAR dir directory;
VAR string filename;
Check sizes
In this example, the size of the file is compared with the remaining free space on
the file system. If there is enough space, the file is copied.
VAR num freefsyssize;
VAR num f_size;
Purpose
Device Command Interface provides an interface to communicate with I/O devices
on industrial networks.
This interface is used together with raw data communication, see Raw data
communication on page 41.
What is included
The RobotWare base functionality Device Command Interface gives you access
to:
• Instruction used to create a DeviceNet header.
Basic approach
This is the general approach for using Device Command Interface. For a more
detailed example of how this is done, see Write rawbytes to DeviceNet on page 51.
1 Add a DeviceNet header to a rawbytes variable.
2 Add the data to the rawbytes variable.
3 Write the rawbytes variable to the DeviceNet I/O.
4 Read data from the DeviceNet I/O to a rawbytes variable.
5 Extract the data from the rawbytes variable.
Limitations
Device command communication require the option for the industrial network in
question.
Device Command Interface is supported by the following type of industrial networks:
• DeviceNet
• EtherNet/IP
Data types
There are no RAPID data types for Device Command Interface.
Instructions
This is a brief description of each instruction in Device Command Interface. For
more information, see the respective instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Instruction Description
PackDNHeader PackDNHeader adds a DeviceNet header to a rawbytes variable. The
header specifies a service to be done (e.g. set or get) and a parameter
on a DeviceNet I/O device.
Functions
There are no RAPID functions for Device Command Interface.
System parameters
There are no specific system parameters in Device Command Interface. For
information on system parameters in general, see Technical reference
manual - System parameters.
2.7.1 Overview
Purpose
The Alias I/O functionality gives the programmer the ability to use any name on a
signal and connect that name to a configured I/O signal.
This is useful when a RAPID program is reused between different systems. Instead
of rewriting the code, using a signal name that exist on the new system, the signal
name used in the program can be defined as an alias name.
What is included
Alias I/O functionality consists of the instruction AliasIO.
Data types
There are no RAPID data types for the Alias I/O functionality.
Instructions
This is a brief description of each instruction used for the Alias I/O functionality.
For more information, see the respective instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Instruction Description
AliasIO AliasIO is used to define a signal of any type with an alias name, or to
use signals in built-in task modules. The alias name is connected to a
configured I/O signal.
The instruction AliasIO must be run before any use of the actual signal.
Functions
There are no RAPID functions for the Alias I/O functionality.
Purpose
The purpose of Logical Cross Connections is to check and affect combinations of
digital I/O signals (DO, DI) or group I/O signals (GO, GI). This can be used to verify
or control process equipment that are external to the robot. The functionality can
be compared to the one of a simple PLC.
By letting the I/O system handle logical operations with I/O signals, a lot of RAPID
code execution can be avoided. Logical Cross Connections can replace the process
of reading I/O signal values, calculate new values and writing the values to I/O
signals.
Here are some examples of applications:
• Interrupt program execution when either of three input signals is set to 1.
• Set an output signal to 1 when both of two input signals are set to 1.
Description
Logical Cross Connections are used to define the dependencies of an I/O signal
to other I/O signals. The logical operators AND, OR, and inverted signal values
can be used to configure more complex dependencies.
The I/O signals that constitute the logical expression (actor I/O signals) and the
I/O signal that is the result of the expression (resultant I/O signal) can be either
digital I/O signals (DO, DI) or group I/O signals (GO, GI).
What is included
Logical Cross Connections allows you to build logical expressions with up to 5
actor I/O signals and the logical operations AND, OR, and inverted signal values.
System parameters
This is a brief description of the parameters for cross connections. For more
information, see the respective parameter in Configuring Logical Cross Connections
on page 57.
These parameters belong to the type Cross Connection in the topic I/O System.
Parameter Description
Name Specifies the name of the cross connection.
Resultant The I/O signal that receive the result of the cross connection as its new
value.
Actor 1 The first I/O signal to be used in the evaluation of the Resultant.
Invert actor 1 If Invert actor 1 is set to Yes, then the inverted value of Actor 1 is used in
the evaluation of the Resultant.
Operator 1 Operand between Actor 1 and Actor 2.
Can be either of the operands:
• AND - Results in the value 1 if both input values are 1.
• OR - Results in the value 1 if at least one of the input values are 1.
Note
The operators are calculated left to right (Operator 1 first and Operator 4
last).
Actor 2 The second I/O signal (if more than one) to be used in the evaluation of the
Resultant.
Invert actor 2 If Invert actor 2 is set to Yes, then the inverted value of Actor 2 is used in
the evaluation of the Resultant.
Operator 2 Operand between Actor 2 and Actor 3.
See Operator 1.
Actor 3 The third I/O signal (if more than two) to be used in the evaluation of the
Resultant.
Invert actor 3 If Invert actor 3 is set to Yes, then the inverted value of Actor 3 is used in
the evaluation of the Resultant.
Operator 3 Operand between Actor 3 and Actor 4.
See Operator 1.
Actor 4 The fourth I/O signal (if more than three) to be used in the evaluation of the
Resultant.
Invert actor 4 If Invert actor 4 is set to Yes, then the inverted value of Actor 4 is used in
the evaluation of the Resultant.
Operator 4 Operand between Actor 4 and Actor 5.
See Operator 1.
Actor 5 The fifth I/O signal (if all five are used) to be used in the evaluation of the
Resultant.
Invert actor 5 If Invert actor 5 is set to Yes, then the inverted value of Actor 5 is used in
the evaluation of the Resultant.
2.8.3 Examples
Logical AND
The following logical structure...
xx0300000457
Logical OR
The following logical structure...
xx0300000459
Inverted signals
The following logical structure (where a ring symbolize an inverted signal)...
xx0300000460
Several resultants
The following logical structure can not be implemented with one cross connection...
xx0300000462
... but with three cross connections it can be implemented as shown below.
Resultant Actor 1 Invert actor 1 Operator 1 Actor 2 Invert actor 2
di17 di1 No AND do2 No
do26 di1 No AND do2 No
do13 di1 No AND do2 No
Complex conditions
The following logical structure...
xx0300000461
2.8.4 Limitations
Evaluation order
If more than two actor I/O signals are used in one cross connection, the evaluation
is made from left to right. This means that the operation between Actor 1 and Actor
2 is evaluated first and the result from that is used in the operation with Actor 3.
If all operators in one cross connection are of the same type (only AND or only
OR) the evaluation order has no significance. However, mixing AND and OR
operators, without considering the evaluation order, may give an unexpected result.
Tip
Use several cross connections instead of mixing AND and OR in the same cross
connection.
Maximum depth
The maximum allowed depth of cross connection evaluations is 20.
A resultant from one cross connection can be used as an actor in another cross
connection. The resultant from that cross connection can in its turn be used as an
actor in the next cross connection. However, this type of chain of dependent cross
connections cannot be deeper than 20 steps.
Purpose
The purpose of RAPID Message Queue is to communicate with another RAPID
task or PC application using PC SDK.
Here are some examples of applications:
• Sending data between two RAPID tasks.
• Sending data between a RAPID task and a PC application.
RAPID Message Queue can be defined for interrupt or synchronous mode. Default
setting is interrupt mode.
What is included
The RAPID Message Queue functionality is included in the RobotWare options:
• Multitasking
• RobotStudio Connect
RAPID Message Queue gives you access to RAPID instructions, functions, and
data types for sending and receiving data.
Basic approach
This is the general approach for using RAPID Message Queue. For a more detailed
example of how this is done, see Code examples on page 68.
1 For interrupt mode: The receiver sets up a trap routine that reads a message
and connects an interrupt so the trap routine is called when a new message
appears.
For synchronous mode: The message is handled by a waiting or the next
executed RMQReadWait instruction.
2 The sender looks up the slot identity of the queue in the receiver task.
3 The sender sends the message.
Illustration of communication
The picture below shows various possible senders, receivers, and queues in the
system. Each arrow is an example of a way to post a message to a queue.
PC
PC SDK
Queue
Robot
controller
RAPID
task
Queue
RAPID
task
Queue
en0700000430
• motsetdata
The data in a message can also be an array of a data type.
User defined records are allowed, but both sender and receiver must have identical
declarations of the record.
Tip
Queue name
The name of the queue configured for a RAPID task is the same as the name of
the task with the prefix RMQ_, for example RMQ_T_ROB1. This name is used by
the instruction RMQFindSlot.
Queue handling
Messages in queues are handled in the order that they are received. This is known
as FIFO, first in first out. If a message is received while a previous message is
being handled, the new message is placed in the queue. As soon as the first
message handling is completed, the next message in the queue is handled.
Queue modes
The queue mode is defined with the system parameter RMQ Mode. Default behavior
is interrupt mode.
Interrupt mode
In interrupt mode the messages are handled depending on data type. Messages
are only handled for connected data types.
A cyclic interrupt must be set up for each data type that the receiver should handle.
The same trap routine can be called from more than one interrupt, that is for more
than one data type.
Messages of a data type with no connected interrupt will be discarded with only a
warning message in the event log.
Receiving an answer to the instruction RMQSendWait does not result in an interrupt.
No interrupt needs to be set up to receive this answer.
Synchronous mode
In synchronous mode, the task executes an RMQReadWait instruction to receive
a message of any data type. All messages are queued and handled in order they
arrive.
If there is a waiting RMQReadWait instruction, the message is handled immediately.
If there is no waiting RMQReadWait instruction, the next executed RMQReadWait
instruction will handle the message.
Message content
A RAPID Message Queue message consists of a header, containing receiver
identity, and a RAPID message. The RAPID message is a pretty-printed string with
data type name (and array dimensions) followed by the actual data value.
RAPID message examples:
"robtarget;[[930,0,1455],[1,0,0,0],[0,0,0,0],
[9E9,9E9,9E9,9E9,9E9,9E9]]"
"string;"A message string""
"stringarr:["string1","string2"]
"msgrec;[100,200]"
"bool{2,2};[[TRUE,TRUE],[FALSE,FALSE]]"
Message lost
In interrupt mode, any messages that cannot be received by a RAPID task will be
discarded. The message will be lost and a warning will be placed in the event log.
Example of reasons for discarding a message:
• The data type that is sent is not supported by the receiving task.
• The receiving task has not set up an interrupt for the data type that is sent,
and no RMQSendWait instruction is waiting for this data type.
• The interrupt queue of the receiving task is full
Queue lost
The queue is cleared at power fail.
When the execution context in a RAPID task is lost, for example when the program
pointer is moved to main, the corresponding queue is emptied.
Related information
For more information on queues and messages, see Technical reference
manual - RAPID kernel.
Type Task
These parameters belong to the type Task in the topic Controller.
Parameter Description
RMQ Type Can have one of the following values:
• None - Disable all communication with RAPID Message
Queue for this RAPID task.
• Internal - Enable the receiving of RAPID Message
Queue messages from other tasks on the controller,
but not from external clients (FlexPendant and PC ap-
plications). The task is still able to send messages to
external clients.
• Remote - Enable communication with RAPID Message
Queue for this task, both with other tasks on the con-
troller and external clients (FlexPendant and PC applic-
ations).
The default value is None.
RMQ Mode Defines the mode of the queue.
Can have one of the following values:
• Interrupt - A message can only be received by connect-
ing a trap routine to a specified message type.
• Synchronous - A message can only be received by
executing an RMQReadWait instruction.
Default value is Interrupt.
RMQ Max Message Size The maximum data size, in bytes, for a RAPID Message
Queue message.
An integer between 448 and 5000. The default value is 448.
Note
RMQ Max No Of Messages The maximum number of RAPID Message Queue messages
in the queue to this task.
An integer between 1 and 10. The default value is 5.
Note
Instructions
Instruction Description
RMQFindSlot Find the slot identity number of the queue configured for a
RAPID task or Robot Application Builder client.
RMQSendMessage Send data to the queue configured for a RAPID task or Robot
Application Builder client.
IRMQMessage Order and enable cyclic interrupts for a specific data type.
RMQGetMessage Get the first message from the queue of this task. Can only
be used if RMQ Mode is defined as Interrupt.
RMQGetMsgHeader Get the header part from a message.
RMQGetMsgData Get the data part from a message.
RMQSendWait Send a message and wait for the answer. Can only be used
if RMQ Mode is defined as Interrupt.
RMQReadWait Wait for a message. Can only be used if RMQ Mode is defined
as Synchronous.
RMQEmptyQueue Empty the queue.
Functions
Function Description
RMQGetSlotName Get the name of the queue configured for a RAPID task or
Robot Application Builder client, given a slot identity number,
i.e. given a rmqslot.
Data types
RECORD message
string msg1;
string msg2;
ENDRECORD
VAR position posData;
VAR message request;
VAR intnum rmqMsg;
VAR rmqslot clientSlot;
VAR pos currPosition;
CONST string unknownRequest := "Unknown request";
PROC main()
RMQFindSlot clientSlot, "RMQ_PC_SDK";
CONNECT rmqMsg WITH rmqMessageHandler;
IRMQMessage request, rmqMsg;
WHILE TRUE DO
...
currPosition := CPos(\Tool:=tool0 \WObj:=wobj0);
...
ENDWHILE
IDelete rmqMsg;
EXIT;
ENDPROC
TRAP rmqMessageHandler
VAR rmqmessage rmqMsg;
VAR rmqheader header;
RMQGetMessage rmqMsg;
RMQGetMsgHeader rmqMsg\Header := header\SenderId := clientSlot;
IF [Link] = "message" THEN
RMQGetMsgData rmqMsg, request;
IF request.msg1 = "Get current position" THEN
posData.x := currPosition.x;
posData.y := currPosition.y;
posData.z := currPosition.z;
RMQSendMessage clientSlot, posData;
ELSE
RMQSendMessage clientSlot, unknownRequest;
ENDIF
ENDIF
ENDTRAP
ENDMODULE
if (ctrl != null)
{
trob1Queue = [Link]("RMQ_T_ROB1");
if ([Link](pcsdkQueueName))
{
[Link]([Link](pcsdkQueueName));
}
pcsdkQueue = [Link](pcsdkQueueName, 16,
[Link]());
SendMessage(message1, message2);
...
[Link]([Link](pcsdkQueueName));
[Link]();
...
}
}
public static void SendMessage(string message1, string message2)
{
if (pcsdkQueue != null)
{
ret = [Link](timeout, message);
if (ret == [Link])
{
string answer = new
UTF8Encoding().GetString([Link]);
string[] answerStructure = [Link](';');
if (answerStructure[0] == "position")
{
string pos = [Link](([Link]('[')) +
1, [Link](']') - (([Link]('['))
+ 1));
string [] array=[Link](',');
X = [Link](array[0]);
Y = [Link](array[1]);
Z = [Link](array[2]);
...
}
else if(answerStructure[0] == "string")
{
string valueCharacter = "\"";
int valueStartIndex = [Link](valueCharacter);
int valueEndIndex = [Link](valueCharacter,
valueStartIndex + 1);
string returnText = [Link](valueStartIndex
+ 1, valueEndIndex - (valueStartIndex + 1));
...
}
}
else
{
//No message recieved within time limit.
...
}
}
else
{
//No queue found
...
}
}
}
}
Purpose
The purpose of Socket Messaging is to allow a RAPID programmer to transmit
application data between computers, using the TCP/IP network protocol. A socket
represents a general communication channel, independent of the network protocol
being used.
Socket communication is a standard that has its origin in Berkeley Software
Distribution Unix. Besides Unix, it is supported by, for example, Microsoft Windows.
With Socket Messaging, a RAPID program on a robot controller can, for example,
communicate with a C/C++ program on another computer.
What is included
The RobotWare functionality Socket Messaging gives you access to RAPID data
types, instructions and functions for socket communication between computers.
Basic approach
This is the general approach for using Socket Messaging. For a more detailed
example of how this is done, see Code examples for Socket Messaging on page 77.
1 Create a socket, both on client and server. A robot controller can be either
client or server.
2 Use SocketBind and SocketListen on the server, to prepare it for a
connection request.
3 Order the server to accept incoming socket connection requests.
4 Request socket connection from the client.
5 Send and receive data between client and server.
en0600003224
Tip
Do not create and close sockets more than necessary. Keep the socket open
until the communication is completed. The socket is not really closed until a
certain time after SocketClose (due to TCP/IP functionality).
Overview
When using the functionality Socket Messaging to communicate with a client or
server that is not a RAPID task, the following information can be useful.
No string termination
When sending a data message, no string termination sign is sent in the message.
The number of bytes sent is equal to the return value of the function strlen(str)
in the programming language C.
Data types
This is a brief description of each data type in Socket Messaging. For more
information, see Technical reference manual - RAPID Instructions, Functions and
Data types.
Data type Description
socketdev A socket device used to communicate with other computers on a net-
work.
socketstatus Can contain status information from a socketdev variable.
Tip
Instruction Description
SocketBind Binds the socket to a specified port number on the server.
Used by the server to define on which port (on the server) to
listen for a connection.
The IP address defines a physical computer and the port
defines a logical channel to a program on that computer.
SocketListen Makes the computer act as a server and accept incoming
connections. It will listen for a connection on the port specified
by SocketBind.
SocketAccept Accepts an incoming connection request. Used by the server
to accept the client’s request.
Note
The server application must be started before the client application, so that the
instruction SocketAccept is executed before any client execute
SocketConnect.
Functions
This is a brief description of each function in Socket Messaging. For more
information, see Technical reference manual - RAPID Instructions, Functions and
Data types.
Function Description
SocketGetStatus Returns information about the last instruction performed on the socket
(created, connected, bound, listening, closed).
SocketGetStatus does not detect changes from outside RAPID (such
as a broken connection).
! Communication
SocketReceive client_socket \Str:=received_string;
TPWrite "Client wrote - " + received_string;
received_string := "";
SocketSend client_socket \Str:="Message acknowledged";
! Shutdown the connection
SocketReceive client_socket \Str:=received_string;
TPWrite "Client wrote - " + received_string;
SocketSend client_socket \Str:="Shutdown acknowledged";
SocketClose client_socket;
ENDWHILE
SocketClose temp_socket;
ENDPROC
Description
The RobotWare base functionality User logs generates event logs for the most
common user actions. The event logs are generated in the group Operational
events, number series 10xxx.
For more information on handling the event log, see Operating manual - OmniCore
and Technical reference manual - Event logs for RobotWare 7.
Purpose
The purpose of User logs is to track changes in the robot controller related to user
actions. This can for example be helpful to find the root cause if a production stop
occurs.
What is included
The RobotWare base functionality User logs generates event logs for the following
changes related to user actions. All event logs are described in Technical reference
manual - Event logs for RobotWare 7.
Topic User action Event logs
Program exe- Changing the speed or run mode (single cycle/continuous). 10140
cution Making changes to the task selection panel. Setting or reset- 10145
ting non motion execution mode.
10146
10153
10154
10284
10285
Simulate wait Simulating wait instructions, for example WaitTime, 10144
instructions WaitUntil, WaitDx, etc.
RAPID Opening or closing RAPID programs or modules, editing 10040
changes RAPID code, or modifying robot positions. 10041
10061
10062
10063
10064
10069
10078
10079
10147
Program Moving the program pointer to main, to a routine, to a posi- 10141
pointer move- tion, or to a service routine (call routine). 10142
ments
10143
10149
2.12.1 Overview
Purpose
If the robot was in the middle of a path movement when the power fail occurred,
some extra actions may need to be taken when the robot motion is resumed. The
power failure functionality helps you detect if the power fail occurred during a path
movement.
Note
For more information see the type Signal Safe Level, which belongs to the topic
I/O System, in Technical reference manual - System parameters.
What is included
The power failure functionality includes a function that checks for interrupted path:
PFRestart
Data types
There are no RAPID data types in the power failure functionality.
Instructions
There are no RAPID instructions in the power failure functionality.
Functions
This is a brief description of each function in the power failure functionality. For
more information, see the respective function in Technical reference manual - RAPID
Instructions, Functions and Data types.
Function Description
PFRestart PFRestart (Power Failure Restart) is used to check if the path was inter-
rupted at power failure. If so it might be necessary to make some specific
actions. The function checks the path on current level, base level or on in-
terrupt level.
System parameters
There are no system parameters in the power failure functionality. However,
regardless of whether you have any options installed, you can use the parameter
Store signal at power fail.
For more information, see Technical reference manual - System parameters.
2.13.1 Overview
Interrupts
Interrupts are program-defined events, identified by interrupt numbers. An interrupt
occurs when an interrupt condition is true. Unlike errors, the occurrence of an
interrupt is not directly related to (synchronous with) a specific code position. The
occurrence of an interrupt causes suspension of the normal program execution
and control is passed to a trap routine.
A more extensive description of the interrupt functionality is found in Technical
reference manual - RAPID Overview.
Programming principles
Each interrupt is assigned an interrupt identity. It obtains its identity by creating a
variable (of data type intnum) and connecting this to a trap routine.
The interrupt identity (variable) is then used to order an interrupt, that is to specify
the reason for the interrupt. This may be one of the following events:
• An input or output is set to one or to zero.
• A given amount of time elapses after an interrupt is ordered.
• A specific position is reached.
When an interrupt is ordered, it is also automatically enabled, but can be temporarily
disabled. This can take place in two ways:
• All interrupts can be disabled. Any interrupts occurring during this time are
placed in a queue and then automatically generated when interrupts are
enabled again.
• Individual interrupts can be deactivated. Any interrupts occurring during this
time are disregarded.
Related information
Depending on the application, an interrupt can be resolved using the Path Recovery
functionality, see Path Recovery [3113-1] on page 263.
Data types
This is a brief description of each data type in the interrupt functionality. For more
information, see the respective data type in Technical reference manual - RAPID
Instructions, Functions and Data types.
Data type Description
trapdata trapdata represents internal information related to the interrupt that caused
the current trap routine to be executed.
errdomain errdomain is used to specify an error domain. Depending on the nature
of the error, it is logged in different domains.
errtype errtype is used to specify an error type (error, warning, state change).
Instructions
This is a brief description of each instruction in the interrupt functionality. For more
information, see the respective instruction in Technical reference manual - RAPID
Instructions, Functions and Data types.
Instruction Description
IPers IPers (Interrupt Persistent) is used to order an interrupt to be generated
each time the value of a persistent variable is changed.
IError IError (Interrupt Errors) is used to order an interrupt to be generated each
time an error occurs.
GetTrapData GetTrapData is used in trap routines generated by the instruction IError.
GetTrapData obtains all information about the interrupt that caused the
trap routine to be executed.
ReadErrData ReadErrData is used in trap routines generated by the instruction IError.
ReadErrData read the information obtained by GetTrapData.
ErrRaise ErrRaise is used to create an error in the program and the call the error
handler of the [Link] can also be used in the error handler to
propagate the current error to the error handler of the calling routine.
Functions
There are no RAPID functions for the interrupt functionality.
PROC main()
CONNECT int1 WITH iroutine1;
IPers counter, int1;
...
counter := counter + 1;
...
Idelete int1;
ENDPROC
TRAP iroutine1
TPWrite "Current value of counter = " \Num:=counter;
ENDTRAP
Error interrupt
In this example, a trap routine is called when an error occurs. The trap routine
determines the error domain and the error number and communicates them via
output signals.
VAR intnum err_interrupt;
VAR trapdata err_data;
VAR errdomain err_domain;
VAR num err_number;
VAR errtype err_type;
PROC main()
CONNECT err_interrupt WITH trap_err;
IError COMMON_ERR, TYPE_ERR, err_interrupt;
...
a:=3;
b:=0;
c:=a/b;
...
IDelete err_interrupt;
ENDPROC
TRAP trap_err
GetTrapData err_data;
ReadErrData err_data, err_domain, err_number, err_type;
SetGO go_err1, err_domain;
SetGO go_err2, err_number;
ENDTRAP
Purpose
The purpose of Analog Signal Interrupt is to supervise an analog signal and
generate an interrupt when a specified value is reached.
Analog Signal Interrupt is faster, easier to implement, and require less computer
capacity than polling methods.
Here are some examples of applications:
• Save cycle time with better timing (start robot movement exactly when a
signal reach the specified value, instead of waiting for polling).
• Show warning or error messages if a signal value is outside its allowed range.
• Stop the robot if a signal value reaches a dangerous level.
What is included
The RobotWare base functionality Analog Signal Interrupt gives you access to the
instructions:
• ISignalAI
• ISignalAO
Basic approach
This is the general approach for using Analog Signal Interrupt. For a more detailed
example of how this is done, see Code example on page 89.
1 Create a trap routine.
2 Connect the trap routine using the instruction CONNECT.
3 Define the interrupt conditions with the instruction ISignalAI or ISignalAO.
Limitations
Analog signals can only be used if you have an industrial network option (for
example DeviceNet).
Data types
Analog Signal Interrupt includes no data types.
Instructions
This is a brief description of each instruction in Analog Signal Interrupt. For more
information, see the respective instruction in Technical reference manual - RAPID
Instructions, Functions and Data types.
Instruction Description
ISignalAI Defines the values of an analog input signal, for which an interrupt routine
shall be called.
An interrupt can be set to occur when the signal value is above or below a
specified value, or inside or outside a specified range. It can also be spe-
cified if the interrupt shall occur once or repeatedly.
ISignalAO Defines the values of an analog output signal, for which an interrupt routine
shall be called.
An interrupt can be set to occur when the signal value is above or below a
specified value, or inside or outside a specified range. It can also be spe-
cified if the interrupt shall occur once or repeatedly.
Functions
Analog Signal Interrupt includes no RAPID functions.
Temperature surveillance
In this example a temperature sensor is connected to the signal ai1.
An interrupt routine with a warning is set to execute every time the temperature
rises 0.5 degrees in the range 120-130 degrees. Another trap routine, stopping the
robot, is set to execute as soon as the temperature rise above 130 degrees.
VAR intnum ai1_warning;
VAR intnum ai1_exeeded;
PROC main()
CONNECT ai1_warning WITH temp_warning;
CONNECT ai1_exeeded WITH temp_exeeded;
ISignalAI ai1, AIO_BETWEEN, 130, 120, 0.5, \DPos, ai1_warning;
ISignalAI \Single, ai1, AIO_ABOVE_HIGH, 130, 120, 0, ai1_exeeded;
...
IDelete ai1_warning;
IDelete ai1_exeeded;
ENDPROC
TRAP temp_warning
TPWrite "Warning: Temperature is "\Num:=ai1;
ENDTRAP
TRAP temp_exeeded
TPWrite "Temperature is too high";
Stop;
ENDTRAP
[Link] Overview
Purpose
The purpose of Fixed Position Events is to make sure a program routine is executed
when the position of the TCP is well defined.
If a move instruction is called with the zone argument set to fine, the next routine
is always executed once the TCP has reached its target. If a move instruction is
called with the zone argument set to a distance (for example z20), the next routine
may be executed before the TCP is even close to the target. This is because there
is always a delay between the execution of RAPID instructions and the robot
movements.
Calling the move instruction with zone set to fine will slow down the movements.
With Fixed Position Events, a routine can be executed when the TCP is at a
specified position anywhere on the TCP path without slowing down the movement.
What is included
The RobotWare base functionality Fixed Position Events gives you access to:
• instructions used to define a position event
• instructions for moving the robot and executing the position event at the
same time
• instructions for moving the robot and calling a procedure while passing the
target, without first defining a position event
Basic approach
Fixed Position Events can either be used with one simplified instruction calling a
procedure or it can be set up following these general steps. For more detailed
examples of how this is done, see Code examples on page 94.
1 Declare the position event.
2 Define the position event:
• when it shall occur, compared to the target position
• what it shall do
3 Call a move instruction that uses the position event. When the TCP is as
close to the target as defined, the event will occur.
Data types
This is a brief description of each data type in Fixed Position Events. For more
information, see the respective data type in Technical reference manual - RAPID
Instructions, Functions and Data types.
Data type Description
triggdata triggdata is used to store data about a position event.
A position event can take the form of setting an output signal or run-
ning an interrupt routine at a specific position along the movement
path of the robot.
triggdata also contains information on when the action shall occur,
for example when the TCP is at a defined distance from the target.
triggdata is a non-value data type.
triggios triggios is used to store data about a position event used by the
instruction TriggLIOs.
triggios sets the value of an output signal using a num value.
triggiosdnum triggiosdnum is used to store data about a position event used by
the instruction TriggLIOs.
triggiosdnum sets the value of an output signal using a dnum value.
Instructions
This is a brief description of each instruction in Fixed Position Events. For more
information, see the respective instruction in Technical reference manual - RAPID
Instructions, Functions and Data types.
Instruction Description
MoveLSync MoveLSync is a linear move instruction that calls a procedure in the
middle of the corner path.
MoveCSync MoveCSync is a circular move instruction that calls a procedure in
the middle of the corner path.
MoveJSync MoveJSync is a joint move instruction that calls a procedure in the
middle of the corner path.
TriggIO TriggIO defines the setting of an output signal and when to set that
signal. The definition is stored in a variable of type triggdata.
TriggIO can define the setting of the signal to occur at a certain
distance (in mm) from the target, or a certain time from the target. It
is also possible to set the signal at a defined distance or time from
the starting position.
By setting the distance to 0 (zero), the signal will be set when the TCP
is as close to the target as it gets (the middle of the corner path).
TriggEquip TriggEquip works like TriggIO, with the difference that TriggEquip
can compensate for the internal delay of the external equipment.
For example, the signal to a glue gun must be set a short time before
the glue is pressed out and the gluing begins.
TriggInt TriggInt defines when to run an interrupt routine. The definition is
stored in a variable of type triggdata.
TriggInt defines at what distance (in mm) from the target (or from
the starting position) the interrupt routine shall be called. By setting
the distance to 0 (zero), the interrupt will occur when the TCP is as
close to the target as it gets (the middle of the corner path).
Continues on next page
Application manual - Controller software OmniCore 91
3HAC066554-001 Revision: T
© Copyright 2019-2025 ABB. All rights reserved.
2 RobotWare-OS, basic functionality in RobotWare
[Link] RAPID components and system parameters
Continued
Instruction Description
TriggCheckIO TriggCheckIO defines a test of an input or output signal, and when
to perform that test. The definition is stored in a variable of type
triggdata.
TriggCheckIO defines a test, comparing an input or output signal
with a value. If the test fails, an interrupt routine is called. As an option
the robot movement can be stopped when the interrupt occurs.
TriggCheckIO can define the test to occur at a certain distance (in
mm) from the target, or a certain time from the target. It is also possible
to perform the test at a defined distance or time from the starting po-
sition.
By setting the distance to 0 (zero), the interrupt routine will be called
when the TCP is as close to the target as it gets (the middle of the
corner path).
TriggRampAO TriggRampAO defines the ramping up or down of an analog output
signal and when this ramping is performed. The definition is stored
in a variable of type triggdata.
TriggRampIO defines where the ramping of the signal is to start and
the length of the ramping.
TriggL TriggL is a move instruction, similar to MoveL. In addition to the
movement the TriggL instruction can set output signals, run interrupt
routines and check input or output signals at fixed positions.
TriggL executes up to 8 position events stored as triggdata. These
must be defined before calling TriggL.
TriggC TriggC is a move instruction, similar to MoveC. In addition to the
movement the TriggC instruction can set output signals, run interrupt
routines and check input or output signals at fixed positions.
TriggC executes up to 8 position events stored as triggdata. These
must be defined before calling TriggC.
TriggJ TriggJ is a move instruction, similar to MoveJ. In addition to the
movement the TriggJ instruction can set output signals, run interrupt
routines and check input or output signals at fixed positions.
TriggJ executes up to 8 position events stored as triggdata. These
must be defined before calling TriggJ.
TriggLIOs TriggLIOs is a move instruction, similar to MoveL. In addition to the
movement the TriggLIOs instruction can set output signals at fixed
positions.
TriggLIOs is similar to the combination of TriggEquip and TriggL.
The difference is that TriggLIOs can handle up to 50 position events
stored as an array of datatype triggios, triggiosdnum, or
triggstrgo.
Functions
Fixed Position Events includes no RAPID functions.
System parameters
This is a brief description of each parameter in Fixed Position Events. For more
information, see the respective parameter in Technical reference manual - System
parameters.
Parameter Description
Event Preset Time TriggEquip takes advantage of the delay between the RAPID exe-
cution and the robot movement, which is about 70 ms. If the delay of
the equipment is longer than 70 ms, then the delay of the robot
movement can be increased by configuring Event preset time.
Event preset time belongs to the type Motion System in the topic
Motion.
Result
The code specifies that the TCP should reach p2 before setting do1. Because the
robot path is delayed compared to instruction execution, do1 is set when the TCP
is at the position marked with X (see illustration).
xx0300000151
Result
The signal do1 will be set when the TCP is 30 mm from p2. do1 is set when the
TCP is at the position marked with X (see illustration).
xx0300000158
Result
The procedure will be called when the TCP is at the position marked with X (see
illustration).
xx0300000165
[Link] Overview
Description
Electronically Linked Motors makes a master/follower configuration of motors (for
example two additional axes). The follower axis will continuously follow the master
axis in terms of position, velocity, and acceleration.
For stiff mechanical connection between the master and followers, the torque
follower function can be used. Instead of regulating to exactly the same position
for the master and follower, the follower axis will get its torque reference as a quota
of the torque of the master axis. A small position error between master and follower
will occur depending on backlash and mechanical misalignment.
Purpose
The primary purpose of Electronically Linked Motors is to replace driving shafts
of gantry machines, but the base functionality can be used to control any other set
of motors as well.
What is included
The RobotWare base functionality Electronically Linked Motors gives you access
to:
• a service routine for defining linked motor groups and trimming the axis
positions
• system parameters used to configure a follower axis
Basic approach
This is the general approach for setting up Electronically Linked Motors. For a
more detailed description of how this is done, see the respective section.
1 Configure the additional axes as a mechanical unit. See Application
manual - Additional axes.
2 Configure tolerance limits in the system parameters, in the types Linked M
Process, Process, and Joint.
3 Restart the controller for the changes to take effect.
4 Set values to data variables, defining the linked motor group and connecting
follower and master axes.
5 Use the service routine to trim positions or reset follower after position error.
Limitations
There can be up to 5 follower axes. The follower axes can be configured to follow
one master each, or several followers can follow one master, but the total number
of follower axes cannot be more than 5.
The follower axis cannot be an ABB robot. The master axis can be either an
additional axis or a robot axis.
[Link] Configuration
Joint
These parameters belong to the topic Motion and the type Joint.
Parameter Description
Follower to Joint Specifies which master axis this axis shall follow. Refers to the parameter
Name in the type Joint. Robot axes are referred to as rob1 followed by
underscore and the axis number (for example rob1_6).
Use Process Id name of the process that is called. Refers to the parameter Name in
the type Process.
Lock Joint in Ipol A flag that locks the axis so it is not used in the path interpolation.
This parameter must be set to TRUE when the axis is electronically linked
to another axis.
Process
These parameters belong to the topic Motion and the type Process.
Parameter Description
Name Id name of the process.
Use Linked Motor Id name of electronically linked motor process. Refers to the parameter
Process Name in the type Linked M Process.
Linked M Process
These parameters belong to the topic Motion and the type Linked M Process.
Parameter Description
Name Id name for the linked motor process.
Offset Adjust Delay Time delay from control on until the follower starts to follow the
Time master.
This can be used to give the master time to stabilize before the
follower starts following.
Max Follower Offset The maximum allowed difference in distance (in radians or meters)
between master and follower.
If Max Follower Offset is exceeded, emergency stop is activated.
Max Offset Speed The maximum allowed difference in speed (in rad/s or m/s) between
master and follower.
If Max Offset Speed is exceeded, emergency stop is activated.
Offset Speed Ratio Defines how large part of the Max Offset Speed that can be used
to compensate for position error.
Ramp Time Time for acceleration up to Max Offset Speed.
The proportion constant for position regulation is ramped from zero
up to its final value (Master Follower kp) during Ramp Time.
Parameter Description
Master Follower kp The proportion constant for position regulation. Determines how
fast the position error is compensated.
Torque follower Set to True if the follower and master should share torque instead
of regulating on exact position.
Torque quota The follower axis will get its torque reference according to the
master axis torque multiplied with the quota.
If motors and gears are identical, it is recommend to set this value
a bit lower than 1, for example, 0.95.
Joint
Process
Linked M Process
Name Offset Adjust Max Follow- Max Offset Offset Ramp Master Fol-
Delay Time er Offset Speed Speed Ra- Time lower kp
tio
Linked_m_1 0.2 0.05 0.05 0.33 1 0.05
Linked_m_2 0.1 0.1 0.1 0.4 1.5 0.08
Data variables
When the service routine starts, it will read values from system parameters and
set the values for a set of data variables used by the service routine. These variables
only need to be set manually if something goes wrong, see Data setup on page 110.
Note
The controller must be in manual or auto mode to run this service routine.
Step Action
1 On the start screen, tap Operate, and then select Service Routines from the menu.
2 Select Linked_m and tap Go to.
If Linked_m is not listed, browse to the folder where you placed it.
3 Press and hold the enabling device.
4 Press the RUN button to start the service routine.
5 Tap Menu 1.
The follower axes that are set up in the system are shown in the task bar.
Step Action
6 Tap the follower axis you want to use the service routine for.
The main menu of the service program is now shown.
Menu buttons
Button Description
AUTO Automatically moves the follower axis to the position corresponding to the
master axis, see Reset follower automatically on page 105.
STOP Stops the movement of the follower axis. Can be used when jogging or using
AUTO and the movement must be stopped immediately.
JOG Manual stepwise movement of the follower axis, see Jog follower axis on page 103.
If the follower axis is synchronized with the master axis, it will resume its position
when you tap AUTO or when you exit the service program.
UNSYNC Used to suspend the synchronization between follower axis and master axis,
see Unsynchronize on page 103.
HELP Show some help for how to use the service program. The button Next shows
the next help subject.
Overview
Before the follower axis can follow the master axis, you must define the calibration
positions for both master and follower.
Master axis
calibrate position
Follower
position Desired
follower
position
en0400000963
Unsynchronize
Step Action
1 In the main menu of the service routine, tap UNSYNC.
2 Confirm that you want to unsynchronize the axes by tapping YES.
3 Restart the controller when an information text tells you to do it.
After the restart the follower axis is no longer synchronized with the master axis.
Step Action
1 In the main menu of the service program, tap JOG.
2 Select the speed with which the follower axis should move when you jog it.
3 Select the step size with which the follower axis should move for each step you
jog it.
4 Tap on Positive or Negative, depending on in which direction you want to move
the follower axis.
Jog the follower axis until it is exactly in the calibration position (the position that
corresponds to the master axis calibration position).
Fine calibrate
Step Action
1 Open the Calibrate app.
2 Select the mechanical unit that the follower axis belongs to.
3 Tap the button Calib. Parameters.
4 Tap Fine Calibration....
5 In the warning dialog that appears, tap Yes.
6 Select the axis that is used as follower axis and tap Calibrate.
7 In the warning dialog that appears, tap Calibrate.
The follower axis is now calibrated. As soon as the follower is calibrated, it is also
synchronized with the master again.
Overview
If the follower offset exceeds its tolerance limits (configured with the system
parameter Max follower offset), the service routine must be used to move the
follower back within the tolerance limits. This can be done automatically in the
service routine if the follower is within the AUTO range. Otherwise the follower
must be manually jogged.
The range where AUTO can be used is determined by the system parameter Max
Follower Offset multiplied with the data variable offset_ratio.
Desired
follower
position
Max Follower
Master axis Offset
position
Max Follower Offset * offset_ratio
en0400000962
Step Action
1 In the main menu of the service routine, tap AUTO.
2 Select the speed with which the follower axis should move to its desired position.
Step Action
1 In the main menu of the service routine, tap JOG.
2 Select the speed with which the follower axis should move when you jog it.
3 Select the step size with which the follower axis should move for each step you
jog it.
4 Tap on Positive or Negative, depending on which direction you want to move the
follower axis.
Jog the follower until it is within the tolerance of Max Follower Offset (or use AUTO
when you are close enough).
Master axis
xx2300001589
Follower axis
xx2300001590
Description
The follower axis gets its torque feedforward according to a quota of torque ref on
the master axis.
When the follower axis is set as torque follower, the control parameters position
control gain (K) and speed loop integral part (Kv/Ti) is internally set to zero. It is
recommended to run the follower axis with a small value of Kv and FFW mode =
Spd.
Torque quota
The sharing of torque is done so that the follower axis receives its torque reference
as the master reference multiplied with the torque quota. The setup is done with
equal motors and gears quota, and the ideal would be 1.0, but for stability reasons
it is recommended to set it to a value below that, for example, 0.95.
If motor and gearbox differs between master and follower, manual calculation is
required to achieve good sharing and stability.
The torque quota is configured with the system parameter Torque quota, see
Technical reference manual - System parameters, topic Motion, type Linked M
Process.
LCM0:
-name "MasterAxis" -Kp 10 -Kv 0.15 -Ti 0.2 -ffw_mode 1
-name " TorqueFollower " -Kp 10 -Kv 0.05 -Ti 0.2 -ffw_mode 1
When enabling torque_follower, the parameters marked with bold font in the
example, are no longer used. max_offset is still valid but should be increased.
Normally the follower axis should use a smaller value of Kv, but it is recommend
to still have some natural damping.
Note
It is highly recommended to use same type of motor and gearbox for the master
and follower.
When the torque follower is used with different motor types or gearboxes, the
quota must be set accordingly. The quota is shared on motor torque and does
not consider gear ratio.
Action Illustration
1 Start the service routine (as described
by the first steps in Start service routine
on page 101).
2 Tap Menu 2.
3 Tap on the name of the follower axis to
tune.
4 Use the tune torque follower menu as
described below.
Action Illustration
3 Test which value results in the lowest
torque tension and make a fine calibra-
tion of the master axis. This will update
the follower axis with the current position
delta.
Overview
At start of the service routine for Electronically Linked Motors, some data variables
are read from the linked motor configuration. These variables are used by the
service routine. If they are not read correctly, the variables need to be edited in
the service routine.
Data descriptions
l_f_axis_name
l_f_mecunt_n
l_f_axis_no
l_m_mecunt_n
l_m_axis_no
offset_ratio
speed_ratio
displacement
3 Connectivity
3.1 Connected Services
3.1.1 Overview
Note
ABB Connected Services is the new name for the functionality previously known
as ABB Ability. During a period of time, both names will appear in and on our
products.
Description
Connected Services is a functionality for ABB robot controllers to connect to ABB
Connected Services Cloud by using 3G/4G, or wired connectivity. Connected
Services collects the service information from the controller.
Purpose
The primary purpose of Connected Services is to collect service information from
the controller.
These service information will be available through MyRobot, Connected Services
portal, or pushed locally.
What is included
The RobotWare base functionality Connected Services gives you access to:
• a Connected Services agent software to manage the connectivity and the
service data collection.
• system parameters used to enable and configure the connectivity.
• status and information pages.
• dedicated event logs for key events of Connected Services.
• connectivity through Connected Services Gateway.
• connectivity through the public port.
Prerequisites
The Connected Services function requires that the controller is included in a service
agreement with ABB. Contact your local ABB office to create a service agreement
with Connected Services and get access to MyRobot website to perform the
registration after the connection.
Note
MyRobot is the ABB website which gives access to the service information of a
robot controller under a service agreement.
Basic workflow
Connected Services is available natively as a plug and connect solution in
RobotWare. The setup concept is to:
1 Provides internet connectivity to the robot controller.
2 Configure connected services and startup the connection.
3 Register the controller through MyRobot registration page.
Once Connected Services is connected and registered, the data collection will run
transparently in the background.
Limitations
The controller identification is done using the controller serial number and must
match the serial number defined in the service agreement.
Power On Connect
Using a Connected Services Gateway 3G or 4G will provide automatic connectivity
after Power On of the controller without any configuration.
Production Registration
ABB will securely pre register Connected Services during production process to
avoid the manual registration.
The manual registration is still available when needed.
Note
The connectivity of the controller through the public network requires a Firewall
provided by the customer.
The communication is secured and encrypted using HTTPS (secure HTTP). The
communication is possible only from the controller to ABB Cloud to keep the
customer network isolated from any external Internet access. The following figure
describe these concepts.
HTTPS:443
HTTPS:443
Service
ABB Connected
Public/WAN information
Service Cloud
xx1900000977
2d 2a
2b
2c
3d
Internet
4
ABB Connected
Services Center
Internet
3a 1a 0
3b 3c
xx1500003226
Step Description
0 Check controller S/N and internet connectivity
1a Enable CSE and set up connectivity configuration
2a CS connectivity in place
2b Low poll for registration
2c Registration not trusted (get reg code)
2d Display registration code
3a Get registration code
3b Give controller S/N and registration code
3c Select controller S/N in SA and register with registration code
3d Registration trusted (client certificate)
4 Connected and registered secure CS session
Note
Configuration
In Flexpendant the Connected Services configuration are available in:
• CS Gateway 3G: Settings > ABB Connected Services > 3G Connection
• CS Gateway Wired: Settings > ABB Connected Services > Wired Connection
Note
Status
In FlexPendant the Connected Services status are available in:
• Network: Settings > ABB Connected Services > Network Status
• CS Gateway: Settings > ABB Connected Services > Connectivity Status
• Connected Services summary: QuickSet > Connected Services
• Connected Services details: Settings > ABB Connected Services >
Connected Services Status
• Reset Connected Services: Operate > Service Routine
Logs
In Flexpendant the Connected Services logs are available in:
• Connection Logs (3G): Settings > Backup and Recovery > Connection Logs
• Details Logs: Settings > Backup and Recovery > System Diagnostic
Configuration
In RobotStudio the Connected Services configuration are available in:
• CS Gateway 3G: Controller > Configuration > Communication > CS Gateway
3G
• CS Gateway Wired: Controller > Configuration > Communication > CS
Gateway Wired
Note
Status
In RobotStudio the Connected Services status are available in:
• Connected Services Summary/Details: Controller > Properties > Device
Browser > Software Resources > Connected Services
• Reset Connected Services: Not implemented
Logs
In RobotStudio the Connected Services logs are available in:
• Connection Logs (3G/4G): Not implemented
• Details Logs: Controller > Properties > Save Diagnostic
Introduction
This section provides a brief description of system parameters used for the
Connected Services. For more information see Technical reference manual - System
parameters.
Note
Internet Gateway IP Defines the internet gateway IP of the connected network when the
connection type is private. This is valid for the Connection Type
Custom.
Forces the Internet Gateway to use for connectivity.
Internet DNS IP Defines the internet DNS IP of the connected network. This is valid
for the Connection Type Custom.
Forces the DNS to use for connectivity.
Note
Proxy Used Defines if a proxy is used to access the internet and its name/ad-
dress, port, and authentication.
Proxy Auth Defines the proxy authentication type. Basic will use HTTP basic
authentication including user and password. None will not use any.
Server Polling Defines the frequency of polling for specific synchronization with
the sever. The available values are slow and fast.
For details about the behavior of events for server polling, see De-
scription of behavior of events for server polling on page 147.
Debug Mode Enables extensive logging for debugging the issues.
Trace Level Defines the level of logging if Debug Mode is enabled.
Parameter Description
Connected Services Defines the compatibility for different robot controller's data format,
Mode cloud solution, and specific features. Following are the available
modes:
• Omnicore data collection.
Note
Note
Note
For quick testing, use a temporary DNS defined as [Link] (Google DNS), then
switch to customer recommended DNS server IP.
[Link] Introduction
Overview
This section explains how Connected Services is configured using the controller
FlexPendant based on the available internet connectivity. Internet connectivity can
be provided in multiple ways.
• Connected Services Gateway module (3G, 4G or wired)
• Direct internet connection on customer Public (WAN) network
• Direct internet connection on custom network
Note
Overview
Connected Services can be configured in the following ways depending on the
available connection type:
• ABB Connect
• Public
• Custom
Note
Note
4 Tap Apply.
The Restart confirmation message is displayed.
5 Tap Yes.
The controller is restarted.
Connected Services starts communicating to the server based on the
configuration.
Check the connectivity status or event logs. For more details, see Connected
Services information on page 139.
Note
The Public network and DNS can be configured statically or automatically (via
DHCP). For more details, see Configuration of public network using FlexPendant
on page 130.
Note
Note
Procedure
The following procedure provides information about configuring the Connected
Services from the FlexPendant when there is Internet connection with proxy.
1 On the start screen, tap Settings, and then select ABB Connected Services
from the menu.
2 Tap Connected Services.
The configuration parameters for Connected Services are displayed.
3 In the Proxy Used field, change the value to Yes.
The proxy parameters are displayed.
4 In the Proxy Name field, type a name for the proxy.
5 In the Proxy Port field, type the proxy port number.
6 In the Proxy Auth field, select Basic for basic authentication or select None
for no authentication from the drop-down list.
Note
Define the proxy user name and password for the basic authentication.
Even if a proxy is used, it is mandatory to define a DNS for name resolution.
Note
7 Tap Apply and restart the controller to take effect of the changes.
[Link] Introduction
Overview
This section explains how the Connected Services is configured using RobotStudio
with the controller based on the available internet connectivity. Internet connectivity
can be provided in multiple ways.
• Connected Services Gateway Module (3G, 4G or wired)
• Direct internet connection on Customer Public (WAN) network
• Direct internet connection on custom network
Note
Overview
Connected services can be configured in the following three ways depending on
the available connection type:
• ABB Connect
• Public
• Custom
Note
Note
6 Click OK.
7 Restart the controller.
The connected services start communicating to the server based on the
configuration.
Check the connectivity status in the device browser. For more details, see
Connected Services information on page 139.
Also refer to the event logs generated. For more details, see Technical
reference manual - Event logs for RobotWare 7.
Note
Note
Note
Use the following procedure to configure the connection type Custom using
RobotStudio:
1 In the Controller tab, click Configuration.
2 Right-click on Communication and select Configuration Editor.
The Configuration Editor is displayed.
3 Click Connected Services.
The configuration parameters for connected services is displayed.
4 Right-click on any field and select Edit Connected Services(s).
The Instance Editor is displayed.
5 In the Connection Type field, select the value Private Network.
6 In the Internet Gateway IP field, type the IP address of internet gateway.
7 In the Internet DNS IP field, type the IP address of Internet DNS.
8 Click OK.
9 Restart the controller.
The connected services start communicating to the server based on the
configuration.
Check the connectivity status in the device browser. For more details, see
Connected Services information on page 139.
Also refer to the event logs generated. For more details, see Technical
reference manual - Event logs for RobotWare 7.
Configuring IP Statically
Use the following procedure to configure statically IP using RobotStudio:
1 Right-click on the controller and select Properties > Network Settings.
The Network settings window is displayed.
2 Select the option Use following IP address.
3 Enter the values in IP address, Subnet mask, Default gateway fields.
4 Click OK and restart the controller
The IP is configured.
Note
It is still possible to define manual DNS with automatic IP. If there is conflict
between manual and automatic DNS, manual DNS has priority.
Procedure
The following procedure provides information about configuring the Connected
Services from the RobotStudio when there is internet connection with proxy.
1 In the Controller tab, click Configuration.
2 Right-click on Communication and select Configuration Editor.
The Configuration Editor is displayed.
3 Select Connected Services.
The configuration parameters for connected services is displayed.
4 Right-click on any field and select Edit Connected Services(s).
The Instance Editor is displayed.
5 In the Proxy Used field, select the value Yes.
The proxy parameters are displayed.
6 In the Proxy Name field, type a name for the proxy.
7 In the Proxy Port field, type the proxy port number.
8 In the Proxy Auth field, from the drop-down list, select Basic for basic
authentication or select None for no authentication.
Note
Define the Proxy User and Proxy Password fields for the basic
authentication. Even if a proxy is used, it is mandatory to define a DNS for
name resolution.
Note
9 Click OK.
The controller is restarted and the changes are applied.
Note
Note
Overview page
The Overview page provides a summary of the Connected Services status and
information. If the status is not active then the other pages provide more detailed
information.
Field Description Possible values Example
Property
Enabled Displays the value of the master Yes/No Yes
configuration switch for turning the
Connected Services on/off.
Status Displays the current status to see For a description Active
whether there is a need to navigate of values, see
to the Server connection page or CSE status on
Registration page. page 145.
Serial number Displays the identifier that is used Controller Serial 12-45678
to identify the controller in Connec- number
ted Services.
Robot OS Ver- Displays the Robot OS Version that Robot OS Ver- RobotOS_1.00.0-
sion is sent to the server. sion number 379
Robot Control Displays the Robot Control version Robot Control RobotCon-
version that is sent to the server. version name trol_7.[Link]-
ternal+405
Connectivity page
The Connectivity page provides a summary of the Connected Services connectivity
to the server.
Field Description Possible Example
values
Status Displays the current status to see For a de- Active
whether there is a need to navigate scription of
to the Connectivity page or Regis- values, see
tration page. CSE status
on page 145.
Connection Displays the status of communica- For a de- Connected
Status tion with the server and the type of scription of
error. values, see
CSE connec-
tion status
on page 145 .
Last updated Displays the relative time since the "HH:MM:SS ago"
information on the Connectivity
page has been generated.
Hardware gate- Displays the type of hardware gate- DSQC 1039 3G
way way and connection IP. Connected on IP:
[Link]
Note
4G Gateway is displayed as
DSQC1041 Wired.
Server name Displays the name of the server that "" Connected Services -
software agent is configured with. Server name [Link]
Note
Server certific- Displays the server certificate name "" Connected Services -
ate name information. Server name [Link]
Untrusted
(Server)
Server certific- Displays the name of the server "" ABB issuing CA 6
ate issuer certificate issuer. Issuer DigiCert SHA2 Secure
Untrusted Server CA
(Issuer)
Server certific- Displays the server certificate date. "" Oct 02 [Link] 2020
ate valid from Issuer GMT
Issued
(Date)
Server certific- Displays the server certificate date. "" Nov 21 [Link] 2021
ate valid until Issuer GMT
Expired
(Date)
Client certificate Displays the name of the client cer- 07-000036
device tificate device.
Client Certificate Displays the name of the client cer- Remote-Service-
issuer tificate issuer. PROD-Issuing-CA-1
Client Certificate Displays from which date onwards Mar 15 [Link] 2019
valid from the client certificate is valid. GMT
Client Certificate Displays till which date the client Mar 15 [Link] 2020
valid until certificate is valid. GMT
Client Certificate Displays the serial number of the 15E37B17000100
serial number client certificate. 002D0B
Internet IP Displays the IP which is used to [Link]
connect to internet.
Note
Registration page
The Registration page provides a summary of the Connected Services registration.
Field Description Possible values Example
Status Displays the current status to see For a description Active
whether there is a need to navigate of values, see
to the Server connection page or CSE status on
Registration page. page 145.
Registration Displays the registration status. For a description Register with
Status of values, see code in MyRobot
CSE registration
status on
page 146.
Registration Displays the registration code. This "-" 456735
code code can be used to register using Code value
MyRobot.
Advanced page
The Advanced page provides advanced information about the dialog between
software agent and server.
Field Description Possible values Example
Last HTTP mes- Displays the last message sent. Register GetMessage
sage CheckRegistered
LogMessage
GetMessage
GetConfig
SendGetSpecific-
Code
DownLoadFile
AcknowledgeMes-
sage
BoxUpload
GetRSEAgree-
mentInformation
SendDeviceIn-
formation
RequestClientCer-
tificate
RenewClientCerti-
ficate
periodicDeviceUp-
dateInformation
Last HTTP mes- Displays the date and time when the Sent [Link]
sage time last message was sent. ago
Last HTTP error Displays the HTTP error when the Not Available - if Not Available
last message was sent and the no error
message ID if 4XX. Error HTTP XXX
+ Message
Next message Displays the next message to send GetMessage in
and the date to send the message. 70 seconds
Last command Displays the last command received Not Available Not Available
from server. Reboot
Reset
Ping
Diagnostic
...
Restart counter Displays the number of times the 0-N 2
software Agent been auto-restarted. If not Enabled,
This is used to see if watchdog has then display 0
restarted.
Connector ver- Displays the currently running con- 1.0.0
sion nector version information.
CSE mode
The following table gives the information of CSE mode:
Code Value Description
CS_MODE_BOOT Boot Mode Connected Services during initialization.
CS_MODE_REGISTRATION Registration Mode Connected Services in registration mode.
CS_MODE_ACTIVE Active Mode Connected Services after registration is
successful.
CS_MODE_RESET Reset Mode Connected Services during reset of connec-
ted services.
CS_MODE_SLEEP Sleep Mode When there is a delay to perform operation.
CS_MODE_SHUTDOWN Shutdown Mode When suspend connected services until
revoke.
3.1.10 Troubleshooting
Overview
From your location it is possible to verify the connectivity from the controller to the
Connected Services public connector server. This is done by connecting a PC
instead of the controller) with the same network configuration (WAN IP/Mask, DNS,
Route), and open the path to the root of the Connected Services server
([Link] in a browser. The connectivity is validated if the DNS
name has been resolved, the browser presents a page indicating the CS server,
and secured with an ABB certificate as shown in the following figures.
xx1500003225
Cybersecurity
For more details, see the section OmniCore Cybersecurity in Operating
manual - Integrator's guide OmniCore.
Time accuracy
It is important to set up the time correctly in the controllers including Time Zone,
either manually or with NTP. For more details, see the section Changing date and
time in Operating manual - OmniCore.
Overview
This option is used to check the current connection state of the connectivity module
for troubleshooting.
Note
Connection log is available only for Connected Services Gateway 3G (not for
Wired).
Procedure
Use the following procedure to check the current connection state of the connectivity
module:
1 Open Settings.
2 Tap Backup & Recovery.
3 On the left sidebar tap Connection log.
The Connection log page is displayed and the logs are displayed on a
window.
Note
xx1900000976
4 Tap Export.
5 If required, in the File Name field edit the name of the file.
6 If required, to change the storage path, in the Folder Name field tap Browse
and select the required path.
7 Tap Create.
The current connection state of the connectivity module is saved in the
selected path.
Overview
It is possible to get some status information and logs from the Connected Services
Gateway 4G. This is done by using an external PC connected on port Eth 1 of the
4G Gateway.
For more information about troubleshooting, see the product manual for the
controller, listed in References on page 11.
[Link] How to get Connected Services Embedded logs from the controller
Procedure
Use the following procedure to retrieve the CSE logs from the controller:
1 Open RobotStudio, click the Controller tab, and add the controller.
Note
Controller 1 Controller 2
Network Switch
xx1900001182
Controller 1 Controller 2
Network Switch
xx1900001182
Controller 1 Controller 2
Internet Gateway
Public Network
Network Switch
xx1900001184
OmniCore OmniCore
Controller 1 Controller 2
Public Network
Internet
Gateway
xx2300000120
Note
Ensure that there is a Firewall setup on customer network for internet access
(outbound only). This needs to be confirmed also in the Omnicore Firewall
settings.
OmniCore OmniCore
Controller 1 Controller 2
Public Network
Network switch
DNS Server
Internet
Gateway
xx2300000122
Controller 2 Controller 3
xx1800002942
For more information about how to do setting for the gateway box for multiple
controllers, see Product manual - Connected Services.
Note
CAUTION
Note
Using the ABB Service Box will allow Remote Access features. A standard 4G
router can also be used with same principles.
Controller 2 Controller 3
xx2300001231
Note
CAUTION
Note
It is possible to use an ABB Service Box which will also allow Remote Access
features. A standard 4G router can also be used with same principles.
Note
When you use an internet gateway make sure it is firewalled to allow only
minimum required outbound commands.
4 Motion performance
4.1 Absolute Accuracy [3101-x]
Purpose
Absolute Accuracy is a calibration concept that improves TCP accuracy. The
difference between an ideal robot and a real robot can be several millimeters,
resulting from mechanical tolerances and deflection in the robot structure. Absolute
Accuracy compensates for these differences.
Here are some examples of when this accuracy is important:
• Exchangeability of robots
• Offline programming with no or minimum touch-up
• Online programming with accurate movement and reorientation of tool
• Accurate cell alignment for MultiMove coordinated motion
• Programming with accurate offset movement in relation to eg. vision system
or offset programming
• Re-use of programs between applications
The option Absolute Accuracy is integrated in the controller algorithms and does
not need external equipment or calculation.
Note
Note
What is included
Every Absolute Accuracy robot is delivered with:
• compensation parameters saved in the robot memory
• a birth certificate representing the Absolute Accuracy measurement protocol
for the calibration and verification sequence.
A robot with Absolute Accuracy calibration has a label with this information on the
manipulator.
Absolute Accuracy supports floor mounted, wall mounted, and ceiling mounted
installations. The compensation parameters that are saved in the robot memory
differ depending on which Absolute Accuracy option is selected.
Note
In a robot system with, for example, an additional axis or track motion, the
Absolute Accuracy is active for the manipulator but not for the additional axis or
track motion.
RAPID instructions
There are no RAPID instructions included in this option.
Note
Note that this is the only RobotWare option that is relevant for an additional robot.
Note
It is possible to mix robots with and without the option Absolute Accuracy
arbitrarily in a MultiMove system.
Overview
The following products are recommended for operation and maintenance of
Absolute Accurate robots:
• Load Identification
• CalibWare (Absolute Accuracy calibration tool)
Load Identification
Absolute Accuracy calculates the robot's deflection depending on payload. It is
very important to have an accurate description of the load.
Load Identification is a tool that determines the mass, center of gravity, and inertia
of the payload.
For more information, see Operating manual - OmniCore.
CalibWare
CalibWare, provided by ABB, is a tool for calibrating Absolute Accuracy. The
documentation to CalibWare describes the Absolute Accuracy calibration procedure
in detail.
CalibWare is used at initial calibration and when servicing the robot.
4.1.3 Configuration
9 Tap Cabinet or robot has been exchanged and confirm by tapping Yes.
4.1.4 Maintenance
Overview
This section will focus on those maintenance activities that directly affect the
accuracy of the robot, summarized as follows:
• Tool recalibration
• Motor replacement
• Wrist replacement (large robots)
• Arm replacement (lower arm, upper arm, gearbox, foot)
• Manipulator replacement
• Loss of accuracy
Note
Tool recalibration
For information about tool recalibration, see Tool calibration on page 184.
Motor replacement
Replacement of all motors requires a re-calibration of the corresponding resolver
offset parameter using the standard calibration method for the respective robot.
This is described in the product manual for the robot.
If the motor replacement requires disassembly of the arm, then see Arm
replacement or disassembly on page 170.
Wrist replacement
Replacement of the wrist unit requires a re-calibration of the resolver offsets for
axes 5 and 6 using the standard calibration method for the respective robot.
Note
An update of the defined work objects will make the deviation less in positioning.
Manipulator replacement
When a robot manipulator is replaced without replacing the controller cabinet, it
is necessary to update the Absolute Accuracy parameters in the controller cabinet
and realign the robot to the cell. The Absolute Accuracy parameters are updated
by loading the replacement robot’s calibration parameters into the controller as
described in Change calibration data on page 168. Ensure that the calibration data
is loaded and that Absolute Accuracy is activated.
The alignment of the replacement robot to the cell depends on the robot alignment
technique chosen at installation. If the robot mounting pins are aligned to the cell
then the robot need only be placed on the pins - no further alignment is necessary.
If the robot was aligned using a robot program then it is necessary to measure the
cell fixture(s) and measure the robot in several positions (for best results use the
same program as the original robot). See Measure robot alignment on page 182.
Types of errors
The errors compensated for in the controller derive from the mechanical tolerances
of the constituent robot parts. A subset of these are detailed in the illustration
below.
Compliance errors are due to the effect of the robot’s own weight together with the
weight of the current payload. These errors depend on gravity and the
characteristics of the load. The compensation of these errors is most efficient if
you use Load Identification (see Operating manual - OmniCore).
Kinematic errors are caused by position or orientational deviations in the robot
axes. These are independent of the load.
Illustration
There are several types of errors that can occur in each joint.
en0300000232
Introduction
Both compliance and kinematic errors are compensated for with "fake targets".
Knowing the deflection of the robot (i.e. deviation from ordered position), Absolute
Accuracy can compensate by ordering the robot to a fake target.
The compensation works on a robot target in cartesian coordinates, not on the
individual joints. This means that it is the position of the TCP (marked with an arrow
in the following illustrations) that is correctly compensated.
Desired position
The following illustration shows the position you want the robot to have.
xx0300000225
xx0300000227
Fake target
In order to get the desired position, Absolute Accuracy calculates a fake target.
When you enter a desired position, the system recalculates it to a fake target that
after the deflection will result in the desired position.
xx0300000226
Compensated position
The actual position will be the same as your desired position. As a user you will
not notice the fake target or the deflection. The robot will behave as if it had no
deflection.
xx0300000224
Overview
This section describes the calibration process that ABB performs on each Absolute
Accuracy robot, regardless of robot type or family, before it is delivered.
The process can be divided in four steps:
1 Resolver offset calibration
2 Absolute Accuracy calibration
3 Calibration data stored in the robot memory
4 Absolute Accuracy verification
5 Generation of a birth certificate
z
Measured positions AbsAcc
parameters
(Robot base frame)
y
Measurement
x system
xx1900001203
[Link] Overview
Alignment procedure
In order for the robot to be accurate with respect to the entire robot cell, it is
necessary to install the robot correctly. In summary, this involves:
Action Description
1 Measure fixture alignment Determine the relationship between the measurement
system and the fixture. See Measure fixture alignment
on page 181.
2 Measure robot alignment Determine the relationship between the measurement
system and the robot. See Measure robot alignment
on page 182.
3 Calculate frame relationships Determine the relationship between, for example, the
robot and the fixture. See Frame relationships on
page 183.
4 Calibrate tool Determine the relationship between the robot tool and
other cell components. See Tool calibration on
page 184.
Illustration
=Robtargets
Z
Z
Y
Y
3.
Work object
transformation X
=Mounting pins
X User (Fixture) =Reference points
Robot base
X
Z
3. 1.
Base frame Z 2.
transformation
Y
Y
Measurement
X system base
World
=Reference points
1.
en0300000239
Illustration
Z
Y
Z
X
Y
2
Measurement 3
system base
X
1 4
User (Fixture)
=Reference points
en0300000237
Select method
The relationship between the measurement system and the robot can be determined
in the following ways:
Alignment procedure Description
Alignment to physical base The equivalent to the fixture alignment in which the physical
base pins are measured and aligned with respect to the ref-
erence positions detailed in the product manual for the re-
spective robot.
Alignment to theoretical base Measuring several robot poses and letting the alignment
software determine the robot alignment.
Tip
As the tool load characteristics are used in the Absolute Accuracy models, it is
essential that all parameters be as accurate as possible. Use of Load Identification
is an efficient method of determining tool load characteristics.
Purpose
Ultra Accuracy is a control concept for GoFa CRB 15000 robots that improves the
TCP path accuracy even further.
Here are some examples of when this kind of accuracy is important:
• Gluing extremely small electronics components.
• Laser welding of car body parts in automotive.
• Positioning of composite material layup in aircraft manufacturing.
• High fidelity 3D printing.
• High precision laser cutting of small metal shapes.
The option Ultra Accuracy is integrated in the controller algorithms and does not
need external equipment.
Note
What is included
A robot with the option Ultra Accuracy is delivered with:
• compensation parameters saved in the robot memory
• a birth certificate representing the Ultra Accuracy measurement protocol for
the calibration and verification sequence.
A robot with Ultra Accuracy capability has a label with this information on the
manipulator.
Ultra Accuracy supports floor mounted, wall mounted, and ceiling mounted
installations.
RAPID instructions
There are no RAPID instructions included in this option.
4.2.2 Configuration
Overview
Use RobotStudio to activate and deactivate Ultra Accuracy or to change the stability
margin.
See Operating manual - RobotStudio.
Purpose
The purpose of Advanced Shape Tuning is to reduce the path deviation caused
by joint friction of the robot.
Advanced Shape Tuning is useful for low speed cutting (10-100 mm/s) of, for
example, small circles. Effects of robot joint friction can cause path deviation of
typically 0.5 mm in these cases. By tuning parameters of a friction model in the
controller, the path deviation can be reduced to the repeatability level of the robot,
for example, 0.1 mm for a medium sized robot.
What is included
Advanced Shape Tuning is included in the RobotWare option Advanced robot
motion and gives you access to:
• Instructions FricIdInit, FricIdEvaluate and FricIdSetFricLevels
that automatically optimize the joint friction model parameters for a
programmed path.
• The system parameters Friction FFW On, Friction FFW level and Friction
FFW Ramp for manual tuning of the joint friction parameters.
• The tune types tune_fric_lev and tune_fric_ramp that can be used
with the instruction TuneServo.
Basic approach
This is a brief description of how Advanced Shape Tuning is most commonly used:
1 Set system parameter Friction FFW On to TRUE. See System parameters
on page 195.
2 Perform automatic tuning of the joint friction levels using the instructions
FricIdInit and FricIdEvaluate. See Automatic friction tuning on
page 191.
3 Compensate for the friction using the instruction FricIdSetFricLevels.
Program execution
To perform automatic tuning for a sequence of movements, the sequence must
begin with the instruction FricIdInit and end with the instruction
FricIdEvaluate. When program execution reaches FricIdEvaluate, the robot
will repeat the movement sequence until the best friction level for each joint axis
is found. Each iteration consists of a backward and a forward motion, both following
the programmed path. Typically the sequence has to be repeated approximately
20-30 times, in order to iterate to correct joint friction levels.
If the program execution is stopped in any way while the program pointer is on the
instruction FricIdEvaluate and then restarted, the results will be invalid. After
a stop, friction identification must therefore be restarted from the beginning.
Once the correct friction levels are found they have to be set with the instruction
FricIdSetFricLevels, otherwise they will not be used. Note that the friction
levels are tuned for the particular movement between FricIdInit and
FricIdEvaluate. For movements in another region in the robot’s working area,
a new tuning is needed to obtain the correct friction levels.
For a detailed description of the instructions, see Technical reference
manual - RAPID Instructions, Functions and Data types.
Limitations
There are the following limitations for friction tuning:
• Friction tuning cannot be combined with synchronized movement. That is,
SyncMoveOn is not allowed between FricIdInit and FricIdEvaluate.
• The movement sequence for which friction tuning is done must begin and
end with a finepoint. If not, finepoints will automatically be inserted during
the tuning process.
• Automatic friction tuning works only for TCP robots.
• Automatic joint friction tuning can only be done for one robot at a time.
• Tuning can be made to a maximum of 500%. If that is not enough, set a higher
value for the parameter Friction FFW Level, see Starting with an estimated
value on page 196.
• It is not possible to view any test signals with TuneMaster during automatic
friction tuning.
• The movement sequence between FricIdInit and FricIdEvaluate
cannot be longer than 10 seconds.
Note
To use Advanced Shape Tuning, the parameter Friction FFW On must be set to
TRUE.
Example
This example shows how to program a cutting instruction that encapsulates the
friction tuning. When the instruction is run the first time, without calculated friction
parameters, the friction tuning is done. During the tuning process, the robot will
repeatedly move back and forth along the programmed path. Approximately 25
iterations are needed.
At all subsequent runs the friction levels are set to the tuned values identified in
the first run. By using the instruction CutHole, the friction can be tuned individually
for each hole.
PERS num friction_levels1{6} := [9E9,9E9,9E9,9E9,9E9,9E9];
PERS num friction_levels2{6} := [9E9,9E9,9E9,9E9,9E9,9E9];
CutHole p1,20,v50,tool1,friction_levels1;
CutHole p2,15,v50,tool1,friction_levels2;
IF DoTuning THEN
FricIdEvaluate FricLevels;
ENDIF
ENDPROC
Note
A real program would include deactivating the cutting equipment before the
tuning phase.
Overview
It is possible to make a manual tuning of a robot's joint friction (instead of automatic
friction tuning). The friction level for each joint can be tuned using the instruction
TuneServo. How to do this is described in this section.
There is usually no need to make changes to the friction ramp.
Note
To use Advanced Shape Tuning, the parameter Friction FFW On must be set to
TRUE.
Tune types
A tune type is used as an argument to the instruction TuneServo. For more
information, see tunetype in Technical reference manual - RAPID Instructions,
Functions and Data types.
There are two tune types that are used expressly for Advanced Shape Tuning:
Tune type Description
TUNE_FRIC_LEV By calling the instruction TuneServo with the argument
TUNE_FRIC_LEV the friction level for a robot joint can be adjusted
during program execution. A value is given in percent (between 1
and 500) of the friction level defined by the parameter Friction FFW
Level.
TUNE_FRIC_RAMP By calling the instruction TuneServo with the argument
TUNE_FRIC_RAMP the motor shaft speed at which full friction com-
pensation is reached can be adjusted during program execution. A
value is given in percent (between 1 and 500) of the friction ramp
defined by the parameter Friction FFW Ramp.
There is normally no need to tune the friction ramp.
Action
4 The final tuning values can be transferred to the system parameters.
Example: The Friction FFW Level is 0.5 and the final tune value (TUNE_FRIC_LEV) is
120%. Set Friction FFW Level to 0.6 and tune value to 100% (default value), which is
equivalent.
Tip
Tuning can be made to a maximum of 500%. If that is not enough, set a higher
value for the parameter Friction FFW Level, see Setting tuning system parameters
on page 196.
Illustration
en0900000117
Instructions
Instructions Description
FricIdInit Initiate friction identification
FricIdEvaluate Evaluate friction identification
FricIdSetFricLevels Set friction levels after friction identification
Functions
Advanced Shape Tuning includes no functions.
Data types
Advanced Shape Tuning includes no data types.
Purpose
The purpose of Motion Process Mode is to simplify application specific tuning, i.e.
to optimize the performance of the robot for a specific application.
For most applications the default mode is the best choice.
Tip
If the default mode does not give sufficient accuracy, first test to use Accuracy
mode, and if that is not sufficient, use Low speed accuracy.
Selection of mode
The default mode is automatically selected and can be changed by changing the
system parameter Use Motion Process Mode for type Robot.
Changing the Motion Process Mode from RAPID is only possible if the option
Advanced Robot Motion is installed. The mode can only be changed when the
robot is standing still, otherwise a fine point is enforced.
The following example shows a typical use of the RAPID instruction
MotionProcessModeSet.
MotionProcessModeSet OPTIMAL_CYCLE_TIME_MODE;
! Do cycle-time critical movement
MoveL *, vmax, ...;
...
MotionProcessModeSet ACCURACY_MODE;
! Do cutting with high accuracy
MoveL *, v50, ...;
...
Limitations
• The Motion Process Mode concept is currently available for all six- and
seven-axes robots except paint robots with TrueMove1.
• The Mounting Stiffness Factor parameters are only available for the following
robots:
IRB 120, IRB 140, IRB 1200, IRB 1520, IRB 1600, IRB 2600, IRB 4600, IRB
6620 (not LX), IRB 6640, IRB 6700.
• For IRB 1410, only the Accset and the geometric accuracy parameters are
available.
• The following robot models do not support the use of World Acc Factor (i.e.
only World Acc Factor = -1 is allowed):
IRB 340, IRB 360, IRB 540, IRB 1400, IRB 1410
Note
Example 1
Relative adjustment of acceleration = [Predefined AccSet Acc Factor] * [AccSet
Acc Factor] * [AccSet instruction acceleration factor / 100]
Example 2
Relative adjustment of Kv = [Predefined Kv Factor] * [Kv Factor] * [Tune value of
TuneServo(TYPE_KV) instruction / 100]
WARNING
Incorrect setting of the Motion Process Mode parameters can cause oscillating
movements or torques that can damage the robot.
Note
A foundation that does not fulfill the requirements always impairs the accuracy
to some extent, even if the described compensation is used. If the foundation
rigidity is very low, there might not be possible to solve the problem using Df
Factor / Mounting Stiffness Factor.
In this case, the foundation must be improved or any of the solutions below used,
for example, Optimal cycle time mode with a low Dh Factor, Accset Acc Factor,
or Accset Fine Point Ramp Factor depending on the application.
WARNING
Incorrect tuning for a very low mounting stiffness can cause oscillating
movements or torques that can damage the robot.
Limitations
• The Motion Process Mode concept is currently available for all six- and
seven-axes robots except paint robots.
• The Mounting Stiffness Factor parameters are only available for the following
robots:
IRB 120, IRB 140, IRB 1200, IRB 1520, IRB 1600, IRB 2600, IRB 4600, IRB
6620 (not LX), IRB 6640, IRB 6700.
• For IRB 1410, only the Accset and the geometric accuracy parameters are
available.
• The following robot models do not support the use of World Acc Factor (i.e.
only World Acc Factor = -1 is allowed):
IRB 340, IRB 360, IRB 540, IRB 1400, IRB 1410
Related information
Purpose
The purpose of Wrist Move is to improve the path accuracy when cutting geometries
with small dimensions. For geometrical shapes like small holes, friction effects
from the main axes (1-3) of the robot often degrade the visual appearance of the
shape. The key idea is that instead of controlling the robot's TCP, a wrist movement
controls the point of intersection between the laser beam (or water jet or routing
spindle, etc) and the cutting plane. For controlling the point of intersection, only
two wrist axes are needed. Instead of using all axes of the robot, only two wrist
axes are used, thereby minimizing the friction effects on the path. Which wrist axis
pair to be used is decided by the programmer.
Note
During a wrist movement, the TCP height above the surface will vary. This is an
unavoidable consequence of using only two axes. The height variation will depend
on the robot position, the tool definition, and the radius of the circular arc. The
larger the radius, the larger the height variation will be. Due to the height variation
it is recommended that the movement is run at a very low speed the first time to
verify that the height variation does not become too large. Otherwise it is possible
that the cutting tool collides with the surface being cut.
Limitations
The Wrist Move option cannot be used if:
• The work object is moving
• The robot is mounted on a track or another manipulator that is moving
The Wrist Move option is only supported for robots running QuickMove, second
generation.
The tool will not remain at right angle against the surface during the cutting. As a
consequence, the holes cut with this method will be slightly conical. Usually this
will not be a problem for thin plates, but for thick plates the conicity will become
apparent.
The height of the TCP above the surface will vary during the cut. The height variation
will increase with the size of the shape being cut. What limits the possible size of
the shape are therefore, beside risk of collision, process characteristics like focal
length of the laser beam or the water jet.
WristMove cannot be used on robots with non-spherical wrist, for example, GoFa,
CRB 1810, or YuMi.
en0900000118
Prerequisites
Due to the way the cut plane frame is defined, the following must be fulfilled at the
starting position:
• The tool must be at right angle to the surface
• The z-axis of the tool must coincide with the laser beam or water jet
• The TCP must be as close to the surface as possible
If the first two requirements are not fulfilled, then the shape of the cut contour will
be affected. For example, a circular hole would look more like an ellipse. The third
requirement is normally easy to fulfill as the TCP is often defined to be a few mm
in front of, for example, the nozzle of a water jet. However, if the third requirement
is not fulfilled, then it will only affect the radius of the resulting circle arc. That is,
the radius of the cut arc will not agree with the programmed radius. For a linear
segment, the length will be affected.
Tip
In the jog window of the FlexPendant there is a button for automatic alignment
of the tool against a chosen coordinate frame. This functionality can be used to
ensure that the tool is at a right angle against the surface when starting the wrist
movement.
Continues on next page
208 Application manual - Controller software OmniCore
3HAC066554-001 Revision: T
© Copyright 2019-2025 ABB. All rights reserved.
4 Motion performance
4.6.2 Cut plane frame
Continued
Tip
Wrist movement is not limited to circular arcs only: If the targets of MoveC are
collinear, then a straight line will be achieved.
Instruction
This is a brief description of the instruction used in Wrist Move. For more
information, see the description of the instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Instruction Descriptions
CirPathMode CirPathMode makes it possible to select different modes to
reorientate the tool during circular movements.
The arguments Wrist45, Wrist46, and Wrist56 are used
specifically for the Wrist Move option.
Basic example
This example shows how to do two circular arcs, first using axes 4 and 5, and then
using axes 5 and 6. After the two arcs, wrist movement is deactivated by
CirPathMode.
! This position will define the cut plane frame
MoveJ p10, v100, fine, tWaterJet;
CirPathMode \Wrist45;
MoveC p20, p30, v50, z0, tWaterJet;
Advanced example
This example shows how to cut a slot with end radius R and length L+2R, using
wrist movement. See Illustration, pSlot and wSlot on page 212. The slot both
begins and ends at the position pSlot, which is the center of the left semi-circle.
To avoid introducing oscillations in the robot, the cut begins and ends with
semi-circular lead-in and lead-out paths that connect smoothly to the slot contour.
All coordinates are given relative the work object wSlot.
! Set the dimensions of the slot
R := 5;
L := 30;
! Lead-in curve
MoveC Offs(pSlot, R/2, R/2, 0), Offs(pSlot, 0, R, 0), v50, z0,
tLaser, \wobj := wSlot;
! Left semi-circle
MoveC Offs(pSlot, -R, 0, 0), Offs(pSlot, 0, -R, 0), v50, z0, tLaser,
\wobj := wSlot;
! Right semi-circle
MoveC Offs(pSlot, L+R, 0, 0), Offs(pSlot, L, R, 0), v50, z0, tLaser,
\wobj := wSlot;
wSlot
pSlot
xx0900000111
4.6.5 Troubleshooting
Mismatching radius
If the radius of the circular arc does not agree with the programmed radius, then
check that the TCP is as close to the surface as possible at the starting position.
5 Motion supervision
5.1 World Zones [3106-1]
Purpose
The purpose of World Zones is to stop the robot or set an output signal if the robot
is inside a special user-defined zone. Here are some examples of applications:
• When two robots share a part of their respective work areas. The possibility
of the two robots colliding can be safely eliminated by World Zones
supervision.
• When a permanent obstacle or some temporary external equipment is located
inside the robot’s work area. A forbidden zone can be created to prevent the
robot from colliding with this equipment.
• Indication that the robot is at a position where it is permissible to start program
execution from a Programmable Logic Controller (PLC).
A world zone is supervised during robot movements both during program execution
and jogging. If the robot’s TCP reaches the world zone or if the axes reaches the
world zone in joints, the movement is stopped or a digital output signal is set.
WARNING
For safety reasons, this software shall not be used for protection of personnel.
Use hardware protection equipment for that.
What is included
The RobotWare option World Zones gives you access to:
• instructions used to define volumes of various shapes
• instructions used to define joint zones in coordinates for axes
• instructions used to define and enable world zones
Basic approach
This is the general approach for setting up World Zones. For a more detailed
example of how this is done, see Code examples on page 219.
1 Declare the world zone as stationary or temporary.
2 Declare the shape variable.
3 Define the shape that the world zone shall have.
4 Define the world zone (that the robot shall stop or that an output signal shall
be set when reaching the volume).
Limitations
Supervision of a volume only works for the TCP. Any other part of the robot may
pass through the volume undetected. To be certain to prevent this, you can
supervise a joint world zone (defined byWZLimJointDef or WZHomeJointDef).
A variable of type wzstationary or wztemporary can not be redefined. They
can only be defined once (with WZLimSup or WZDOSet).
World Zones supervision is not accessible when lead-through is active.
Data types
This is a brief description of each data type in World Zones. For more information,
see respective data type in Technical reference manual - RAPID Instructions,
Functions and Data types.
Data type Description
wztemporary wztemporary is used to identify a temporary world zone and can be
used anywhere in the RAPID program.
Temporary world zones can be disabled, enabled again, or erased
via RAPID instructions. Temporary world zones are automatically
erased when a new program is loaded or when program execution
start from the beginning in the MAIN routine.
wzstationary wzstationary is used to identify a stationary world zone and can
only be used in an event routine connected to the event POWER ON.
For information on defining event routines, see Operating manual - Om-
niCore.
A stationary world zone is always active and is reactivated by a restart
(switch power off then on, or change system parameters). It is not
possible to disable, enable or erase a stationary world zone via
RAPID instructions.
Stationary world zones shall be used if security is involved.
shapedata shapedata is used to describe the geometry of a world zone.
World zones can be defined in 4 different geometrical shapes:
• a straight box, with all sides parallel to the world coordinate
system
• a cylinder, parallel to the z axis of the world coordinate system
• a sphere
• a joint angle area for the robot axes and/or external axes
Instructions
This is a brief description of each instruction in World Zones. For more information,
see respective instruction in Technical reference manual - RAPID Instructions,
Functions and Data types.
Instruction Description
WZBoxDef WZBoxDef is used to define a volume that has the shape of a straight
box with all its sides parallel to the axes of the world coordinate sys-
tem. The definition is stored in a variable of type shapedata.
The volume can also be defined as the inverse of the box (all volume
outside the box).
WZCylDef WZCylDef is used to define a volume that has the shape of a cylinder
with the cylinder axis parallel to the z-axis of the world coordinate
system. The definition is stored in a variable of type shapedata.
The volume can also be defined as the inverse of the cylinder (all
volume outside the cylinder).
WZSphDef WZSphDef is used to define a volume that has the shape of a sphere.
The definition is stored in a variable of type shapedata.
The volume can also be defined as the inverse of the sphere (all
volume outside the sphere).
Instruction Description
WZLimJointDef WZLimJointDef is used to define joint coordinate for axes, to be
used for limitation of the working area. Coordinate limits can be set
for both the robot axes and external axes.
For each axis WZLimJointDef defines an upper and lower limit. For
rotational axes the limits are given in degrees and for linear axes the
limits are given in mm.
The definition is stored in a variable of type shapedata.
WZHomeJointDef WZHomeJointDef is used to define joint coordinates for axes, to be
used to identify a position in the joint space. Coordinate limits can be
set for both the robot axes and external axes.
For each axis WZHomeJointDef defines a joint coordinate for the
middle of the zone and the zones delta deviation from the middle. For
rotational axes the coordinates are given in degrees and for linear
axes the coordinates are given in mm.
The definition is stored in a variable of type shapedata.
WZLimSup WZLimSup is used to define, and enable, stopping the robot with an
error message when the TCP reaches the world zone. This supervision
is active both during program execution and when jogging.
When calling WZLimSup you specify whether it is a stationary world
zone, stored in a wzstationary variable, or a temporary world zone,
stored in a wztemporary variable.
WZDOSet WZDOSet is used to define, and enable, setting a digital output signal
when the TCP reaches the world zone.
When callingWZDOSet you specify whether it is a stationary world
zone, stored in a wzstationary variable, or a temporary world zone,
stored in a wztemporary variable.
WZDisable WZDisable is used to disable the supervision of a temporary world
zone.
WZEnable WZEnable is used to re-enable the supervision of a temporary world
zone.
A world zone is automatically enabled on creation. Enabling is only
necessary after it has been disabled with WZDisable.
WZFree WZFree is used to disable and erase a temporary world zone.
Functions
World Zones does not include any RAPID functions.
xx0300000178
xx0300000206
5.2.1 Overview
Purpose
Collision Detection is a software option that reduces collision impact forces on the
robot. This helps protecting the robot and external equipment from severe damage.
WARNING
Description
The software option Collision Detection identifies a collision by high sensitivity,
model based supervision of the robot. Depending on what forces you deliberately
apply on the robot, the sensitivity can be tuned as well as turned on and off.
Because the forces on the robot can vary during program execution, the sensitivity
can be set on-line in the program code.
Collision detection is more sensitive than the ordinary supervision and has extra
features. When a collision is detected, the robot will immediately stop and relieve
the residual forces by moving in reversed direction a short distance along its path.
After a collision error message has been acknowledged, the movement can continue
without having to press Motors on on the controller.
What is included
The RobotWare option Collision Detection gives you access to:
• system parameters for defining if Collision Detection should be active and
how sensitive it should be (without the option you can only turn detection on
and off for Auto mode)
• instruction for on-line changes of the sensitivity:MotionSup
Basic approach
Collision Detection is by default always active when the robot is moving. In many
cases this means that you can use Collision Detection without having to take any
active measures.
If necessary, you can turn Collision Detection on and off or change its sensitivity
in two ways:
• temporary changes can be made on-line with the RAPID instruction
MotionSup
• permanent changes are made through the system parameters.
Note
If the tool data is wrong, false collisions might be triggered and the robot arm
might drop a short distance during the stop ramp.
5.2.2 Limitations
Load definition
In order to detect collisions properly, the payload of the robot must be correctly
defined.
Tip
Use Load Identification to define the payload. For more information, see Operating
manual - OmniCore.
Independent joint
The collision detection is deactivated when at least one axis is run in independent
joint mode. This is also the case even when it is an external axis that is run as an
independent joint.
Soft servo
The collision detection may trigger without a collision when the robot is used in
soft servo mode. Therefore, it is recommended to turn the collision detection off
when the robot is in soft servo mode.
Overview
When the collision detection is triggered, the robot will stop as quickly as possible.
Then it will move in the reverse direction to remove residual forces. The program
execution will stop with an error message. The robot remains in the state motors
on so that program execution can be resumed after the collision error message
has been acknowledged.
A typical collision is illustrated below.
Collision illustration
xx0300000361
en0300000360
Motion Supervision
These parameters belong to the type Motion Supervision in the topic Motion.
Parameter Description
Path Collision Detection Turn the collision detection On or Off for program execution.
Path Collision Detection is by default set to On.
Jog Collision Detection Turn the collision detection On or Off for jogging.
Jog Collision Detection is by default set to On.
Path Collision Detection Modifies the Collision Detection supervision level for program
Level execution by the specified percentage value. A large percent-
age value makes the function less sensitive.
Path Collision Detection Level is by default set to 100%.
Jog Collision Detection Level Modifies the Collision Detection supervision level for jogging
by the specified percentage value. A large percentage value
makes the function less sensitive.
Jog Collision Detection Level is by default set to 100%.
Collision Detection Memory Defines how much the robot moves in reversed direction on
the path after a collision, specified in seconds. If the robot
moved fast before the collision it will move away a larger
distance than if the speed was slow.
Collision Detection Memory is by default set to 75 ms.
Manipulator Supervision Turns the supervision for the loose arm detection on or off
for IRB 340 and IRB 360. A loose arm will stop the robot and
cause an error message.
Manipulator Supervision is by default set to On.
Manipulator Supervision Modifies the supervision level for the loose arm detection for
Level the manipulators IRB 340 and IRB 360. A large value makes
the function less sensitive.
Manipulator Supervision Level is by default value set to 100%.
Motion Planner
These parameters belong to the type Motion Planner in the topic Motion.
Parameter Description
Motion Supervision Max Set the maximum level to which the total collision detection
Level tune level can be changed. It is by default set to 300%.
Motion System
This parameter belongs to the type Motion System in the topic Motion.
Parameter Description
Ind collision stop without This parameter is only valid for systems using the MultiMove
brake option. If this parameter is set to TRUE, detected collisions will
be handled independently in RAPID tasks that are executed
independently.
A restart is required for this parameter to take effect.
General RAPID
These parameters belong to the type General RAPID in the topic Controller.
Parameter Description
Collision Error Handler Enables RAPID error handling for collision. Collision Error
Handler is default set to Off.
For more information regarding error handling for a collision,
see Technical reference manual - RAPID kernel
Instructions
This is a brief description of the instructions in Collision Detection. For more
information, see respective instruction in Technical reference manual - RAPID
Instructions, Functions and Data types.
Instruction Description
MotionSup MotionSup is used to:
• activate or deactivate Collision Detection. This can only be done
if the parameter Path Collision Detection is set to On.
• modify the supervision level with a specified percentage value
(1-300%). A large percentage value makes the function less
sensitive.
[Link] Signals
Digital outputs
This is a brief description of the digital outputs in Collision Detection. For more
information, see respective digital output in Technical reference manual - System
parameters.
Digital output Description
MotSupOn MotSupOn is high when Collision Detection is active and low when it
is not active.
Note that a change in the state takes effect when a motion starts. Thus,
if Collision Detection is active and the robot is moving, MotSupOn is
high. If the robot is stopped and Collision Detection is turned off, Mot-
SupOn is still high. When the robot starts to move, MotSupOn switches
to low.
Before the first Motors On order after a restart of the robot controller,
MotSupOn will reflect the value of the corresponding system parameter
Path Collision Detection:
• If Path Collision Detection is set to On, MotSupOn will be high.
• If Path Collision Detection is set to Off, MotSupOn will be low.
MotSupTrigg MotSupTrigg goes high when the collision detection triggers. It stays
high until the error code is acknowledged from the FlexPendant.
Activate supervision
To be able to use Collision Detection during program execution, the parameter
Path Collision Detection must be set to On.
To be able to use Collision Detection during jogging, the parameter Jog Collision
Detection must be set to On.
Note
Default values
If Collision Detection is activated with the system parameters, it is by default active
during program execution with the tune value 100%. These values are set
automatically:
• when using the restart mode Reset system.
• when a new program is loaded.
• when starting program execution from the beginning.
Note
If tune values are set in the system parameters and in the RAPID instruction,
both values are taken into consideration.
Example: If the tune value in the system parameters is set to 150% and the tune
value is set to 200% in the RAPID instruction the resulting tune level will be 300%.
Reactivate supervision
If the supervision has been temporarily deactivated, it can be activated with the
following instruction:
MotionSup \On;
Note
Tuning
The supervision level can be tuned during program execution with the instruction
MotionSup. The tune values are set in percent of the basic tuning where 100%
corresponds to the basic values. A higher percentage gives a less sensitive system.
This is an example of an instruction that increase the supervision level to 200%:
MotionSup \On \TuneValue:=200;
Actions to take
Introduction
The function Collision Avoidance monitors a detailed geometric model of the robot.
By defining additional geometrical models of bodies in the robot workarea, the
controller will warn about a predicted collision and stops the robot if two bodies
come too close to each other. The system parameter Coll-Pred Safety Distance
determines at what distance the two objects are considered to be in collision.
The function Collision Avoidance is useful for example when setting up and testing
programs, or for programs where positions are not static but created from sensors,
such as cameras (non-deterministic programs). By using trigger-signals (see Trigger
signals on page 236), Collision Avoidance can be used for implementing safe
workspace sharing between multiple robots.
Besides the robot itself the function will monitor up 10 objects that is created via
the configurator in RobotStudio. Typical objects to be monitored are tool mounted
on the robot flange, additional equipment mounted on the robot arm (typically axis
3) or static volume around the robot.
The geometric models are set up in RobotStudio.
The functionality is activated by the system input Collision Avoidance. A high signal
will activate the functionality and a low signal will deactivate the functionality. The
functionality is by default active if no signal has been assigned to the system input
Collision Avoidance.
Collision Avoidance is active both during jogging and when running programs.
Also, the RAPID function IsCollFree provides a way to check possible collisions
before moving to a position.
CAUTION
Tip
Tip
Collision Avoidance adds the user configuration in the folder CA under the HOME
folder. This is created when adding a configuration in RobotStudio.
If disk space is needed, the rsgfx files can be removed.
Activation/deactivation of objects
By default, a defined collision object is active all the time. However, it is possible
to configure a collision object with an activation signal, which basically connects
it to a digital input that determines whether the object is active or not. This is useful,
for example, for modelling multiple tools, where only one tool at a time is active.
Another use case is modelling of objects that can be present or absent in the robot
cell, for example a pallet.
Note that changing the state of an activation signal will immediately change the
activation state of the connected collision object, and no synchronization to the
robot path planning is made. Activating a collision object while the robot is moving
towards the object can thus lead to a collision because the planned path may
already have passed by the collision object while it was inactive. If synchronization
is important, then activation signals should either be changed in finepoints when
the robot is standing still or using trigg instructions like TriggL or TriggJ.
Trigger signals
A non-moving collision object can be configured with a trigger signal. The value
of the trigger signal reflects which robots are in contact with the collision object.
More specifically, the value of a trigger signal should be interpreted as a bit pattern,
where bit k is high if robot k is in contact with the collision object. For example, if
the trigger signal has the value 6, which is 110 in binary, it means that ROB_2 and
ROB_3 are in contact with the collision object. Trigger signals can be used to
implement safe workspace sharing between multiple robots.
A trigger signal can be configured with two timing behaviors: immediate or
on-arrival. If configured with immediate behavior, then the trigger signal is changed
as quickly as possible, well before the robot has physically reached the position
where it comes into contact with the collision object. If configured with on-arrival
behavior, then the trigger signal changes state when the robot physically reaches
the position where it comes in contact with the zone.
Limitations
CAUTION
Purpose
SafeMove Assistant is a functionality in RobotWare that helps users to program
their application when there is an active SafeMove configuration. The assistant
will read the active configuration and plan the trajectories according to the limits
and settings in that configuration. It will set the speed so that SafeMove will not
trigger violations etc. It will also stop with error message in case the robot is
programmed to enter a forbidden zone etc.
SafeMove Assistant will automatically adjust robot behavior to adopt to the active
SafeMove configuration, the robot will adopt to speed limited zones and stop before
entering forbidden zones.
CAUTION
Note
Description
SafeMove Assistant will check if any SafeMove speed limit is active for any
Cartesian speed checkpoint (TCP, tool points, and elbow). If this is the case, a
corresponding speed limit is applied in the path planner. If SafeMove Assistant in
some special case does not reduce the speed enough, the system parameter
SafeMove assistance speed factor can be decreased.
In manual mode, SafeMove Assistant will reduce the TCP speed according to the
active tool in the safety configuration.
SafeMove Assistant does not take path corrections generated at lower level into
account. It is therefore an increased risk of SafeMove violations when running
applications like Externally Guided Motion or conveyor tracking.
System parameters
SafeMove Assistant can be disabled for the SafeMove validation etc. This is done
with the parameter Disable SafeMove Assistance, in the type in Motion System.
There are some parameters that can be changed in case robot system has minor
overshoot or in any other way triggers SafeMove violations.
Parameter Description
SafeMove Assist- That has a default setting of 0.96 which corresponds to 96% of speed
ance Speed supervision will be the speed that path planner will use. This parameter
Factor can be decreased to reduce that risk but can in most cases be left at
default value.
SafeMove assist- When robot is running on a zone border there is a small risk that Safe-
ance zone mar- Move can trigger violations when going in and out of the zone. This
gin parameter can be increased to reduce that risk but can in most cases
be left at default value.
For more information, see the parameters in the type Motion System described in
Technical reference manual - System parameters.
6 Motor control
6.1 Independent Axis [3111-1]
6.1.1 Overview
Purpose
The purpose of Independent Axis is to move an axis independently of other axes
in the robot system. Some examples of applications are:
• Move an external axis holding an object (for example rotating an object while
the robot is spray painting it).
• Save cycle time by performing a robot task at the same time as an external
axis performs another.
• Continuously rotate robot axis 6 (for polishing or similar tasks).
• Reset the measurement system after an axis has rotated multiple revolutions
in the same direction. Saves cycle time compared to physically winding back.
An axis can move independently if it is set to independent mode. An axis can be
changed to independent mode and later back to normal mode again.
What is included
The RobotWare option Independent Axis gives you access to:
• instructions used to set independent mode and specify the movement for an
axis
• an instruction for changing back to normal mode and/or reset the
measurement system
• functions used to verify the status of an independent axis
• system parameters for configuration.
Basic approach
This is the general approach for moving an axis independently. For detailed
examples of how this is done, see Code examples on page 245.
1 Call an independent move instruction to set the axis to independent mode
and move it.
2 Let the robot execute another instruction at the same time as the independent
axis moves.
3 When both robot and independent axis has stopped, reset the independent
axis to normal mode.
Reset axis
Even without being in independent mode, an axis might rotate only in one direction
and eventually loose precision. The measurement system can then be reset with
the instruction IndReset.
The recommendation is to reset the measurement system for an axis before its
motor has rotated 10000 revolutions in the same direction.
Limitations
A mechanical unit may not be deactivated when one of its axes is in independent
mode.
Axes in independent mode cannot be jogged.
The only robot axis that can be used as an independent axis is axis number 6. On
IRB 1600, 2600 and 4600 models (except ID version), the instruction IndReset
can also be used for axis 4.
Internal and customer cabling and equipment may limit the ability to use
independent axis functionality on axis 4 and 6.
The option is not possible to use in combination with:
• SafeMove I
• Track Motion (IRBT)
• Positioners (IRBP) on Interchange axes
• Tool change
I Independent Axis can in some cases be combined with SafeMove2 if the additional axis does not
move the robot, and the additional axis is not monitored by SafeMove. Contact your local ABB
sales office team for additional information.
The following is deactivated when option Independent Axes is used:
• Collision detection
Note
Arm
These parameters belongs to the type Arm in the topic Motion.
Parameter Description
Independent Joint Flag that determines if independent mode is allowed for the axis.
Independent Upper Defines the upper limit of the working area for the joint when operating
Joint Bound in independent mode.
Independent Lower Defines the lower limit of the working area for the joint when operating
Joint Bound in independent mode.
Transmission
These parameters belong to the type Transmission in the topic Motion.
Parameter Description
Transmission Gear Independent Axes requires high resolution in transmission gear ratio,
High which is therefore defined as Transmission Gear High divided by
Transmission Gear Low. If no smaller number can be used, the
transmission gear ratio will be correct if Transmission Gear High is
set to the number of cogs on the robot axis side, and Transmission
Gear Low is set to the number of cogs on the motor side.
Transmission Gear See Transmission Gear High.
Low
Data types
There are no data types for Independent Axis.
Instructions
This is a brief description of each instruction in Independent Axis. For more
information, see respective instruction in Technical reference manual - RAPID
Instructions, Functions and Data types.
An independent move instruction is executed immediately, even if the axis is being
moved at the time. If a new independent move instruction is executed before the
last one is finished, the new instruction immediately overrides the old one.
Instruction Description
IndAMove IndAMove (Independent Absolute position Movement) change an
axis to independent mode and move the axis to a specified position.
IndCMove IndCMove (Independent Continuous Movement) change an axis to
independent mode and start moving the axis continuously at a spe-
cified speed.
IndDMove IndDMove (Independent Delta position Movement) change an axis to
independent mode and move the axis a specified distance.
IndRMove IndRMove (Independent Relative position Movement) change a rota-
tional axis to independent mode and move the axis to a specific pos-
ition within one revolution.
Because the revolution information in the position is omitted,
IndRMove never rotates more than one axis revolution.
IndReset IndReset is used to change an independent axis back to normal
mode.
IndReset can move the measurement system for a rotational axis a
number of axis revolutions. The resolution of positions is decreased
when moving away from logical position 0, and winding the axis back
would take time. By moving the measurement system the resolution
is maintained without physically winding the axis back.
Both the independent axis and the robot must stand still when calling
IndReset.
Functions
This is a brief description of each function in Independent Axis. For more
information, see respective function in Technical reference manual - RAPID
Instructions, Functions and Data types.
Function Description
IndInpos IndInposindicates whether an axis has reached the selected position.
IndSpeed IndSpeed indicates whether an axis has reached the selected speed.
Reset an axis
This is an example of how to reset the measurement system for axis 1 in station
A. The measurement system will change a whole number of revolutions, so it is
close to zero (±180°).
IndReset Station_A, 1 \RefNum:=0 \Short;
6.2.1 Overview
Purpose
Tool Control can be used to control a servo tool, for example in a spot weld
application. Tool Control makes it possible to close the tool to a specific plate
thickness and force, and maintain the force during the process until the tool is
requested to be opened.
What is included
Tool Control gives you access to:
• RAPID instructions to open, close and calibrate servo tools
• RAPID instructions for tuning system parameter values
• RAPID functions for checking status of servo tools
• system parameters to configure servo tools
Basic approach
This is the general approach for using Tool Control.
1 Configure and calibrate the servo tool.
2 Perform a force calibration.
3 Create the RAPID program.
Prerequisites
A servo tool is an additional axis. Required hardware, such as drive module and
measurement board, is specified in Application manual - Additional axes.
Tip
A variable in your RAPID program can keep track of the tip wear and inform you
when the tips needs to be replaced.
disconnected. This calibration method will handle big position adjustments of the
tool.
Tip
Tool change calibration is most commonly used together with the RobotWare
option Servo Tool Change.
6.2.4 Supervision
Motion supervision
During the position control phase of the closing/opening, motion supervision is
active for the servo tool to detect if the arm collides or gets stuck. A collision will
cause a motion error and the motion will be stopped.
During the force control phase, the motion supervision will supervise the tool arm
position not to exceed a certain distance from the expected contact position. See
parameter Max Force Control Position Error in Supervision Type on page 256.
Maximum torque
There is a maximum motor torque for the servo tool that never will be exceeded
in order to protect the tool from damage. If the force is programmed out of range
according to the tools force-torque table, the output force will be limited to this
maximum allowed motor torque and a motion warning will be logged. See parameter
Max Force Control Motor Torque in SG Process on page 253.
Speed limit
During the force control phase there is a speed limitation. The speed limitation will
give a controlled behavior of the tool even if the force control starts before the tool
is completely closed. See Speed limit 1- 6 in Force Master Control on page 254.
Instructions
Instruction Description
STClose Close the servo tool with a predefined force and thickness.
STOpen Open the servo tool.
STCalib Calibrate the servo tool.
An argument determines which type of calibration will be performed:
• \ToolChg for tool change calibration
• \TipChg for tip change calibration
• \TipWear for tip wear calibration
STTune Tune motion parameters for the servo tool. A temporary value can be
set for a parameter specified in the instruction.
STTuneReset Reset tuned motion parameters for the servo tool. Cancel the effect of
all STTune instructions.
Functions
Function Description
STIsClosed Test if the servo tool is closed.
STIsOpen Test if the servo tool is open.
STIsCalib Tests if a servo tool is calibrated.
STCalcTorque Calculate the motor torque for a servo tool.
STCalcForce Calculate the force for a servo tool.
STIsServoTool Tests if a mechanical unit is a servo tool.
STIsIndGun Tests if servo tool is in independent mode.
Data types
Tool Control includes no RAPID data types.
SG Process
These parameters belong to the type SG Process in the topic Motion.
SG Process is used to configure the behavior of a servo gun (or other servo tool).
Parameter Description
Close Time Adjust Adjustment of the ordered minimum close time of the gun.
Close Position Adjust Adjustment of the ordered position (plate thickness) where force
control should start, when closing the gun.
Force Ready Delay Delays the close ready event after achieving the ordered force.
Max Force Control Max allowed motor torque for force control. Commanded force will
Motor Torque be reduced, if the required motor torque is higher than this value.
Post-synchronization Anticipation of the open ready event. This can be used to synchron-
Time ize the gun opening with the next robot movement.
Calibration Mode Defines the number of times the servo gun closes during a tip wear
calibration.
Calibration Force Low The minimum tip force used during a tip wear calibration.
Calibration Force High The maximum tip force used during a tip wear calibration.
Calibration Time The time that the servo gun waits in closed position during calibra-
tion.
Number of Stored Defines the number of points in the force-torque relation specified
Forces in Tip Force 1 - 10 and Motor Torque 1 - 10.
Tip Force 1 - 10 Tip Force 1 defines the tip force that corresponds to the motor torque
in Motor Torque 1.
Tip Force 2 corresponds to Motor Torque 2, etc.
Motor Torque 1- 10 Motor Torque 1 defines the motor torque that corresponds to the
tip force in Tip Force 1.
Motor Torque 2 corresponds to Tip Force 2, etc.
Squeeze Position 1 - Defines the joint position at each force level in the force calibration
10 table.
Soft Stop Timeout Defines how long the force will be maintained if a soft stop occurs
during constant force.
Force Master
These parameters belong to the type Force Master in the topic Motion.
Force Master is used to define how a servo tool, typically a servo gun, behaves
during force control. The parameters only affect the servo tool when it is in force
control mode.
Parameter Description
References Bandwidth The frequency limit for the low pass filter for reference values.
Use ramp time Determines if the ramping of the tip force should use a constant
time or a constant gradient.
Ramp when Increase Determines how fast force is built up while closing the tool when
Force Use ramp time is set to No.
Ramp time Determines how fast force is built up while closing the tool when
Use ramp time is set to Yes.
Collision LP Bandwidth Frequency limit for the low pass filter used for tip wear calibration.
Collision Alarm Torque Determines how hard the tool tips will be pressed together during
the first gun closing of new tips calibrations and tool change cal-
ibrations.
Collision Speed Determines the servo gun speed during the first gun closing of
new tips calibrations and tool change calibrations.
Collision Delta Position Defines the distance the servo tool has gone beyond the contact
position when the motor torque has reached the value specified
in Collision Alarm Torque.
Max pos err. closing Determines how close to the ordered plate thickness the tool tips
must be before the force control starts.
Delay ramp Delays the starting of torque ramp when force control is started.
Ramp to real contact Determines if the feedback position should be used instead of
reference position when deciding the contact position.
Arm
These parameters belong to the type Arm in the topic Motion.
The type Arm defines the characteristics of an arm.
Parameter Description
Upper Joint Bound Defines the upper limit of the working area for the joint.
Lower Joint Bound Defines the lower limit of the working area for the joint.
Acceleration Data
These parameters belong to the type Acceleration Data in the topic Motion.
Acceleration Data is used to specify some acceleration characteristics for axes
without any dynamic model.
Parameter Description
Nominal Acceleration Worst case motor acceleration.
Nominal Deceleration Worst case motor deceleration.
Acceleration Derivate Ratio Indicates how fast the acceleration can be increased.
Deceleration Derivate Ratio Indicates how fast the deceleration can be increased.
Motor Type
These parameters belong to the type Motor Type in the topic Motion.
Motor Type is used to describe characteristics for a motor.
Parameter Description
Pole Pairs Defines the number of pole pairs for the motor.
Inertia The inertia of the motor, including the resolver but excluding the
brake.
Stall Torque The continuous stall torque, i.e. the torque the motor can produce at
no speed and during an infinite time.
ke Phase to Phase Nominal voltage constant. The induced voltage (phase to phase) that
corresponds to the speed 1 rad/s.
Max Current Max current without irreversible magnetization.
Phase Resistance Nominal winding resistance per phase at 20 degrees Celsius.
Phase Inductance Nominal winding inductance per phase at zero current.
Motor Calibration
These parameters belong to the type Motor Calibration in the topic Motion.
Motor Calibration is used to calibrate a motor.
Parameter Description
Commutator Offset Defines the position of the motor (resolver) when the rotor is in the
electrical zero position relative to the stator.
Calibration Offset Defines the position of the motor (resolver) when it is in the calibration
position.
Supervision Type
These parameters belong to the type Supervision Type in the topic Motion.
Supervision Type is used for continuos supervision of position, speed and torque.
Parameter Description
Max Force Control When a servo gun is in force control mode it is not allowed to move
Position Error more than the distance specified in Max Force Control Position Error.
This supervision will protect the tool if, for instance, one tip is lost.
Max Force Control Speed error factor during force control.
Speed Limit If the speed limits, defined in the type Force Master Control, multiplied
with Max Force Control Speed Limit is exceeded, all movement is
stopped.
Transmission
These parameters belong to the type Transmission in the topic Motion.
Transmission is used to define the transmission gear ratio between a motor and
its axis.
Parameter Description
Rotating Move Defines if the axis is rotating or linear.
Transmission Gear Ratio Defines the transmission gear ratio between motor and joint.
Note
Navigate to the RobotWare installation folder from the RobotStudio Add-Ins tab,
by right-clicking on the installed RobotWare version in the Add-Ins browser and
selecting Open Package Folder.
After service / repair the revolution counter must be updated since the position
has been lost, see Update revolution counter on page 260.
Fine calibration
Fine calibration must be performed when installing a new servo tool, or if the servo
tool axis is in state ‘Not Calibrated’.
For this, it is recommended to create a service routine using the following
instructions:
STCalib "ToolName" \TipChg;
STCalib "ToolName" \TipWear;
PROC rWeld()
! Request weld start from weld timer
SetDO doWeldstart,1;
! Wait until weld is performed
WaitDI diWeldready,1;
SetDO doWeldstart,0;
ENDPROC
7.1.1 Overview
Purpose
Path Recovery is used to store the current movement path, perform some robot
movements and then restore the interrupted path. This is useful when an error or
interrupt occurs during the path movement. An error handler or interrupt routine
can perform a task and then recreate the path.
For applications like arc welding and gluing, it is important to continue the work
from the point where the robot left off. If the robot started over from the beginning,
then the work piece would have to be scrapped.
If a process error occurs when the robot is inside a work piece, moving the robot
straight out might cause a collision. By using the path recorder, the robot can
instead move out along the same path it came in.
What is included
The RobotWare option Path Recovery gives you access to:
• instructions to suspend and resume the coordinated synchronized movement
mode on the error or interrupt level.
• a path recorder, with the ability to move the TCP out from a position along
the same path it came.
Limitations
The instructions StorePath and RestoPath only handles movement path data.
The stop position must also be stored.
Movements using the path recorder has to be performed on trap-level, i.e.
StorePath has to be executed prior to PathRecMoveBwd.
Data types
This is a brief description of each data type in Path Recovery. For more information,
see the respective data type in Technical reference manual - RAPID Instructions,
Functions and Data types.
Data type Description
pathrecid pathrecid is used to identify a breakpoint for the path recorder.
Instructions
This is a brief description of each instruction in Path Recovery. For more
information, see the respective instruction in Technical reference manual - RAPID
Instructions, Functions and Data types.
Instruction Description
StorePath StorePath is used to store the movement path being executed when
an error or interrupt occurs.
RestoPath RestoPath is used to restore the path that was stored by StorePath.
PathRecStart PathRecStart is used to start recording the robot’s path. The path
recorder will store path information during execution of the robot
program.
PathRecStop PathRecStop is used to stop recording the robot's path.
PathRecMoveBwd PathRecMoveBwd is used to move the robot backwards along a recor-
ded path.
PathRecMoveFwd PathRecMoveFwd is used to move the robot back to the position
where PathRecMoveBwd was executed.
It is also possible to move the robot partly forward by supplying an
identifier that has been passed during the backward movement.
SyncMoveSuspend SyncMoveSuspend is used to suspend synchronized movements
mode and set the system to independent movement mode.
SyncMoveResume SyncmoveResume is used to go back to synchronized movements
from independent movement mode.
Functions
This is a brief description of each function in Path Recovery. For more information,
see the respective function in Technical reference manual - RAPID Instructions,
Functions and Data types.
Function Description
PathRecValidBwd PathRecValidBwd is used to check if the path recorder is active and
if a recorded backward path is available.
PathRecValidFwd PathRecValidFwd is used to check if the path recorder can be used
to move forward. The ability to move forward with the path recorder
implies that the path recorder must have been ordered to move
backwards earlier.
Basic approach
This is the general approach for storing the current path:
1 At the start of an error handler or interrupt routine:
stop the movement
store the movement path
store the stop position
2 At the end of the error handler or interrupt routine:
move to the stored stop position
restore the movement path
start the movement
Example
This is an example of how to use Path Recovery in error handling. First the path
and position is stored, the error is corrected and then the robot is moved back in
position and the path is restored.
MoveL p100, v100, z10, gun1;
...
ERROR
IF ERRNO=MY_GUN_ERR THEN
gun_cleaning();
ENDIF
...
PROC gun_cleaning()
VAR robtarget p1;
...
!Move the robot back to the stored position
MoveL p1, v100, fine, gun1;
PROC SyncMove()
MoveJ p100, v1000, z50, tool1;
WaitSyncTask sync1, all_tasks;
MoveL p101, v500, fine, tool1;
SyncMoveOn sync2, all_tasks;
MoveL p102\ID:=10, v300, z10, tool1 \WObj:=wobj_stn1;
MoveC p103, p104\ID:=20, v300, z10, tool1 \WObj:=wobj_stn1;
MoveL p105\ID:=30, v300, z10, tool1 \WObj:=wobj_stn1;
PROC gun_cleaning()
VAR robtarget p1;
!Store the movement path and current position
! and keep syncronized mode.
StorePath \KeepSync;
p1 := CRobT(\Tool:=tool1 \WObj:=wobj_stn1);
!Correct the error
MoveL pclean1 \ID:=50, v100, fine, tool1 \WObj:=wobj_stn1;
...
!Move the robot back to the stored position
MoveL p1 \ID:=60, v100, fine, tool1 \WObj:=wobj_stn1;
!Restore the path and start the movement
RestoPath;
StartMove;
RETRY;
ENDPROC
ENDMODULE
T_ROB1
PROC gun_cleaning()
VAR robtarget p1;
!Store the movement path and current position
! and keep syncronized mode.
StorePath \KeepSync;
p1 := CRobT(\Tool:=tool1 \WObj:=wobj_stn1);
!Move in synchronized motion mode
MoveL p104 \ID:=50, v100, fine, tool1 \WObj:=wobj_stn1;
SyncMoveSuspend;
!Move in independent mode
MoveL pclean1, v100, fine, tool1;
...
!Move the robot back to the stored position
SyncMoveResume;
MoveL p1 \ID:=60, v100, fine, tool1 \WObj:=wobj_stn1;
!Restore the path and start the movement
RestoPath;
StartMove;
RETRY;
ENDPROC
T_ROB2
PROC gun_cleaning()
VAR robtarget p2;
!Store the movement path and current position.
StorePath \KeepSync;
p2 := CRobT(\Tool:=tool2 \WObj:=wobj_stn1);
!Move in synchronized motion mode
MoveL p104 \ID:=50, v100, fine, tool2 \WObj:=wobj_stn1;
SyncMoveSuspend;
!Move in independent mode
MoveL pclean2 v100, fine, tool2;
...
!Move the robot back to the stored position.
SyncMoveResume;
!Move in synchronized motion mode
MoveL p2 \ID:=60, v100, fine, tool2 \WObj:=wobj_stn1;
!Restore the path and start the movement
RestoPath;
StartMove;
RETRY;
ENDPROC
T_STN1
PROC gun_cleaning()
VAR jointtarget resume_angle;
!Store the movement path and current angle.
StorePath \KeepSync;
resume_angle := CJointT();
!Move in synchronized motion mode
MoveExtJ p1clean_angle \ID:=50, vrot100, fine;
SyncMoveSuspend;
! Move in independent mode
MoveExtJ p2clean_angle,vrot, fine;
...
!Move the robot back to the stored position.
SyncMoveResume;
! Move in synchronized motion mode
MoveExtJ resume_angle \ID:=60, vrot100, fine;
!Restore the path and start the movement
RestoPath;
StartMove;
RETRY;
ENDPROC
xx0400000828
Note
When a MultiMove system is in synchronized mode all tasks must use ToolOffs
if a tool is going to be lifted.
However if you only want to lift one tool, set ToolOffs=[0,0,0] in the other
tasks.
Simple example
If an error occurs between p1 and p4, the robot will return to p1 where the error
can be resolved. When the error has been resolved, the robot continues from where
the error occurred.
Continues on next page
Application manual - Controller software OmniCore 271
3HAC066554-001 Revision: T
© Copyright 2019-2025 ABB. All rights reserved.
7 RAPID program features
7.1.4 Path recorder
Continued
When p4 is reached without any error, the path recorder is switched off. The robot
then moves from p4 to p5 without the path recorder.
...
VAR pathrecid start_id;
...
MoveL p1, vmax, fine, tool1;
PathRecStart start_id;
MoveL p2, vmax, z50, tool1;
MoveL p3, vmax, z50, tool1;
MoveL p4, vmax, fine, tool1;
PathRecStop \Clear;
MoveL p5, vmax, fine, tool1;
ERROR
StorePath;
PathRecMoveBwd;
! Fix the problem
PathRecMoveFwd;
RestoPath;
StartMove;
RETRY;
ENDIF
...
Complex example
In this example, the path recorder is used for two purposes:
• If an error occurs, the operator can choose to back up to p1 or to p2. When
the error has been resolved, the interrupted movement is resumed.
• Even if no error occurs, the path recorder is used to move the robot from p4
to p1. This technique is useful when the robot is in a narrow position that is
difficult to move out of.
Note that if an error occurs during the first move instruction, between p1 and p2,
it is not possible to go backwards to p2. If the operator choose to go back to p2,
PathRecValidBwd is used to see if it is possible. Before the robot is moved forward
to the position where it was interrupted, PathRecValidFwd is used to see if it is
possible (if the robot never backed up it is already in position).
...
VAR pathrecid origin_id;
VAR pathrecid corner_id;
VAR num choice;
...
MoveJ p1, vmax, z50, tool1;
PathRecStart origin_id;
MoveJ p2, vmax, z50, tool1;
PathRecStart corner_id;
MoveL p3, vmax, z50, tool1;
MoveL p4, vmax, fine, tool1;
StorePath;
PathRecMoveBwd \ID:=origin_id
\ToolOffs:=[0,0,10];
RestoPath;
PathRecStop \Clear;
ClearPath;
StartMove;
ERROR
StorePath;
IF choice=4 THEN
! Back up to p1
PathRecMoveBwd \ID:=origin_id
\ToolOffs:=[0,0,10];
ELSEIF choice=5 THEN
! Verify that it is possible to back to p2,
IF PathRecValidBwd(\ID:=corner_id) THEN
! Back up to p2
PathRecMoveBwd \ID:=corner_id
\ToolOffs:=[0,0,10];
ENDIF
ENDIF
...
MoveL p1, vmax, z50, tool1;
PathRecStart id1;
MoveL p2, vmax, z50, tool1;
PathRecStop;
MoveL p3, vmax, z50, tool1;
MoveL p4, vmax, z50, tool1;
MoveL p2, vmax, z50, tool1;
PathRecStart id2;
MoveL p5, vmax, z50, tool1;
StorePath;
PathRecMoveBwd \ID:=id1;
RestoPath;
...
PROC main()
Init;
WHILE TRUE DO
DoMovement;
ENDWHILE
ENDPROC
PROC Init()
CONNECT intErrProcess WITH Surveil;
ISignalDO ProcessErr, 1, intErrProcess;
ENDPROC
PROC DoMovement()
MoveL StartPos,v200,fine,Tooldata_1;
PathRecStart Id1;
MoveL Target_20,v100,z0,Tooldata_1;
MoveL Target_30,v100,z0,Tooldata_1;
MoveL Target_50,v100,z0,Tooldata_1;
MoveL Target_70,v100,z0,Tooldata_1;
MoveL Target_80,v100,z0,Tooldata_1;
MoveL Target_100,v100,z0,Tooldata_1;
MoveL Target_110,v100,z0,Tooldata_1;
ENDPROC
PROC SyncMove()
WaitSyncTask sync1, all_tasks;
MoveJ p100, v1000, z50, tool1;
! Start recording
PathRecStart HomeROB1;
MoveL p101, v500, fine, tool1;
SyncMoveOn sync2, all_tasks;
MoveL p102\ID:=10, v300, z10, tool1 \WObj:=wobj_stn1;
Continues on next page
Application manual - Controller software OmniCore 275
3HAC066554-001 Revision: T
© Copyright 2019-2025 ABB. All rights reserved.
7 RAPID program features
7.1.4 Path recorder
Continued
ENDPROC
PROC SyncMove()
WaitSyncTask sync1, all_tasks;
MoveJ p200, v1000, z50, tool2;
PathRecStart HomeROB2;
MoveL p201, v500, fine, tool2;
SyncMoveOn sync2, all_tasks;
MoveL p202\ID:=10, v300, z10, tool2 \WObj:=wobj_stn1;
MoveC p203, p204\ID:=20, v300, z10, tool2 \WObj:=wobj_stn1;
MoveL p205\ID:=30, v300, z10, tool2 \WObj:=wobj_stn1;
MoveC p206, p201\ID:=40, v300, fine, tool2 \WObj:=wobj_stn1;
PathRecStop \Clear;
SyncMoveOff sync3;
MoveL p299, v1000, fine, tool2;
ERROR
IF ERRNO = ERR_PATH_STOP THEN
gun_move_out();
ENDIF
UNDO
SyncMoveUndo;
ENDPROC
PROC gun_move_out()
IF IsSyncMoveOn() THEN
StorePath \KeepSync;
ELSE
StorePath;
ENDIF
! Move this robot backward to p201
PathRecMoveBwd \ToolOffs:=[0,0,10];
! Wait for the other gun to get clean
PathRecMoveFwd \ToolOffs:=[0,0,10];
!Restore the path and start the movement
RestoPath;
StartMove;
RETRY;
ENDPROC
ENDMODULE
SyncMove;
...
ENDPROC
PROC SyncMove()
WaitSyncTask sync1, all_tasks;
MoveExtJ angle_neg20, vrot50, fine;
PathRecStart HomeSTN1;
SyncMoveOn sync2, all_tasks;
MoveExtJ angle_20\ID:=10, vrot100, z10;
MoveExtJ angle_160\ID:=20, vrot100, z10;
MoveExtJ angle_200\ID:=30, vrot100, z10;
MoveExtJ angle_340\ID:=40, vrot100, fine;
PathRecStop \Clear;
SyncMoveOff sync3;
ERROR
IF ERRNO = ERR_PATH_STOP THEN
gun_move_out();
ENDIF
UNDO
SyncMoveUndo;
ENDPROC
PROC gun_move_out()
!Store the movement
IF IsSyncMoveOn() THEN
StorePath \KeepSync;
ELSE
StorePath;
ENDIF
!Move the manipulator backward to angle_neg 20
PathRecMoveBwd \ToolOffs:=[0,0,0];
...
!Wait for the gun to get clean
PathRecMoveFwd \ToolOffs:=[0,0,0];
RestoPath;
StartMove;
RETRY;
ENDPROC
Purpose
The purpose of the option Multitasking is to be able to execute more than one
program at a time.
Examples of applications to run in parallel with the main program:
• Continuous supervision of signals, even if the main program has stopped.
This can in some cases take over the job of a PLC. However, the response
time will not match that of a PLC.
• Operator input from the FlexPendant while the robot is working.
• Control and activation/deactivation of external equipment.
Basic description
Up to 20 tasks can be run at the same time. This includes tasks from add-ins and
options, that might be running in the background.
Each task consists of one program (with several program modules) and several
system modules. The modules are local in the respective task.
en0300000517
Variables and constants are local in the respective task, but persistents are not.
Every task has its own trap handling and event routines are triggered only on its
own task system states.
What is included
The RobotWare option Multitasking gives you access to:
• The possibility to run up to 20 programs in parallel (one per task).
• The system parameters: The type Task and all its parameters.
• The data types: taskid, syncident, and tasks.
• The instruction: WaitSyncTask.
Note
Basic approach
This is the basic approach for setting up Multitasking. For more information,
seeRAPID components on page 283.
1 Define the tasks you need.
2 Write RAPID code for each task.
3 Specify which modules to load in each task.
Task
These parameters belongs to the type Task in the topic Controller.
Parameter Description
Task The name of the task.
Note that the name of the task must be unique. This means that it cannot
have the same name as the mechanical unit, and no variable in the
RAPID program can have the same name.
Note that editing the task entry in the configuration editor and changing
the task name will remove the old task and add a new one. This means
that any program or module in the task will disappear after a restart with
these kind of changes.
Task in fore- Used to set priorities between tasks.
ground Task in foreground contains the name of the task that should run in the
foreground of this task. This means that the program of the task, for which
the parameter is set, will only execute if the foreground task program is
idle.
If Task in foreground is set to empty string for a task, it runs at the highest
level.
Type Controls the start/stop and system restart behavior:
• Normal (NORMAL) - The task program is manually started and
stopped (e.g. from the FlexPendant). The task stops at emergency
stop.
• Static (STATIC) - At a restart the task program continues from
where the it was. The task program is normally not stopped by the
FlexPendant or by emergency stop.
• Semistatic (SEMISTATIC) - The task program restarts from the
beginning at restart. The task program is normally not stopped by
the FlexPendant or by emergency stop.
A task that controls a mechanical unit must be of the type normal.
Main entry The name of the start routine for the task program.
Check unre- This parameter should be set to NO if the system is to accept unsolved
solved refer- references in the program while linking a module, otherwise set to YES.
ences
TrustLevel TrustLevel defines the system behavior when a static or semistatic task
program is stopped (e.g. due to error):
• SysFail - If the program of this task stops, the system will be set
to SYS_FAIL. This will cause the programs of all NORMAL tasks
to stop (static and semistatic tasks will continue execution if pos-
sible). No jogging or program start can be made. A restart is re-
quired.
• SysHalt -If the program of this task stops, the programs of all
normal tasks will be stopped. If "motors on" is set, jogging is
possible, but not program start. A restart is required.
• SysStop - If the program of this task stops, the programs of all
normal tasks will be stopped but are restartable. Jogging is also
possible.
• NoSafety - Only the program of this task will stop.
Parameter Description
MotionTask Indicates whether the task program can control robot movement with
RAPID move instructions.
Only one task can have MotionTask set to YES unless the option Mul-
tiMove is used.
Data types
This is a brief description of each data type in Multitasking. For more information,
see the respective data type in Technical reference manual - RAPID Instructions,
Functions and Data types.
Data type Description
taskid taskid identify available tasks in the system.
This identity is defined by the system parameter Task, and cannot be
defined in the RAPID program. However, the data type taskid can be
used as a parameter when declaring a routine.
For code example, see taskid on page 294.
syncident syncident is used to identify the waiting point in the program, when
using the instruction WaitSyncTask.
The name of the syncident variable must be the same in all task pro-
grams.
For code example, see WaitSyncTask example on page 288.
tasks A variable of the data type tasks contains names of the tasks that will
be synchronized by the instruction WaitSyncTask.
For code example, see WaitSyncTask example on page 288.
Instructions
This is a brief description of each instruction in Multitasking. For more information,
see the respective instruction in Technical reference manual - RAPID Instructions,
Functions and Data types.
Instruction Description
WaitSyncTask WaitSyncTask is used to synchronize several task programs at a special
point in the program.
A WaitSyncTask instruction will delay program execution and wait for
the other task programs. When all task programs have reached the point,
the respective program will continue its execution.
For code example, seeWaitSyncTask example on page 288.
Functions
This is a brief description of each function in Multitasking. For more information,
see the respective function in Technical reference manual - RAPID Instructions,
Functions and Data types.
Function Description
TestAndSet TestAndSet is used, together with a boolean flag, to ensure that only one
task program at the time use a specific RAPID code area or system re-
source.
For code example, seeExample with flag and TestAndSet on page 292.
TaskRunMec Check if the task program controls any mechanical unit (robot or other
unit).
For code example, seeTest if task controls mechanical unit on page 293.
TaskRunRob Check if the task program controls any robot with TCP.
For code example, seeTest if task controls mechanical unit on page 293.
Tip
When a program is saved, the current value of a persistent variable will be used
as initial value in the future. If this is not desired, reset the persistent variable
directly after the communication.
Two techniques
Some applications have task programs that execute independently of other tasks,
but often task programs need to know what other tasks are doing.
A task program can be made to wait for another task program. This is accomplished
either by setting a persistent variable that the other task program can poll, or by
setting a signal that the other task program can connect to an interrupt.
Polling
This is the easiest way to make a task program wait for another, but the performance
will be the slowest. Persistent variables are used together with the instructions
WaitUntil or WHILE.
If the instruction WaitUntil is used, it will poll internally every 100 ms.
CAUTION
Do not poll more frequently than every 100 ms. A loop that polls without a wait
instruction can cause overload, resulting in lost contact with the FlexPendant.
Polling example
Main task program:
MODULE module1
PERS bool startsync:=FALSE;
PROC main()
startsync:= TRUE;
...
ENDPROC
ENDMODULE
WaitUntil startsync;
! This is the point where the execution
! continues after startsync is set to TRUE
...
ENDPROC
ENDMODULE
Interrupt
By setting a signal in one task program and using an interrupt in another task
program, quick response is obtained without the work load caused by polling.
The drawback is that the code executed after the interrupt must be placed in a trap
routine.
Interrupt example
Main task program:
MODULE module1
PROC main()
SetDO do1,1;
...
ENDPROC
ENDMODULE
PROC main()
CONNECT intno1 WITH wait_trap;
ISignalDO do1, 1, intno1;
WHILE TRUE DO
WaitTime 10;
ENDWHILE
ENDPROC
TRAP wait_trap
! This is the point where the execution
! continues after do1 is set in main task
...
IDelete intno1;
ENDTRAP
ENDMODULE
WaitSyncTask example
In this example, the background task program calculates the next object's position
while the main task program handles the robots work with the current object.
The background task program may have to wait for operator input or I/O signals,
but the main task program will not continue with the next object until the new
position is calculated. Likewise, the background task program must not start the
next calculation until the main task program is done with one object and ready to
receive the new value.
Main task program:
MODULE module1
PERS pos object_position:=[0,0,0];
PERS tasks task_list{2} := [["MAIN"], ["BACK1"]];
VAR syncident sync1;
PROC main()
VAR pos position;
WHILE TRUE DO
!Wait for calculation of next object_position
WaitSyncTask sync1, task_list;
position:=object_position;
!Call routine to handle object
handle_object(position);
ENDWHILE
ENDPROC
PROC main()
WHILE TRUE DO
PROC calculate_position()
...
object_position:= ...
ENDPROC
ENDMODULE
What is a dispatcher?
A digital signal can be used to indicate when another task should do something.
However, it cannot contain information about what to do.
Instead of using one signal for each routine, a dispatcher can be used to determine
which routine to call. A dispatcher can be a persistent string variable containing
the name of the routine to execute in another task.
Dispatcher example
In this example, the main task program calls routines in the background task by
setting routine_string to the routine name and then setting do5 to 1. In this
way, the main task program initialize that the background task program should
execute the routine clean_gun first and then routine1.
Main task program:
MODULE module1
PERS string routine_string:="";
PROC main()
!Call clean_gun in background task
routine_string:="clean_gun";
SetDO do5,1;
WaitDO do5,0;
PROC main()
WaitDO do5,1;
%routine_string%;
SetDO do5,0;
ENDPROC
PROC clean_gun()
...
ENDPROC
PROC routine1()
...
ENDPROC
ENDMODULE
Note
For a task to have control of a robot, the parameter Type must be set to normal,
and the type MotionTask must be set to YES. See System parameters on page 281.
[Link] taskid
taskid syntax
A task always has a predefined variable of type taskid that consists of the name
of the task and the suffix "Id". For example, the variable name of the MAIN task is
MAINId.
Code example
In this example, the module PART_A is saved in the task BACK1, even though the
Save instruction is executed in another task.
BACK1Id is a variable of type taskid that is automatically declared by the system.
Save \TaskRef:=BACK1Id, "PART_A"
\FilePath:="HOME:/DOORDIR/PART_A.MOD";
Example
MODULE background_module
PROC main()
WaitTime 1;
IF di1=1 THEN
...
ENDIF
ENDPROC
ENDMODULE
If there was no wait instruction in this example and di1 was 0, then this background
task would use up the computer power with a loop doing nothing.
Purpose
The purpose of FTP&SFTP Client is to enable the robot to access remote mounted
disks, for example a hard disk drive on a PC.
Here are some examples of applications:
• Backup to a remote computer.
• Load programs from a remote computer.
Note
The controller has no antivirus software to check the data transferred to/from
the controller via the remote mounted disk. It is up to the customer to secure the
external data storage.
Network illustration
External computer
Ethernet TCP/IP
xx1900001202
Description
Several robots can access the same computer over an Ethernet network.
The FTP/SFTP mounted device is accessed by its name, as specified in the system
parameter Name.
Once the FTP/SFTP protocol is configured, the remote computer can be accessed
in the same way as the controller's internal hard disk.
What is included
The RobotWare option FTP&SFTP client gives you access to the system parameter
types FTP Client and SFTP Client.
Basic approach
This is the general approach for using FTP&SFTP client.
1 Configure an FTP/SFTP protocol to point out a disk or directory on a remote
computer that will be accessible from the robot.
2 Read and write to the remote computer in the same way as with the
controller's internal hard disk.
SFTP supports the following servers:
• Rebex version 1.0.3
• CompleteFTP version 11.0.0
• Cerberus version [Link]
In certain SFTP servers, as Complete SFTP server, there is a configuration setting,
Timeout for idle sessions, which defines the time that the connection can be idle.
If no client requests are made during this time interval, the connection is closed.
Setting the value as No timeout will keep the connection alive, even though client
requests are not made.
Requirements
The external computer must have:
• TCP/IP stack
• FTP Server or SFTP Server
Tip
For Internet Information Services (IIS) in Windows, the directory listing style is
configurable.
Limitations
• The maximum length of the path is 248 characters. Note that for backup and
restore, the names of all the created directories have to be included in the
max path.
System parameters
See Technical reference manual - System parameters.
Purpose
NFS Client allows the robot to access remote mounted disks, such as a hard disk
drive on a PC. Supported NFS versions are 2 and 3.
Here are a few application examples:
• Backup to a remote computer.
• Load programs from a remote computer.
Note
The controller has no antivirus software to check the data transferred to/from
the controller via the remote mounted disk. It is up to the customer to secure the
external data storage.
Description
Several robots can access the same computer over an Ethernet network.
The NFS mounted device is accessed by its name, as specified in the Name system
parameter.
Once the NFS application protocol is configured, the remote computer can be
accessed in the same way as the controller's internal hard disk.
What is included
The RobotWare option NFS Client gives you access to the system parameter type
Application protocol and its parameters: Name, Type, Transmission protocol, Server
address, Server type, NFS version,Trusted, Local path, Server path, User ID, Group
ID, and Show Device.
Basic approach
This is the general approach for using NFS Client.
1 Configure an NFS protocol to point out a disk or directory on a remote
computer that will be accessible from the robot.
2 Read and write to the remote computer in the same way as with the
controller's internal hard disk.
Prerequisites
The external computer must have:
• TCP/IP stack
• NFS Server
Limitations
When using the NFS Client the maximum length for a file path including the file
name is 248 characters. The whole path is included in the 248 characters, not only
the server path. When ordering a backup towards a mounted disk all the directories
created by the backup has to be included in the max path.
Overview
RobotStudio is the programming, configuration and commissioning tool for
OmniCore controllers. RobotStudio acts directly on the active data in the controller
and enables activities like RAPID programming, update/booting of the systems
software and system configuration. Connecting RobotStudio directly to the local
management port is enabled by default, but connecting RobotStudio over a public
network requires this option RobotStudio Connect.
10 Engineering tools
10.1 RobotWare Add-In
Purpose
The option RobotWare Add-In is required for licensed Add-Ins.
See Application manual - RobotWare add-ins.
10.2.1 Overview
Purpose
The purpose of Path Corrections is to be able to make online adjustments of the
robot path according to input from sensors. With the set of instructions that Path
Corrections offers, the robot path can be compared and adjusted with the input
from sensors.
What is included
The RobotWare option Path Corrections gives you access to:
• the data type corrdescr
• the instructions CorrCon, CorrDiscon, CorrClear and CorrWrite
• the function CorrRead
Basic approach
This is the general approach for setting up Path Corrections. For a detailed example
of how this is done, see Code example on page 310.
1 Declare the correction generator.
2 Connect the correction generator.
3 Define a trap routine that determines the offset and writes it to the correction
generator.
4 Define an interrupt to frequently call the trap routine.
5 Call a move instruction using the correction. The path will be repeatedly
corrected.
Note
The instruction CorrWrite is intended with low speed and moderate values of
correction. Too aggressive values will be clamped. The correction values should
be tested in RobotStudio to confirm the performance.
Note
If two or more move instructions are called after each other with the \Corr switch,
it is important to know that all \Corr offsets are reset each time the robot starts
from a finepoint. So, when using finepoints, on the second Move instruction the
controller does not know that the path already has an offset. To avoid any strange
behavior it is recommended only to use zones together with the \Corr switch
and avoid finepoints.
Limitations
It is possible to connect several correction generators at the same time (for instance
one for corrections along the Z axis and one for corrections along the Y axis).
Data types
This is a brief description of each data type in the option Path Corrections. For
more information, see the respective data type in Technical reference
manual - RAPID Instructions, Functions and Data types.
Data type Description
corrdescr corrdescr is a correction generator descriptor that is used as the
reference to the correction generator.
Instructions
This is a brief description of each instruction in the option Path Corrections. For
more information, see the respective instruction in Technical reference
manual - RAPID Instructions, Functions and Data types.
Instruction Description
CorrCon CorrCon activates path correction. Calling CorrCon will connect a
correction generator. Once this connection is made, the path can be
continuously corrected with new offset inputs (for instance from a
sensor).
CorrDiscon CorrDiscon deactivates path correction. Calling CorrDiscon will
disconnect a correction generator.
CorrClear CorrClear deactivate path correction. Calling CorrClear will dis-
connect all correction generators.
CorrWrite CorrWrite sets the path correction values. Calling CorrWrite will
set the offset values to a correction generator.
Functions
This is a brief description of each function in the option Path Corrections. For more
information, see the respective function in Technical reference manual - RAPID
Instructions, Functions and Data types.
Function Description
CorrRead CorrRead reads the total correction made by a correction generator.
Interrupts
To create programs using Path Corrections, you need to be able to handle
interrupts. For more information on interrupts, see Technical reference
manual - RAPID Overview.
Program code
VAR intnum int_no1;
VAR corrdescr id;
VAR pos sens_val;
PROC PathRoutine()
!Connect to the correction generator
CorrCon id;
!Execute correction
CorrWrite id, sens_val;
Description
The RobotWare base functionality Auto Acknowledge Input is an option that enables
a system input which will acknowledge the dialog presented on the FlexPendant
when switching the operator mode from manual to auto with the key switch on the
robot controller.
WARNING
Note that using such an input will be contrary to the regulations in the safety
standard ISO 10218-1 chapter 5.3.5 Single point of control with following text:
"The robot control system shall be designed and constructed so that when the
robot is placed under local pendant control or other teaching device control,
initiation of robot motion or change of local control selection from any other
source shall be prevented."
Thus it is absolutely necessary to use other means of safety to maintain the
requirements of the standard and the machinery directive and also to make a
risk assessment of the completed cell. Such additional arrangements and risk
assessment is the responsibility of the system integrator and the system must
not be put into service until these actions have been completed.
Limitations
The system parameter cannot be defined using the FlexPendant or RobotStudio,
only with a text string in the configuration file.
11.1.1 Overview
Purpose
The purpose of Servo Tool Change is to be able to change tools online.
With the option Servo Tool Change it is possible to disconnect the cables to the
motor of an additional axis and connect them to the motor of another additional
axis. This can be done on the run, in production.
This option is designed with servo tools in mind, but can be used for any type of
additional axes.
Examples of advantages are:
• One robot can handle several tools.
• Less equipment is needed since one drive-measurement system is shared
by several tools.
What is included
The RobotWare option Servo Tool Change enables:
• changing tool online
• up to 8 different servo tools to change between.
Note that the option Servo Tool Change only provides the software functionality.
Hardware, such as a tool changer is not included.
Basic approach
This is the general approach for using Servo Tool Change. For a more detailed
description of how this is done, see Tool change procedure on page 319.
1 Deactivate the first tool.
2 Disconnect the first tool from the cables.
3 Connect the second tool to the cables.
4 Activate the second tool.
Additional axes
To use Servo Motor Control, you must have the option Additional Axes. All additional
axes used by servo motor control must be configured according to the instructions
in Application manual - Additional axes.
Tool changer
To be able to change tools in production with a plug-in mechanism, a mechanical
tool changer interface is required.
en0300000549
All cables are connected to the tool changer. The tool changer interface includes
connections for signals, power, air, water, or whatever needs to be transmitted to
and from the tool.
Up to 8 tools
Up to 8 additional axes (servo tools or other axes) can be installed simultaneously
in one robot controller. Some of them (or all) may be servo tools sharing a tool
changer.
Tip
If you have the Spot Servo option you can use tool change calibration.
After a tool is activated, use the instruction STCalib to calibrate the tool. This
will adjust any positional error caused by tool movements during deactivation.
Tip
11.1.3 Configuration
Configuration overview
The option Servo Tool Change allows configuration of several tools for the same
additional axis.
One individual set of parameters is installed for each gun tool.
Overview
To make sure a disconnected mechanical unit is not activated, a connection relay
can be used. A connection relay can prevent a mechanical unit from being activated
unless a specified digital signal is set.
Some tool changers support I/O signals that specify which gun is currently
connected. Then a digital input signal from the tool changer is used by the
connection relay.
If the tool changer does not support I/O signals, a similar behavior can be created
with RAPID instructions. Set a digital output signal to 1 with the instruction SetDO
each time the tool is connected, and set the signal to 0 when the tool is
disconnected.
System parameters
This is a brief description of each parameter used to configure a connection relay.
For more information, see Technical reference manual - System parameters.
The following parameters have to be set for the type Mechanical Unit in the topic
Motion:
Parameter Description
Use Connection The name of the relay to use.
Relay Corresponds to the name specified in the parameter Name in the type
Relay.
The following parameters must be set for the type Relay in the topic Motion:
Parameter Description
Name Name of the relay.
Used by the parameter Use Connection Relay in the type Mechanical Unit.
Input Signal The name of the digital signal used to indicate if it should be possible to
activate the mechanical unit.
The following parameter values are set for gun1 and gun2 in the type Relay:
Name Input Signal
gun1_relay di1
gun2_relay di2
Overview
Only one of the servo tools used by the tool changer may be activated at a time,
the others are set to activation disabled. This is to make sure that the user is jogging
the servo tool presently connected with right configuration.
I M
IError, 85 Main entry, Task type, 281
IndAMove, 244 maintenance, 170
IndCMove, 244 MakeDir, 46
Ind collision stop without brake, 228 manipulator replacement, 171
IndDMove, 244 Manipulator Supervision, 227
Independent Axes, 241 Manipulator Supervision Level, 227
independent joint, 223 manual friction tuning, 193
Independent Joint, 243 master, 96
Independent Lower Joint Bound, 243 Master Follower kp, 99
independent movement, 241 Max Current, 255
Independent Upper Joint Bound, 243 Max Follower Offset, 98
IndInpos, 244 Max Force Control Motor Torque, 253
IndReset, 244 Max Force Control Position Error, 256
IndRMove, 244 Max Force Control Speed Limit, 256
IndSpeed, 244 Max Offset Speed, 98
Inertia, 255 Max pos err. closing, 254
Input Signal, 317 measurement system, 244
installation, 258 mechanical unit, 293
instructions merge of messages, 74
UnpackRawBytes, 42 WriteAnyBin, 38
unsynchronize, 103 WriteBin, 38
Update revolution counter, 260 WriteRawBytes, 42
Upper Joint Bound, 255 WriteStrBin, 38
Use Connection Relay, 317 WZBoxDef, 217
Use Linked Motor Process, 98 WZCylDef, 217
Use Process, 98 WZDisable, 218
Use ramp time, 254 WZDOSet, 218
Use Robot Calibration, 168 WZEnable, 218
WZFree, 218
V WZHomeJointDef, 218
verification, 177 WZLimJointDef, 218
WZLimSup, 218
W WZSphDef, 217
waiting for tasks, 288 wzstationary, 217
WaitSyncTask, 288 wztemporary, 217
WaitSyncTask, instruction, 283
WaitUntil, 286 Y
world zones, 215 yaw, 173
Wrist Move, 206
wrist replacement, 170 Z
Write, 38 zones, 215
ABB AS
Robotics & Discrete Automation
Nordlysvegen 7, N-4340 BRYNE, Norway
Box 265, N-4349 BRYNE, Norway
Telephone: +47 22 87 2000
ABB Inc.
Robotics & Discrete Automation
1250 Brown Road
Auburn Hills, MI 48326
USA
Telephone: +1 248 391 9000
[Link]/robotics
3HAC066554-001, Rev T, en