Convert name of Work Object to a string
Options
Hi,
I am trying to convert the name of the current selected work object to a string to display in a uimsgbox. I know the load identify routine does it with tool data, and I wasn't sure how it was being done in that. Any help would be greatly appreciated.
Thanks,
Dustin
Dustin
0
Comments
-
I think ArgName does what you want.
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0 -
Try[code]PERS wobjdata wobjTemp:=[FALSE,TRUE,"",[[0,0,0],[1,0,0,0]],[[0,0,0],[1,0,0,0]]];PERS string stTemp:="wobj0";PROC Main()GetSysData wobjTempObjectName:=stTemp;TpWrite stTemp;ENDPROC[/code]Where:wobjTempis a persistent or variable that will have the value of the current workobjectstTempis a persistent or variable string that will have the name of the current workobject
You can change wobjTemp with a tooldata or loaddata to have the same effect with those datatypes.
att.
Rulv2009-02-22 04:16:510
Categories
- All Categories
- 5.4K RobotStudio
- 382 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 281 IRC5
- 48 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 739 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings