RobotStudio event

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

Comments

  • I think ArgName does what you want.

    regards,
    Johannes
    Johannes Weiman
    Software Engineer
    ABB Robotics
  • 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:

      wobjTemp 

    is a persistent or variable that will have the value of the current workobject

      stTemp

    is 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:51