Convert name of Work Object to a string
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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings