Module_01_Basics_608
Module_01_Basics_608
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.
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.
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.
5. In the Document Locations, click Add Location and then File System.
5
Courseware
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
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
9
Learning the Basics
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.
10
Learning the Basics
5 9
2 Tabs
The tabs contain collections of commands and setting items for different
functions according to the following table:
11
Learning the Basics
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.
12
Learning the Basics
13
Learning the Basics
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.
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.
The name of an icon appears as a ToolTip when holding the cursor over the icon.
14
Learning the Basics
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
16
Learning the Basics
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
2. The lower part that opens up default RobotStudio libraries and personal galleries.
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.
2. Answer the question “Do you want to update the position of Pen” with Yes.
18
Learning the Basics
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.
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).
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
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.
21
Learning the Basics
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.
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)
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
3. In the Graphics window select one of the joints and move it by dragging the mouse.
24
Learning the Basics
3. Click and drag the arrows to jog the robot. Use the red arrow for X direction, green for Y
and blue for Z.
25
Learning the Basics
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.
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.
27
Learning the Basics
Learn More
Click the Help button in the top right corner of RobotStudio.
See the help section for information about
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.
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
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
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
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.
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.
6. On the Modify tab click the Add to Path button and select Path_Box and First.
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.
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
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
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.
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.
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
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.
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.
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.
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.
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.
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
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
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.
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
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
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.
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.
45
Learning the Basics
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.
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.
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.
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.
50
Learning the Basics
Learn more
Click the Help button in the top right corner of RobotStudio.
See the help section for information about
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
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
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.
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.
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.
Note the small floppy disk that shows that the tool now is a library file.
55
Learning the Basics
56
Learning the Basics
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.
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.
1. Activate View Robot at target and step through all the targets in the workobject,
obWorkPiece.
58
Learning the Basics
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
59
© Copyright 2017 ABB All right reserved.
ABB AB
Robotics Products
SE-721 68 Västerås