Professional Documents
Culture Documents
Module 05 Programming and Simulating IOs 608
Module 05 Programming and Simulating IOs 608
08
Programming and simulating IOs
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-05-05 ABB
Table of Contents
3
Programming and simulating I/O signals
4. Press Create
Note!
You can also create from backup by going to the controller tab (before creating a station)
and click on Installation Manager. If you are using RW 6.x you choose Installation
Manager. If you are using 5.x you choose System Builder.
4
Programming and simulating I/O signals
5. As the backup includes a configuration file for a servo gun, you will be prompted to
select a library file for this tool. On the dialog, click Load from file…
Note that the gun will now be imported but not attached to the robot.
7. There are also different library models available for the IRB6700 so we are also
prompted to choose one. In this case since we are working with a spot welding
application we will choose the IRB6700_175_260_SW6_02. (The SW in the name
refers to Spot Welding and includes the proper dress pack on the model for this
application)
8. Press OK
5
Programming and simulating I/O signals
9. Attach the gun by using drag&drop in the Layout browser. Answer Yes on the Update
Position question.
6
Programming and simulating I/O signals
3. We have now synchronized the path to station but if we compare the amount of
instructions synchronized to station with the actual path in the RAPID editor, we will
notice that the Spot instructions has not been synchronized.
In the image above you can only see six move instructions.
But when looking in the RAPID editor we can see some SpotL instructions as well.
7
Programming and simulating I/O signals
1. From the Home tab, click Edit Instruction Templates from the active taskbar next to
the controller status icon.
2. Create Move instructions for both SpotL and SpotJ (click the Add button).
8
Programming and simulating I/O signals
3. For both SpotL and SpotJ, confirm that the correct motion type is selected from the
Motion Type drop down (Linear for SpotL and Joint for SpotJ).
5. Now go to the Rapid tab and Synchronize to Station again. Ensure that Path_process is
checked.
6. Go back to the Home tab and make sure that the path now is complete.
9
Programming and simulating I/O signals
Learn more
Click the F1 or Help button in the top right corner of RobotStudio.
See the help section For information about
10
Programming and simulating I/O signals
3. From the Rapid tab, run Synchronize to RAPID. Make sure all paths are selected and
then click the OK button.
4. Go to the Simulation tab and click the Play button to start the simulation.
5. Save the station as
\Courseware\Solutions\Module_5\myLatheSolution\Stations\StartLathe.
11
Programming and simulating I/O signals
2. Use the functions IntelliSense, Pick Lists and Complete Word to complete the
procedures as shown below. Notice as you type various lists and prompts will come up
to ensure correct syntax.
TIP!
Depending upon whether you selected from the Pick Lists or simply typed the
instructions as shown above you may result with various capital and/or lower case letters
as well as different indentations. We have ways to standardize on the indentations and
formatting of the text in the Rapid program as it is viewed in the editor.
3. Once your main procedure is done click on the lower half of the Format button and
select Format Document.
12
Programming and simulating I/O signals
In addition we can also change all Keywords to uppercase letters by selecting Adjust Case.
13
Programming and simulating I/O signals
6. Next click on the Instruction button and move down to Common. Select WaitDI.
7. If you add the first WaitDI from here you will notice that you are prompted to add the
argument. By holding Ctrl and hitting the space bar while on the <ARG> you will get a
dropdown menu of all configured signals and procedures present in the controller.
(Notice you can also select the tab to open up all commands.)
14
Programming and simulating I/O signals
TIP!
Note that as you type instructions you will see a red underscore. This indicates that the
program is constantly being checked for syntax. In the case below the semicolon is not
yet present so this indicator will remain until the code is correctly entered.
9. Continue to add the instructions to the remaining procedures. Use a combination of Pick
Lists, IntelliSense and Snippets as shown in the TIP on the next page.
15
Programming and simulating I/O signals
Tip!
As you add instructions to the procedures you will notice that two instructions come up
repeatedly to control the tool. In cases like these you could create a Snippet that can be
reused over and over. In this case you could save these two instructions as ToolActivate.
They can then be called up when you want to add them in a future procedure. (Note that
you will have to change 1s to 0s or vice versa depending on which tool status you used.
Alternatively you can make one Snippet for “Grip” and one Snippet for “Ungrip”.
16
Programming and simulating I/O signals
10. Next we want to test run our program while watching the Graphics, Editor and I/O
signals.
11. Go to the Simulation tab and open up the I/O Simulator.
14. Select the signals you wish to view and then populate the list by clicking on the add
button. When finished click OK.
17
Programming and simulating I/O signals
15. Switch back to the Rapid tab and right click on the module tab you would like to view.
Select New Vertical Tab Group.
This way you can see the simulation, the RAPID execution and handle IOs
16. Set the Program Pointer to main by right clicking on the routine over on the controller
tab.
17. Test run the program by clicking Start from the ribbon in the RAPID tab. Respond with
the proper IO signals when necessary. Stop the program when you are satisfied that the
logic is running correctly. Reset all I/O signals to 0.
18
Programming and simulating I/O signals
19
Programming and simulating I/O signals
Now create the rest of the I/O connections with the details from the picture below.
Note that you can also view and add the I/O Connections in the Design View.
20
Programming and simulating I/O signals
When Simulation Play is pressed, all checked objects will go back to the state it had
when the Current State was saved, so it is important that joint values, I/O signals etc. has
the correct state before the state is saved.
2. In the ribbon of the Simulation tab, click Simulation Setup.
3. Verify that Saved State SimulationStart is selected at Initial state. Uncheck
Automatically start execution of selected tasks when the simulation starts. Press
Close.
21
Programming and simulating I/O signals
Learn more
Click the Help button in the top right corner of RobotStudio.
See the Help section For information about
22
Programming and simulating I/O signals
Challenge
You have learned to use the RAPID Editor and work with Smart Components.
Now try to change the rapid program and add I/O connections, so that the robot feeds the
machine with a new part within the same routine as it picks a ready part from the machine.
23
Programming and simulating I/O signals
24
Programming and simulating I/O signals
25