0% found this document useful (0 votes)
19 views

Module_01_Basics_608

The RobotStudio 6.08 manual provides essential information on using the software, including installation, creating and managing stations, and programming robots. It emphasizes the importance of following ABB's guidelines and obtaining permission for reproducing the manual. The document also includes a detailed table of contents outlining various topics related to RobotStudio functionalities and user instructions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Module_01_Basics_608

The RobotStudio 6.08 manual provides essential information on using the software, including installation, creating and managing stations, and programming robots. It emphasizes the importance of following ABB's guidelines and obtaining permission for reproducing the manual. The document also includes a detailed table of contents outlining various topics related to RobotStudio functionalities and user instructions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

RobotStudiotm 6.

08
Basics
The information in this manual is subject to change without notice and should not be construed as a
commitment by ABB. ABB assumes no responsibility for any errors that may appear in this manual.
Except as may be expressly stated anywhere in this manual, nothing herein shall be construed as any
kind of guarantee or warranty by ABB for losses, damages to persons or property, fitness for a specific
purpose or the like.
In no event shall ABB be liable for incidental or consequential damages arising from use of this manual
and products described herein.

This manual and parts thereof must not be reproduced or copied without ABB's written permission, and
contents thereof must not be imparted to a third party nor be used for any unauthorized purpose.
Contravention will be prosecuted.
Additional copies of this manual may be obtained from ABB at its
then current charge.

© Copyright 2017 ABB All right reserved.


ABB AB
Robotics Products
SE-721 68
Västerås Sweden

2017-JUN-13 ABB
Table of Contents

1. Courseware .............................................................................................. 4
1.1. Courseware files ................................................................................................ 4
1.1.1. Extracting the Courseware folder ............................................................ 4
1.2. Document folders ............................................................................................... 4
1.2.1. Create a gallery for frequently used documents ...................................... 5
2. Learning the basics ................................................................................. 9
2.1. RobotStudio Overview ....................................................................................... 9
2.1.1. The RobotStudio Help page .................................................................... 9
2.1.2. Exploring RobotStudio .......................................................................... 10
2.1.3. Navigating the Graphics window using the mouse ................................ 14
2.2. Creating a basic station .................................................................................... 16
2.2.1. Creating a new station .......................................................................... 16
2.2.2. Adding a Tool ........................................................................................ 17
2.2.3. Importing the Controller Cabinet ........................................................... 18
2.2.4. Moving the controller cabinet ................................................................ 19
2.2.5. Importing CAD files ............................................................................... 20
2.2.6. Positioning the Table ............................................................................. 21
2.2.7. Placing the box...................................................................................... 22
2.3. Programming the Basic Station ........................................................................ 24
2.3.1. Jogging the Robot ................................................................................. 24
2.3.2. Creating a Workobject ........................................................................... 26
2.3.3. Programming Motion ............................................................................. 28
2.3.4. Running the Simulation ......................................................................... 34
2.3.5. Adding a start and home position .......................................................... 36
2.3.6. Using the Rapid Editor for basic adjustments........................................ 40
2.3.7. Simulation settings ................................................................................ 43
2.3.8. Saving the robot program ...................................................................... 44
2.3.9. Using the solution folder. ....................................................................... 44
2.4. Local Origin ...................................................................................................... 45
2.5. Creating a tool .................................................................................................. 51
2.6. Task Frame ...................................................................................................... 56

3
Courseware

1. Courseware
1.1. Courseware files
Overview
In this exercise we will unpack the courseware files to the Documents > RobotStudio folder
and then set the Document Locations to include these files. This will enable easy access to our
project files.

1.1.1. Extracting the Courseware folder


Extract the zip file
Along with the RobotStudio Courseware you have received a RobotStudio Courseware.zip
file.
1. Right click the RobotStudio Courseware.zip file and select Extract All….
2. In the Extract dialog, browse to where you have your My Documents folder and select
the RobotStudio folder.
3. Click the New Folder button and name it Courseware

Giving the path:


%userprofile%\Documents\RobotStudio\Courseware
4. Click the Extract button.

1.2. Document folders


Overview
With the installation of RobotStudio comes an ABB Library selection consisting of robots and
other equipment.

4
Courseware

In this exercise we will add our own User Library and User Geometry to those galleries from
the Courseware folders. This will then let us directly access those libraries and geometries
from the Import Library and Import Geometry galleries in RobotStudio.
This is recommended use for any RobotStudio user, in that you can create folders with such
libraries and then add references to make them appear in the user interface galleries.

1.2.1. Create a gallery for frequently used documents


Gallery for Import Library
We will start with the Import Library gallery.
1. Start RobotStudio.
2. On the File tab click New and then Empty Station.
3. Check that the Documents window is open.
If it is not; then on the Quick Access menu select Windows and then Documents.

4. In the Documents window, press on Locations link.

5. In the Document Locations, click Add Location and then File System.

5
Courseware

The File System dialogue box will pop up.


Now we will first create a gallery for the library objects located in the courseware folder.
6. In the File System dialogue box:

Location Name Courseware


Path …browse to \Courseware\Libraries
Filter *rslib, *rsxml
Check Show as gallery and select Import Library and Flat.
Check Include when searching
7. Click OK.

All the library files from the courseware folder is now easily available for selection.
We will now continue with doing the same for importing CAD geometries.
8. Click Add Location and then File System.

4
Courseware

9. In the File System dialogue box:

Location Name Courseware


Path …browse to \Courseware\Geometry
Filter *sat, *sab, etc.
Check Show as gallery and select Import Geometry and Flat.
Check Include when searching
10. Click OK.
Now that we have added these locations, we can access those files directly from RobotStudio
and whenever we save to those locations they will be automatically added to the galleries.

Searching for Specific Documents


Using the Search function in the Documents window, you can search for a document by its
name. The result will appear on the Documents window. Then you can double-click on the
found item(s) in order to import it to the station. You can also use the Browse function in
order to browse to all available locations created in Document Locations. These functions
provide an easy, quick access to your documents. Note that when we added the Courseware
locations we also added them to the Search section.

7
Courseware

1. In the Documents window click the Search field and write SpinTec.

Here we can see that the results are all inside the Courseware folder.
2. Select the Browse radio button.
3. Double-click the RobotApps icon.
You are now seeing a selection of libraries uploaded to the RobotApps site.

Challenge
Feel free to visit the RobotStudio community. Go to www.robotstudio.com and browse
around.

4
Learning the Basics

2. Learning the basics


2.1. RobotStudio Overview

2.1.1. The RobotStudio Help page


Overview
The first thing to learn is where to find help or additional information in case you need it.

To open the RobotStudio Help page


1. On the File menu select Help.

The RobotStudio Help page.


Here you can find useful links to things like the Community or managing licenses. You can
find the version number and what type of license you have currently. Furthermore, there is the
latest news in the ABB Robotics feed.
You can also find a whole list of ABB Robotics manuals including the RobotStudio Help,
RAPID manuals and IRC5 instructions, etc.

9
Learning the Basics

2. In the Documentation list, click RobotStudio Help.

You can use the Content/Index/Search tabs to browse the Help from different vectors.
3. In the Contents tab, select Introduction to RobotStudio, then select Terms and
concepts and then Hardware concepts.
It is recommended to keep the RobotStudio Help open in the background while you go
through the course material so that you can easily help yourself to related information
during the course.

2.1.2. Exploring RobotStudio


Overview
Before starting with the actual exercises, we will take a quick look at RobotStudio and some
commonly used functions.

To open a demo station


Now we will open a demo station to play with. Do not save any changes to the station during
this exercise.
4. Start RobotStudio.
5. In the File tab, click Open.

10
Learning the Basics

6. Browse to the folder \Courseware\Stations and open the station Exploring.

The main parts of RobotStudio window


The picture on the next page shows the main parts of RobotStudio:
1
2
6
3
7

5 9

1 Quick Access Toolbar


For quick access to commonly used commands and settings. To add an item to the
toolbar, right click the item and select Add to quick access toolbar or click the
arrow next to the toolbar and select Customize Commands.

2 Tabs
The tabs contain collections of commands and setting items for different
functions according to the following table:

File Opening, saving stations and options etc.

11
Learning the Basics

Home Building up stations, creating systems, creating paths with


graphical programming.

Modeling Creating and grouping components, creating solids, curves and


surfaces, measurements and CAD operations. This is also from
where you create Tools, Conveyors, Smart Components and the
Mechanism Modeler.

Simulation Setting up, configuring, controlling, monitoring and recording


simulations.

Controller For working with system parameters and configuration and setting
up relationships to transfer programs, data etc. between controllers.

Rapid Editor for writing new and/or debugging existing Rapid programs.

Add-Ins RobotWare, PowerPacs and Add-Ins.

Modify This is a contextual tab, which is only visible when an object is


selected. It lists specific commands for that object type.

3 The Browser window


The content in the Browser window is dependent on the currently selected Tab.
As you click through the different tabs the Browser will switch to match.
For instance, in the Home tab you will find:
The Layout browser displays the physical items of the station, such as robots and
tools. When working with the objects, you either select them here or in the
Graphics window.
The Paths&Targets browser displays program related data such as motions, tool
data, work objects and targets.

4 The Output window


The Output window displays messages from RobotStudio and the Virtual
Controller. Some messages are active; by clicking on them you get more
information.
The Output window also have different tabs and content depending on the Tab
selected and the current context.

5 The Active toolbar


Shows active templates and parameters such as speed data and zone data. These
are the default settings that will be used when creating Move instructions.

6 The RobotStudio Help menu


Here you will find help manuals on RobotStudio, RAPID, and many more.

7 The Documents manager


Allows you to easily search and browse for files to load into the station. It is also
possible to add references to files and folders or embed files into the station.

12
Learning the Basics

8 The Graphics window


The Graphics window displays the objects in the station. Here you select objects
and parts of objects when building and programming stations. Icons for selection
levels and snap modes can be found at the top of the Graphics window. Using
correct selection level and snap mode settings is important for successful work in
the Graphics window.

9 The Controller status bar


A green light indicates that the controller is in AUTO mode, yellow that it is
MANUAL mode, and red that it is not started.
Please note that there is no controller in this demo station.

13
Learning the Basics

2.1.3. Navigating the Graphics window using the mouse


The table below shows how to navigate in the Graphics window using the mouse:
To Use the keyboard / Description
mouse combination

Select Items Just click the item to select.


To select multiple items, press the SHIFT key
while clicking the new items.

Rotate the station CTRL + SHIFT + Press CTRL + SHIFT + the left mouse
button while dragging the mouse to rotate
the station.
With a 3-button mouse you can use the
left and middle buttons, instead of the
keyboard combination.

Pan the station CTRL + Press CTRL + the left mouse button while
dragging the mouse to pan the station.

Zoom the station CTRL + Press CTRL + the right mouse button while
dragging the mouse to the left to zoom out.
Dragging to the right zooms in.
With a 3-button mouse you can also use
the middle button, instead of the keyboard
combination.

Zoom using SHIFT + Press SHIFT + the right mouse button


window while dragging the mouse across the area
to zoom into.

Select using SHIFT + Press SHIFT + the left mouse button while
window dragging the mouse across the area to
select all items that match the current
Selection Level.

To explore selection levels and snap modes


1. In the Graphics window click the Part Selection icon.

The name of an icon appears as a ToolTip when holding the cursor over the icon.

14
Learning the Basics

2. In the Graphics window click the Snap Object icon.

This is a multi-snap mode, snapping to the closest center, edge or corner.


3. In the Graphics window click the fork lift. The entire fork lift is now highlighted red.
You can also see the pick point as a white star that has snapped to the closest
center/edge/corner.
4. On the Home tab, in the Freehand group click the Move button. A cross with arrows in
the X, Y and Z directions now appear on the truck. Drag the arrows to move the object.

5. On the Home tab, in the Freehand group click the Jog Joint button and then select any
joint on one of the robots. By pressing the left mouse button on one of the joints in the
Graphics window you are able to jog it in any direction.

6. Continue exploring the selection levels and snap modes by snapping to corners, edges
and center points of parts, tools, entities and surfaces etc.
7. If you have a Freehand move active then another click will turn that off.
8. Close the station without saving when you are done.

15
Learning the Basics

2.2. Creating a basic station


Goal of the chapter
In the next series of exercises, we will learn how to build a basic station containing a robot, a
tool, a fixture and a work piece as shown in the picture. Later we will program the robot to
operate on the work piece.

2.2.1. Creating a new station


Overview
A new station can be created in three ways:
• Solution with Empty Station - creates an empty station, placed in a Solution folder
structure on the hard disk.
• Solution with Station and Robot Controller – creates a station in a Solution folder
structure with a virtual Robot Controller (VC). The VC can be created from a robot model
list, or from a robot backup.
• Empty Station - creates a new empty station, no folders or files are created on the hard
disk.
In this exercise we will use the second alternative.

Creating a New Station Using a Solution Folder


1. In the File tab, click New and then select a new Solution with Station and Robot
Controller

16
Learning the Basics

2. Name it mySolution. Browse to the location Courseware\Solutions and create a folder


named Module_1 and select or go in to that folder and press Select Folder.
3. In the Robot model drop down select the IRB 1600 6kg 1.2m robot.
4. Check that the name of the system is IRB1600_6kg_1.2m. (Note that the location is
predetermined by the Solution folder selection.)
5. Make sure that the RobotWare drop down is the latest version.
6. Press Create.
7. In the File tab select Save Station As.
8. Browse to the folder \Courseware\Solutions\Module_1\mySolution\Stations.
9. Save it as mySolution_1.

Note! The solution folder is used to help you, as a user, keeping a well-structured folder
system that is easy to navigate through. Later in this module you will also see the other
features that solutions have.

Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

Workflow for building a new station Creating stations and systems.

2.2.2. Adding a Tool


Overview
We will now import and attach a tool to the robot. This is done in two steps: first we import the
tool to the station and then we attach it to the robot.
The tool that we will import is a library component, which means that it is a RobotStudio object
that has been saved as a separate file. The library import creates a link from the station to the
library file on the hard drive. Therefore, several stations can share the same library component.
On the Home tab you can find the Import library button, it has two sections:
1. The upper button opens up a dialog where you can browse for libraries.

2. The lower part that opens up default RobotStudio libraries and personal galleries.

Importing the Tool


1. Open the station from the last exercise (mySolution_1), unless it is already open.
2. In the Home tab click the Import Library button. Since you have already created the
Courseware gallery to this menu, you can now easily select the needed library
component from this gallery. Click the Courseware gallery and select Pen.

17
Learning the Basics

The tool will be imported to the station and placed at the origin of the world coordinate
system, thus hidden inside the robot. However, in the Layout browser you can see that
the tool has been imported.

Attaching the Tool


1. Inside the Layout browser, drag the tool Pen and drop it on the robot IRB1600.

2. Answer the question “Do you want to update the position of Pen” with Yes.

The tool is moved and attached to the wrist of the robot.


3. Save the station as mySolution_2.
Notice that RobotStudio adds the _2 automatically.

2.2.3. Importing the Controller Cabinet


Overview
We will now import a model of the controller cabinets to the station. The controller model is
for visual representation only, the Virtual Controller runs regardless if there is a cabinet or
not.

18
Learning the Basics

Importing the Controller Cabinet


1. Open the station from the last exercise (mySolution_2), unless it is already open.
2. On the Home tab click the Import Library button (lower section).
3. In the Equipment folder, select the IRC5_Control-Module library.

The cabinet will be imported to the station and placed at the origin of the world
coordinate system.
4. Save the station as mySolution_3.

2.2.4. Moving the controller cabinet


Overview
We will now move the controller to a more suitable position in the station. If not the exact
position is important, Freehand move is an easy way to modify the position of objects.
RobotStudio has several functions for moving objects, each suitable for different situations. In
this exercise the exact position is not important as long as it is placed out of reach from the
robot so we will use the Freehand move.

Moving the controller cabinet part


1. Open the station from the last exercise (mySolution_3), unless it is already open.
2. In the Layout browser select IRC5_Control-Module or use selection level Part to make
the selection directly in the graphics window.

3. On the Home tab, in the Freehand group click the Move button.

4. Click and hold on the green arrow in the Freehand move cross, then drag the controller
one floor square (about 1 meter) to the right of the robot (negative Y direction). Then

19
Learning the Basics

click and hold on the red arrow and drag it one square backwards (negative X direction).

5. Save the station as mySolution_4.

2.2.5. Importing CAD files


Overview
You can add work pieces and custom equipment, like fixtures or conveyors, by importing the
CAD models of the objects. In this exercise we will import a table and box.

Importing the CAD files


1. Open the station from the last exercise (mySolution_4), unless it is already open.
2. On the Home tab click Import Geometry.
3. In the Open dialog browse to \Courseware\Geometry then hold down the [CTRL] key
and select the objects Box.sat and Table.sat.
4. Click the Open button.

5. Save the station as mySolution_5.

Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

Libraries, geometries and CAD files Supported CAD formats and import options

20
Learning the Basics

Troubleshooting and optimizing How to solve geometry problems like slow


geometries updates and invisible parts.

Challenge
The detail level of a model can be changed to increase the performance for large models.
Open the Options dialog and go to Graphics>Performance.
To increase performance for large models, set the detail level to Coarse. This only affects the
visual representation of the object, not the accuracy when generating curves and targets.
To improve visual display and make it easier to select points in objects with many details, set
the detail level to Fine.
When you are finished, change back to the default value, Automatic. RobotStudio will then
determine which level to use based on the zoom factor in the station. This increases the file
size of the station.

2.2.6. Positioning the Table


Overview
The table will be moved 600 mm from the Base Frame of the robot in X direction, 100 mm in
Y direction, and finally with a -30º rotation around Z. We will use the Set Position command
for this movement.

Positioning the Table


1. Open the station from the last exercise (mySolution_5), unless it is already open.
2. In the Layout browser right click the Table and select Position > Set Position.
3. In the Set position dialog, in the Reference list select the World coordinate system.
4. In the Position fields enter these values 600, 100, 0.
5. In the Orientation fields enter these values 0, 0, –30.

21
Learning the Basics

6. Click Apply and then Close.

7. Save the station as mySolution_6.

2.2.7. Placing the box


Overview
We will now put the box on the table relative to one of the corners of the table. For placing an
object relative another (such as putting a part on a fixture) the Place command is a way to do
this without knowing the exact coordinates of an object. For this example we will use the
Place by two points command since we need to both move the box and change its orientation
around one axis.

TIP!
When selecting a corner of an object, make sure to click inside the surface of the object, this
to make sure the pick point will snap correctly.

Placing the Box on the Table


1. Open the station from the last exercise (mySolution_6), unless it is already open.
2. In the Graphics window select the Part Select level and the Snap End mode.

3. Rotate and zoom the station so you get a view similar to the one in the picture below. It
is easier if you have a clear view of the box and the corners of the table.

4. In the Layout browser right click the box part, select Position > Place > Two Points.
5. When the text insertion point is positioned in any of the Primary point - From boxes,
click the corner of the box marked with 1 in the picture.
6. When the text insertion point is positioned in any of the Primary point - To boxes, click
the corner of the table marked with 2.

22
Learning the Basics

7. When the text insertion point is positioned in any of the Point on X-Axis -From boxes,
click the corner of the box marked with 3.
8. When the text insertion point is positioned in any of the Point on X-Axis -To boxes,
click the corner of the table marked with 4.

TIP!
The selection of the points can be made in any order according to which selection
box you place your curser in prior to making the selection in the graphics window.
This can be extremely useful when trying to place objects when there are other
graphics either partially or fully obscuring the objects you are trying to place. For
example the points on the object you are placing can be selected first when only that
item is in view and then you can reorient the graphics window in order to then
make the selections on the object you are placing to. (refer to images below)

9. Click Apply and Close.

The primary point on the box is now moved to the primary point on the table and the
points on the X-Axis set the orientation of the box.
10. Save the station as mySolution_7.

23
Learning the Basics

2.3. Programming the Basic Station

2.3.1. Jogging the Robot


Overview
Before programming the station, we will practice jogging the robot. Jogging the robot can be
done in several ways but here will use the freehand functionality. Note that both Mechanism
Joint Jog and Mechanism Linear Jog are available also from the Modify tab which is
enabled when the robot is selected in the Layout browser.

Jogging the Robot Joint by Joint


1. Open the station from the last exercise (mySolution_7), unless it is already open.
2. On the Home tab, in the Freehand group click Jog Joint.

3. In the Graphics window select one of the joints and move it by dragging the mouse.

Jogging the Robot Linearly


1. On the Home tab, in the Freehand group click Jog Linear.

24
Learning the Basics

2. In the Graphics window select the robot by clicking on it.


A cross with red, green and blue arrows is now displayed at the Tool Center Point (TCP).

3. Click and drag the arrows to jog the robot. Use the red arrow for X direction, green for Y
and blue for Z.

Reorienting the Tool of the Robot


1. On the Home tab, in the dropdown list of the Freehand group select Active Tool.
2. Click the button for Jog Reorient.

3. In the Graphics window select any part of the robot.


Circular arrows are now displayed around the TCP.
4. Drag the arrows to reorient the tool around its current TCP position.

Jumping Back to the Neutral Position


After finishing the jogging practice, jump back to the original neutral position.
1. In the Layout browser, open the context menu by right clicking the robot and then select
Jump Home.

25
Learning the Basics

2.3.2. Creating a Workobject


Overview
The first thing we will do when programming the station is to create a workobject coordinate
system. Workobjects are special coordinate systems in which the programmed positions are
stored. Correctly used, workobjects facilitate calibration and modifications of the cell layout:
when repositioning the work piece or the robot itself, you just reposition the workobject
correspondingly, and the program is up-to-date again.
Programming a robot without having specific workobjects is possible, but not recommended.
A default workobject, Wobj0, which always is fixed at the origin of the controller’s world
coordinate system, will be used in that case.

A workobject consist of two frames. The User Frame (User coordinate system) is referenced
from the World Coordinate System and the Object Frame (Object coordinate system) is
referenced from the User Frame. See picture above where the position of two different parts
located in the same fixture are described.

Creating the Workobject


1. Open the station from the last exercise (mySolution_7), unless it is already open.
2. In the Graphics window select the Part Select selection level and the Snap Object snap
mode.

3. Rotate and zoom the station till you get a clear view of the top of the box.

26
Learning the Basics

4. On the Home tab click on Other and select Create Workobject from the drop-down
menu.
5. In the Create Workobject dialog, in the Name box enter Wobj_Box.

6. In the User Frame group click the Frame by points box and then click the drop-down
arrow.
7. In the Frame by points dialog select Three-point as method for defining the frame.
8. Set the insertion point in one of the First point on X axis boxes and then click the corner
of the box marked as 1 in the picture above.
The coordinates of the selected point are now inserted in the boxes and the insertion
point moved to the Second point on X axis boxes.
9. Continue clicking in corners 2 and 3 in Second point on X axis and Point on Y axis,
respectively.

10. Click Accept.


The Create frame by points dialog will close.
11. In the Create Workobject dialog click Create.
A workobject, displayed as a coordinate system, is now created on the box. You can also
see the workobject in the Paths&Targets browser.

27
Learning the Basics

12. Save the station as mySolution_8.

Learn More
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

About coordinate systems Workobjects and other coordinate systems useful


when programming a robot.

2.3.3. Programming Motion


Overview
Paths are RobotStudio elements that contain the instructions for the robot. The order in which
the instructions are stored in the path is the order in which they will be executed.
We will create a path where the robot moves along the sides of the small box on top of the
larger one. This is done by 'graphical programming', i.e. by making selections in the graphics
window.

There are a few steps we must take in order to achieve a working robot path. The first step is
to use the corners of the box in the graphics to create targets. The second step will be to adjust
the orientation of the targets. Finally we will add these targets to a path and set appropriate
axes configurations for each instruction.

Creating the targets


1. Open the station from the last exercise (mySolution_8), unless it is already open.
2. In the Graphics window select Part Selection level and Snap End.

3. Zoom and rotate the station so that you get a clear view of the tool and the small box.

4. On the Home tab click the Target drop-down and select Create Target.
5. In the Create Target dialog, make sure the pointer is set to the first Position box.

6. In the Graphics windows click the corners on the top surface in the same order as in the
picture above.

28
Learning the Basics

The red stars show positions where targets will be created.


7. In the Create Target dialog click the Create button.
Now 4 targets are created with default orientation (0,0,0).

Adjusting the target orientation điều chỉnh hướng mục tiêu


To get a good view on the current orientation of the targets we will use the function
View Tool at Target which will give us a preview on how the tool will be oriented
around the targets.

1. In the Paths&Targets browser select the first target (Target_10) and click the Modify
tab.
2. In the View Tool at target drop-down, select Pen.

As the orientation of our targets are zero and our TCP has Z pointing out from the tool,
the preview of the tool will be hidden in the box. To be able to see this preview we need
to make the box invisible

3. In Layout browser un-check Visible in the context menu of the box.

Next step is to set a suitable orientation for the first target and then re-use this orientation
for the rest of our targets. If the exact orientation is known, it is easiest to manually type
these values into the Set Position dialog. In this case when we have no exact values we
will manually adjust the orientation of the first target.
4. In the Freehand group select reference Local in drop-down list. Then select Target_10 in
Paths&Targets browser and then enable the Rotate button.

29
Learning the Basics

As a help to see if a target is reachable we will now enable the function View Robot at
Target.
5. In the context menu of Target_10, select View Robot at Target. Now the robot will
jump to the target as soon as it is possible to reach.
6. Rotate the target approximately +180 degrees around the Y axis by click&drag on the
green arrow.
7. Rotate the target approximately +15 degrees around the Z axis by click&drag on the blue
arrow.

Tip!
If you press the [f]-key while rotating, the rotation will execute in smaller steps.

30
Learning the Basics

8. In the context menu of Target_10, click Modify Target>Set Position.


9. Select World as reference and make the final adjustments to round off the angles as in
pictures below. Press Apply.

10. In the context menu of Target_10, select Copy Orientation.


11. Multi-select the three remaining targets and click Apply Orientation from the context
menu. Now all targets will have the same orientation.

12. Make the box visible again by checking Visible from the context menu.
13. Step through the targets and make sure they are all possible to reach. As View Robot at
Target is activated the robot will automatically jump to the targets if possible.
14. Disable View Tool at Target, View Robot at Target.
15. Save the station as mySolution_9.

Adding the targets to a path


1. Open the station from the last exercise (mySolution_9), unless it is already open.

31
Learning the Basics

2. On the Home tab click Empty Path from the Path drop-down menu.

An empty path, Path_10, is now created and displayed in the Paths&Targets browser.
3. Right click the path, select Rename and change the name to Path_Box.

On the Status Bar down at the bottom of the interface you can see the active instruction
template. These are the default settings that will be used when creating the Move
instructions.
4. Change the parameters according to the picture below.

5. In the Paths&Targets browser multi-select the four targets.

6. On the Modify tab click the Add to Path button and select Path_Box and First.

7. In the Paths&Targets browser select Target_10.


8. On the Modify tab click the Add to Path button and select Path_Box and Last. Now the
loop is closed.

Tip!
You can also use drag&drop to create the instructions.

32
Learning the Basics

9. Select the path, and in the Modify tab select Rename Targets. Write pBox_ as target
prefix and press Apply. This function also available from the context menu of the path.

10. Save the station as mySolution_10.

Setting axes configuration Cài đặt cấu hình trục


Before we can setup and run a simulation we need to define what axes configurations the
robot should have for each target. This can be done manually by stepping through each
instruction and clicking Configurations from the context menu. In this way you will get
a list of all available configurations. In cases where we have many instructions a more
efficient way is to use Auto Configuration. With this method way we only have to a
starting configuration and then RobotStudio will calculate the configuration for the rest
of the instructions in order to get as smooth movements of the robot axes as possible.

1. Open the station from the last exercise (mySolution_10), unless it is already open.
2. Select Path_Box and click Auto Configuration from the Modify tab.
There are two types of Auto Configuration, Linear/circular move instructions and All
move instructions. Linear/circular move instructions will not change the
configuration for joint motion instructions (e.g. MoveJ). This can be useful if the joint
motion(s) already have a verified configuration and should be used as a control point(s)
in the path. In our path we only have linear motions, so it doesn´t matter what type we
use.

3. Select the configuration (0,0,-1,1) in the list and press Apply. The robot will now step
through all instructions and assign valid configurations to them.

33
Learning the Basics

4. Save the station as mySolution_11.

Tip!
Auto Configuration is also available from the path context menu.

Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

About targets and paths Targets, paths and move instructions.

Robot axis configurations Axes configurations

2.3.4. Running the Simulation


Overview Chạy mô phỏng gần như giống hệt khi ta chạy thực tế
One of the key features of RobotStudio is that the same software that runs in the real
controller also runs in the virtual controller on the computer. This means that we are able to
run a simulation that gives us almost the identical behavior as we would achieve on the real
controller.
We are now in a position to create a rapid program. This program will be stored on the
system running on the virtual controller, just as the program for a real robot is stored on its
system.

Synchronize to RAPID (The Virtual Controller)


1. Open the station from the last exercise (mySolution_11), unless it is already open.
2. On the Rapid tab, click the Synchronize button.

3. In the Synchronize to RAPID dialog make sure all data are selected and then click OK.

All program data is now transferred from the RobotStudio station to the virtual
controller.

34
Learning the Basics

4. To get a view of the result, expand the tree structure in the RAPID tab, and double click
Module1 as shown below. A module header and a main procedure is created
automatically at the first synchronization to RAPID in an empty system.

Setup the Simulation


Each RAPID TASK in a controller has a defined “Main entry” (or entry point), which is
the procedure where the RAPID execution will start. Normally this entry point is a
procedure named main. But for a RobotStudio simulation we can override this entry
point with “simulation entry point”. This is a quick way to simulate a specific procedure
without changing the entry point in the controller.

1. In the Home tab, Right click Path_Box in the Path&Targets browser and click Set as
simulation entry point.

35
Learning the Basics

2. In the Simulation tab click the Play button. The robot will now execute the RAPID
program.

Note: This is the easiest way to execute a path. The entry point will not affect the RAPID
code and is only for testing a path in simulation. That’s why you don’t need to synchronize
to RAPID. In the next chapter we will look at how to simulate more than one path.

3. You can also go to Simulation > Simulation Setup and click on T_ROB1 and then
choose Path_Box as Entry Point.

2.3.5. Adding a start and home position


Overview
To be sure that the robot can execute this linear path we will add a new target which we will
use as an approach/depart target. As the path, so far, only consists of linear instructions
problems can occur in situations where the actual position of the robot makes a linear
movement to the first instruction impossible.

Adding an approach/depart target

1. In the Paths&Targets browser select Copy from the pBox_10 context menu. Then click
Paste from the Wobj_Box context menu.
2. Rename the target to Appr_Box.
3. Select Appr_Box and click Set Position from the Modify tab.

4. Set the reference to Local and move the target -150mm in the Z direction. Press Apply.

5. In the toolbar for active templates, change to MoveJ and set the parameters as below.

6. Select the target Appr_Box and then add it to the top of the path.

36
Learning the Basics

7. Change back to MoveL as active template.

8. Repeat step 6 but now add the instruction last in the path.

To verify that the new targets in the path have feasible configurations we will use Auto
Configuration on the path again.
9. Select Path_Box and click Auto Configuration from the Modify tab. Select All move
instructions.

Now we will also add a Home position that we will place in a separate path.
10. From Home tab, create a new empty path and rename it to Home.

11. In Home tab, select Jump Home from the context menu of the robot. The robot will
now reset the axes to default values.
12. From the Modify tab, select Mechanism Joint Jog.

13. Jog the robot according to the screenshot below.

37
Learning the Basics

Tip!
Click the separate boxes for each axis and press space on your keyboard. Now you will
be able to write exact values.
14. Change active work object to wobj0 from the Settings group in Home tab.
15. In the toolbar for active templates, change to MoveJ and set the parameters as below.

16. In Path Programming group of Home tab, click Teach Instruction.

A new target will now be created in wobj0 and a MoveJ instruction will be added to the
new Path. Press yes on the message that follows.

17. Rename the new target to HomePos.

18. To be able to simulate both paths we need to make a main path that calls for the paths
that we want to simulate. Do as before and create an empty path and name it main.
19. Then drag Path_Box and Home in to main and set main as entry point.

38
Learning the Basics

20. To transfer the new instructions to the virtual controller, click Synchronize to RAPID
from the RAPID tab.

21. Make sure everything is selected and then click OK.


22. Save the station as mySolution_12.

39
Learning the Basics

Tip!
Note that synchronization can be done in several ways. The Synchronize button appears
in both the Home and Rapid tabs. Alternatively, right clicking on either the system or a
particular path in the Paths&Targets Browser on the Home tab gives you this same
option.

2.3.6. Using the Rapid Editor for basic adjustments


Overview
In this section we will look into how to use the Rapid Editor for basic adjustments of our
program. We will also step through each instruction one by one. Later in the course we will
learn how to use the more advanced features for debugging and editing.

Rapid Editor
1. Open the station from the last exercise (mySolution_12), unless it is already open.
2. In the Rapid tab, expand the tree structure and double click Module1 as shown below.

40
Learning the Basics

3. Change the speed to v1000 in the HomePos instruction.

4. Click Apply changes.

5. To be able to see both our graphical view and the program, click New Vertical Tab
Group by right clicking the editor tab.

6. In the Virtual Controller group of the Controller tab, open the Control Panel and verify
that the system is in AUTO mode.

Tip!
Click the button up in the right corner to switch style of the Control Panel.

7. Back in the Rapid tab Set the program pointer to the main routine

41
Learning the Basics

8. Use the Step in (F11) function to step through the program.

As we now have done changes to the program directly in the virtual controller, we need
to synchronize the changes back to the station.
9. While still in the Rapid tab, click the lower half of the Synchronize button to reveal the
Synchronize to Station feature. Synchronize to the station.

10. In the dialog, check the top node so that everything is selected and press OK.

Note that the instruction we changed in the Rapid Editor is now also changed in the
Paths&Targets browser.

11. Save the station as mySolution_13

42
Learning the Basics

12. Save the station as a Pack&Go from the Share section of the File tab. A Pack&Go file
will include all data required to restore the station and system, so this is the
recommended way of saving a project when finished or when moving to another PC.

13. Make a folder in the RobotStudio directory called Pack&Go and in there save all your
Pack&Go’s

2.3.7. Simulation settings


Overview
In this section we will look into the RobotStudio options for simulation settings. The
Simulation speed setting allows you to set the simulation’s speed relative the real time. This
can be useful when having longer simulations where you want to save time running through
the simulations.

RobotStudio Options
1. Open the station from the last exercise (mySolution_13), unless it is already open.
2. From the File tab, click Options.

3. Go to the Simulation section and click Simulation Clock and check As fast as possible.
Then click OK.

4. Press Play from the Simulation tab to run the simulation again. Now note that it will run
through the simulation in a much shorter time but the resulting process time will be the
same.
5. Go back to Options and uncheck As fast as possible again.

43
Learning the Basics

Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

Options RobotStudio Options

2.3.8. Saving the robot program


Saving the robot program
1. In the Rapid browser, select Save program As from T_ROB1 context menu.

2. In the folder \Courseware\RAPID Programs save the program as BoxProgram_1.

Summary
Now we have created a robot program that can be loaded to a real robot. The saved modules
can be viewed or edited using the Rapid editor or any text editor.
Basically, our program exists in three independent versions now:
▪ In RobotStudio, where the positions and motion properties are saved in the path.
▪ In the virtual controller, where it is stored in the controller’s program memory just as on
a real controller.
▪ As files on the hard drive, which we saved from the virtual controller through
RobotStudio.

2.3.9. Using the solution folder.


Using the solution folder
1. Go to the File tab and press Open
2. Go to \Courseware\Solutions\Module_1\mySolution and open mySolution.rssln

44
Learning the Basics

3. Now you can see all the stations that were saved in the solution and easily pick out the
station that you want.

2.4. Local Origin


Overview
In the next series of exercises we will cover several topics. We will start with unpacking a
new station.
In this station we will import a CAD model with which we will use to create a tool. Each
CAD file has its own local coordinate system referred to as its Local Origin. We will explore
this and see how it relates to some of the functions within RobotStudio.
Finally we will look at another coordinate system called the Task Frame and explore how it
relates to other coordinate systems within RobotStudio.

Unpack & Work


1. From the Share section in the File tab select Unpack & Work and unpack the file
TaskFrame.rspag from Courseware\Stations.
2. In the Select the directory where the files will be unpacked field click the Browse
button.

45
Learning the Basics

3. In the dialog browse to \Courseware\Solutions\Module_1 click New Folder and name it


myBasicSolution and go in to that folder

4. Click the Select Folder button.

5. Click the Next button.


6. Verify that a suitable RobotWare is selected and click the Next button.

7. Check the controller system dialog and click the Next button.
8. Click the Finish button.
9. When finished, click the Close button.
10. Import the geometry SpintecTool.sat from the Courseware folder.

46
Learning the Basics

A geometry representing the tool is now imported to the station and placed with its local
origin in the zero point of the world coordinate system. As the local origin on this
specific part is not placed on the attachment point of the tool you will see the offset
between the coordinate system and actual CAD part.

Attach to Robot
To show why this can be a problem we will attach the tool geometry to the robot.
1. In the Layout browser right click the SpintecTool and on the context menu point to
Attach to and select the robot.

Tip!
Drag&drop is often easier when using the Attach command.

2. In the Update the position dialog click Yes.

Due to the definition of the local coordinate system of the part, you get an offset of the
tool. This needs to be corrected prior to using the CAD geometry to make our tool.

47
Learning the Basics

3. In the context menu of the SpintecTool, select Detach. Select Yes when asked to restore
the position of the Spintec tool.

Setting the Local Origin


1. Make the robot invisible by un-checking Visible from the context menu.
2. In graphics, zoom in such that you get a good view of the tool.

3. Select Selection level Surface and Snap mode Center.

4. In the Layout browser right click the SpintecTool and select Position>Place. In this case
we will place the object by one point.
5. Make sure the pointer is in one of the Position boxes and then click the surface as in
picture above.

Tip!
To avoid clicking on the floor, go into RS Options and make the floor invisible.

6. Click Apply and Close. This will move the SpintecTool to RobotStudio world zero.

48
Learning the Basics

7. In the Layout browser right click the SpintecTool and select Position>Rotate. In this
case we will rotate the object about the world coordinate system by 90 degrees. Click
Apply and Close.

At this point if we were to attach the tool to the robot it would still not go to the correct
position as the attachment point reference is still the local coordinate system of the part.
In the next steps we will adjust the local coordinate system to match the position of the
model.

8. In the Layout browser right click the SpintecTool and select Modify>Set Local Origin.
You will notice in the dialog box the following values.

We will now correct these values to coincide with the corrected CAD model by changing
all values to zeros. Click Apply.

49
Learning the Basics

The coordinate system is now moved to coincide with the actual position in the station
which also happens to be the attachment point of our tool geometry.

9. Attach the tool geometry to the robot to see the difference. Now it should attach
correctly.
10. Detach it again.

Exporting the Geometry


Now we will export the geometry with a new name for later use.
11. In the Export group of the Modify tab which is visible after selecting SpintecTool in
the browser, click Export Geometry. (Also available from context menu.)

In the Export Geometry window, select Format ACIS files of the highest Version and
click Export.

Any file format with a valid CAD Converter license can be used for the export.

12. In the Save As dialog change the name to mySpintecTool.


13. Click the Save button.

50
Learning the Basics

14. Make the robot visible again.

Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

Introduction Definitions and overview of the geometry and


>Terms and Concepts library system in RobotStudio.
>Libraries, geometries and CAD files

2.5. Creating a tool


Overview
In this exercise we will create a tool from the CAD file saved in the previous exercise. To do
this we will import the geometry representing the tool. From this geometry we specify a Tool
Center Point (TCP) along with other parameters such as mass and center of gravity. When
the tool is finished we will save it as a library component and attach it to the robot.

Preparing the geometry


Note! After creating a tool the geometry will no longer be editable within the tool. It is
possible to export the geometry from the tool, however it is good practice to make a copy
and/or export the geometry to file before creating the tool.
1. Unpack the Pack&Go file TaskFrame.rspag from Courseware\Stations unless the
station is still open.
2. Import the geometry mySpintecTool.sat from the Courseware folder unless it is already
imported.
A geometry for the tool is now imported to the station and placed at the origin of the
world coordinate system. Note that this is the geometry we fixed in the local origin
exercise. If necessary there is a correct copy in the Solutions folder.
3. In the Layout browser right click the robot and uncheck Visible.

51
Learning the Basics

Click in the Graphics to remove the red marking and the robot will now be invisible and
you can see the tool on the floor. In the Layout browser the icon for the robot is changed
, indicating that it is not visible in the Graphics window

Creating a reference frame


To simplify the later TCP definition we will start by creating a reference frame.

1. Zoom and rotate the station so that you get a clear view of the tip of the tool. It is
important that you see the circular front of the tip clearly.

2. On the Home tab click the Frame drop-down and select Create Frame.

3. In the Graphics window select Surface Selection level and Snap Center.

4. In the dialog click in the Frame Position field and then in the Graphics window click on
the tip surface.

The snap goes to the center of the surface as our selection level and snap mode.

52
Learning the Basics

5. Click the Create button.

As we did not define an orientation it is aligned with the world coordinate system. Now
we will use the graphics to get the angle of the tool.
6. In the Layout browser right click Frame1 and select Set Normal to Surface.

7. In the Set Normal to Surface dialog click the top field and then in the Graphics window
click the tip surface.
8. Click the Apply button.

Since the default definition of the approach direction is positive Z it points out of the
surface.

Creating the new tool


Now that we have both graphics and frame we will use these to create a tool.
1. In the Mechanism group of the Modeling tab click the Create Tool button to start the
wizard.

2. In the Create Tool wizard in the Tool Name field enter mySpintecTool.

53
Learning the Basics

3. To select a part click the Use Existing button and in the drop-down list select the
mySpintecTool part.
4. Type in 3kg as mass.
5. In the Graphics window select Part Selection level and Snap Gravity.

6. In the Create Tool dialog click in the Center of Gravity field and then in the Graphics
window click the tool graphics.

Note that snap gravity assumes that the object is of the same density when calculating
the center of gravity. You can also type in moment of Inertia but there is no RobotStudio
functionality for this so you have to get the data externally.
7. Click the Next button.
8. In the TCP Name field enter tSpintec.
This is the name of the tooldata that will be used in RAPID
9. In the Values from Target/Frame list select Frame_1.
10. Click the large arrow [->] button to add the TCP.

11. Click the Done button.

In the Layout window we can see that the geometry part has been replaced by the tool
mechanism. But that the frame remains.

54
Learning the Basics

12. In the Layout browser right click the Frame_1 frame and select Delete.

Saving the tool as a library component


Saving the tool as a library component makes it available for use in other stations as well. It
also means that if you update the library then all stations using the library will be updated
the next time you open them.
1. In the Layout browser click on the tool mySpintecTool and select Save as Library from
the Modify tab.

2. In the Save As dialog enter \Courseware\Libraries\mySpintecTool.

Note the small floppy disk that shows that the tool now is a library file.

Attaching the tool to a robot


1. Right click in the Graphics window and select View All.
The station now zooms out so that all objects are visible.
2. In the Layout browser right click the robot and make it visible again.
3. Attach the tool to the robot.

4. In the Update the position dialog click Yes.

The tool is attached to the flange of the robot.

5. Save the station as


\Courseware\Solutions\Module_1\myBasicSolution\Stations\MyStation_NewTool.rsstn.

55
Learning the Basics

2.6. Task Frame


Overview
Now we have created a new tool that we will use when executing the path on the new work
piece. It is important to understand that there are several different coordinate systems when
working with RobotStudio. In this chapter we will learn how to work with the Task Frame. As
these concepts will carry forward through the training modules it is important to understand
the differences between these, as outlined below.

56
Learning the Basics

Moving the TaskFrame


1. Open the station from the last exercise (MyStation_NewTool.rsstn), unless it is already
open.

As we can easily see in this station, we will not be able to execute the path on top of the
work piece without moving the robot. This can be done on two ways; either by moving
only the BaseFrame (the robot mechanism) and leave the TaskFrame of the controller
on the floor, or moving both the BaseFrame and the TaskFrame.
Then the BaseFrame is relative the TaskFrame, we will in this example move both the
BaseFrame and the TaskFrame to avoid changing the BaseFrame values in the
controller, which is the recommended way. Modification of the BaseFrame values in the
controller is typically only done in specific instances such as wall or ceiling mounting of
the robot, MultiMove Systems, conveyor tracking or working with external axes. Later in
the course we will see situations where this is required.
2. Import the geometry Stand.sat from the \Courseware\Geometry folder.
3. In the Controller tab select the system in the Controller browser and click on the Task
Frames button.

4. In the Position XYZ fields enter 0, 0, 600 with world as reference.

5. Click on the Apply button.


6. As you do not want to have an offset to the BaseFrame, answer Yes on the question
“Do you also want to move the base frame(s)?”

57
Learning the Basics

7. As the workobject including targets was pre-created in this station in the position we
want, answer Yes on the question “Do you want to keep the positioning of all stationary
RAPID objects?”

The robot is now moved up on the robot stand, with all target locations kept.

Making the final adjustments


Now we will make sure the robot can reach the targets and run auto configuration to set
suitable axes configurations.

1. Activate View Robot at target and step through all the targets in the workobject,
obWorkPiece.

58
Learning the Basics

2. As it seems possible to reach all targets, de-activate View Robot at target.


3. Set MoveL as active template from the toolbar with parameters as below.

4. Multi-select all targets and add them to a new path by clicking Add to new path from the
Modify tab.

5. Drag and drop the MoveL Approach instruction down such that it is the last instruction
in the path.
6. Add the Approach target again as the first instruction; this time, setting MoveJ as the
active template.

7. Run Auto Configuration on all move instructions to set the axes configurations. Either
from the context menu of the path or the Modify tab.

8. Now use your knowledge from earlier parts of this course, to setup and run a simulation.
You need to first synchronize the path to the RAPID and set the path as entry point.
9. Save the station at \Courseware\Solutions\Module_1\myBasicSolution\Stations\ as
myStation_NewPath.rsstn.

Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about

Coordinate Systems The different coordinate system used

59
© Copyright 2017 ABB All right reserved.
ABB AB
Robotics Products
SE-721 68 Västerås

You might also like