RobotStudio event

automatic tool search

Hello,

I'm still a beginner with Abb and robotstudio.

I want my programm to search automatically for new tooldata. The new tools must be written in a commandbox so that the user only has to click on the correct one to use it.

Unfortunately I have no idea how to make it work.

 

I hope one of you has an idea.

 

Tami

Comments

  • Hello,

    I believe you are trying to create an application targeting the FlexPendant:

    Using ScreenMaker - All tooldata names could be stored in an Rapid array and can be bound to a control like combo box. On change in combox box selected index, read the value of tool data and display it a control like label, etc. 
    The solution above is more like you are reading from a rapid array. It will not find any new tooldata that is made available. 

    To find new tooldata, you can write a .NET method which finds new tooldata and updates the rapid array.

    Thanks
  • Thats my code:

     

    Var datapos block;
    Var string name;
    Var tooldata infos;
    Pers num zaehler;
    Pers string Werkzeugnamen {10};
    Pers string Werkzeugdaten {10};

    Proc Werkzeuge()

    Zaehler := 0;
    SetDataSearch "tooldata" Object := "t.*" InMod := "Hauptmodul";

    WHILE GetNextSym (name,block) DO
    Zaehler := Zaehler + 1;
    GetDataVal namelock :=block, infos;
    Werkzeugnamen {zaehler} := name;
    Werkzeugdaten {zaehler} := infos;

    ENDWHILE

    ENDPROC

     

    I link the array to the Combobox. Works great even if i am still annoyed that there isn`t a dymatic array like in info.