Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

Defining new RAPID instructions and appending code to an existing module

Hi!

I have just started working with the RobotStudio SDK so my knowledge is quite limited. At the moment, I try to figure out what are the possibilities and limitations.

What I want to design is the combination of an addin and a RAPID library that is used together. The addin is used to autogenerate some code (including robtarget and procedures) that results in a module file (.mod) which is synhcronized to the station and executed on the robot. The procedures are defined in my RAPID library.



In that respect, I have two questions:
  1. Is it possible to define and compile new "core" RAPID instructions based on code written in for instance C#? The reason I want to do so is because my RAPID library is going to contain some mathematically cumbersome functionality requiring linear algebra and the like. This would be a lot easier to implement if I could make use of existing linear algebra libraries implemented in .NET or other frameworks.
  2. What is the best way of writing robtargets and PROC-calls to a module file using C#? Lets say I have an existing module file called mymodule.mod that I want to append
    some robtargets and PROC-calls to.
Best Regards,
Andreas

Comments