RobotStudio event

Generation of new RAPID code-lines via SDK

Hi.
Is it in any way possible to generate new lines of rapid instructions in a module of an active station, using an Add-in written in C# in visual studio?
Eg. if I want my add-in to generate a number of speeddata dataobjects, or if I want to add an "CirPathMode\CirPointOri" instruction to my RAPID module.
This means that I do not wish to alter existing rapid instruction, but to add new ones.

Sincerely  Patrick

Comments

  • Hi Patrick,

    I think you should to create a files .mod as a file .txt but with the good extension.
    You can use the function StreamWriter in C# for do this,

    After this, go to developper center ABB and such a function who spell : LoadModuleFromFile

    Use it and you are a new module in your rapid code.

    Regards,

    Armand
  • Hi Patrick,

    did you succeed?

    There are basically two approaches.

    On is to use standard .NET libraries to generate a module file, like Armand suggested.

    Another one is to use the RobotStudio SDK to create objects in the 3d view like robtargets, move instructions or action instructions (like SetDO and CirPathMode). Then synchronize to the controller.

    Tell me if this is still an open issue for you.


    Best Regards, Niklas Skoglund
    ABB Robotics

    Developer Center
    RobotStudio Blog