Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 05:36:20 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  ABB Robot Forum (Moderators: Werner Hampel, Sven Weyer, Jim Tyrer, Napierian)
| | |-+  Set active tool
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Set active tool  (Read 454 times)
lendyck
Guest
« on: May 05, 2010, 03:36:36 PM »

Hi.  I want to use the RelTool command within a calculation routine, and not use it within a move instruction.  The RelTool uses the active tool, which if not used in a move command will be the tool used in the last move command, which may not be the correct tool.  How can I make a tool the active tool without issuing a move command?

Thanks!
Logged
Midwest Tech
Full Member
***
Online Online

Posts: 130


Did you RTFM?


« Reply #1 on: May 05, 2010, 04:13:13 PM »

I'm not sure what revision software you have, but if it's available in your controller, this would be what your looking for:

Instructions
 
 
SetSysData - Set system data <-  -> 


Usage SetSysData activates the specified system data name for the specified data type.
With this instruction it is possible to change the current active Tool, Work Object, or PayLoad for the robot in actual or connected motion task.
Basic examples Basic examples of the instruction SetSysData are illustrated below.
Example 1
SetSysData tool5;
The tool tool5 is activated.
SetSysData tool0 \ObjectName := "tool6";
The tool tool6 is activated.
SetSysData anytool \ObjectName := "tool2";
The tool tool2 is activated.
Arguments SetSysData SourceObject [\ObjectName]
SourceObject
Data type:anytype
Persistent variable that should be active as current system data.
The data type of this argument also specifies the type of system data to be activated for the robot in actual or connected motion task.
Data type Type of system data
tooldata Tool
wobjdata Work Object
loaddata Payload

Entire array or record component can not be used.
[ \ObjectName ]
Data type:string
If this optional argument is specified then it specifies the name of the data object to be active (overrides name specified in argument SourceObject). The data type of the data object to be active is always fetched from the argument SourceObject.
Program execution The current active system data object for the Tool, Work Object, or PayLoad is set according to the arguments.
Note that this instruction only activates a new data object (or the same as before) and never changes the value of any data object.
Syntax SetSysData
[ SourceObject’:=’] < persistent(PERS) of anytype> [’\’ObjectName’:=’ < expression (IN) of string> ] ’;’
Logged

lendyck
Guest
« Reply #2 on: May 05, 2010, 04:26:52 PM »

Perfect!  Thanks!  beerchug
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!