Hello!
Can anybody send me an example of RS5 .NET solution please?
Is it possible to use VisualStudio 2005 with RS 5.06 or I must downgrade to VS 2003?
My e-mail is sergej.saibel@allelektro.se
Thank you for your help!
Hello!
Can anybody send me an example of RS5 .NET solution please?
Is it possible to use VisualStudio 2005 with RS 5.06 or I must downgrade to VS 2003?
My e-mail is sergej.saibel@allelektro.se
Thank you for your help!
Hi
RS 5.06 is only compatible with VS2003. In the next version 5.07 you will be able to use VS2005.
But you don’t need to uninstall VS2005. VS2003 and VS2005 runs side by side.
There are 5 public assemblies in the RS API
Addins should be placed in the folder Addins
"where ever you installed RS"RobotStudioin
When you start RS it will look for an “AddinMain” procedure in the assemblies place in the Addin folder.
Be aware of than when you have added a reference you need to change the property “Copy Local” to false before you build. This only applies if you have setup VS to build to that specific addin folder described previously.
Unfortanally we don’t have any generic Examples/Documentation of the complete API so for now you have to try it out yourself. Or post a message here and I will tell you to do it.
To make things easier for me,you and others reading the this thread don’t ask for a complete solution just ask how to do a specific task like “How to create a Target with RS API”
Here is just a simple example how to attach a toolwindow docked to the right that holds a usercontrol with one button displaying the famous “Hello World” message when pressed.
Hello Per and many thanks for the demo example!
Now I have some “how to do” questions. It would be kind of you to explain me how to:
1.Load a station
2.Load a program into virtual controller
3.Save program from virtual controller into a file.
4.Import a library into RobotStudio
5.Attach/Detach a part to the robot then a signal becomes high/low.
6.Set/reset an IO signal
7.Sync path to controller/Sync controller to station if this operations exist in RobotStudio 5.
8.Is it possible to load system parameters (f.ex. EIO.cfg) via API?
Thank you again!
Hi
The RS API only have functions for working with the RS application and not the controller. If you want to work with the controller you should use the PC SDK included in Robot Application Builder and it has it’s own thread here in the forum. So your questions 2,3,6,8 and some part of 5 (listening on the IO event) are questions for that thread.
The load function isn’t complete yet. Only works if there is no controller attached to it. Here is an example how to do it
Load_Station.zip
Here is an example how to load a library
Load_Library.zip
To be able to find out what to sync from the controller to the station you need to use RAB to read what’s in the controller and after that you can use the RS API function SyncPathProcedure.
Here is an example how to SyncToVC from RS API
SyncToVC.zip
Hi,
nice to find some more information about the sdk here in the forum. But unfortunately I wasn’t able to download the zip files (Error 404). I would be glad if these files could be available again.
And I have some more questions.
Thanks in advance.
Thomas
Hi Thomas,
Yes, on the Body object there are methods for creating geometric entities. And you can use Part.Load to import files.
If you use the API outside RobotStudio, you must always start with a call to RobotStudioAPI.Initialize() and end with RobotStudioAPI.Shutdown(). Then you should be able to create/load a station or a part and use that as the RootObject for your GraphicControl.
Note though, that there’s a lot of stuff going on behind the scenes that won’t necessarily work outside RS.
regards,
Johannes
Hi
Due to that we have moved the forum to a new server it seams like some attachments where lost so here they are again
2006-03-27_082852_RS50_API_Demo.zip
2006-03-27_083035_Load_Library.zip
2006-03-27_082945_Load_Station.zip
2006-03-27_083013_SyncToVC.zip