RobotStudio event

Pass Selected robtarget in Program Editor to a PROC?

Without having to develop a full-fledged FlexPendant application, is at all possible via RAPID to pass to a PROC the robtarget (either its name or the data itself) that's currently selected in the Program Editor? Much in the same way that you can select a robtarget->Debug->View Value or robtarget->Debug->Modify Position, etc.

What I'm trying to achieve is a spin-off of "Go to Position" but with the active displacement applied -- a "Go to Offset Position" if you will.

I've scoured the TRM for a means of grabbing the selected target, but haven't had any luck.

Answers

  • lemster68
    lemster68 ✭✭✭
    Which program editor?  The pendant or robotstudio?
    Lee Justice
  • Sorry, I should have made that more clear. It's the Program Editor on the FlexPendant.
  • Micky
    Micky ✭✭✭
    Hello,

    I think this is not possible, because you cannot call a routine from the editor which has parameters.
  • lemster68
    lemster68 ✭✭✭
    I am thinking maybe you could do a data search for robtargets and prompt the user to select one.  Then you could pass that selected robtarget into a routine which would contain the move instruction.  Could be rather tedious though.
    Lee Justice