Unable to get My C# app to start a rapid in Robot Studio
TTalma
✭
I am new to Robot Studio and am attempting to learn how to interface and command a robot from a C# application
I have written a simple app to find available controllers and connect to RobotSudio.
My app finds the RobotStudio controller I have running on my PC. I am attempting to connect to it using the following code:
I have written a simple app to find available controllers and connect to RobotSudio.
My app finds the RobotStudio controller I have running on my PC. I am attempting to connect to it using the following code:
m_Controller = Controller.Connect(controllerModel.ControllerInfo, ConnectionType.Standalone);
m_Controller.Logon(UserInfo.DefaultUser);
At this point I do not think my connection is correct. When I run this against an older application I downloaded and compare old applications Controller to my m_Controller variables they are different. My data is virtually empty and the old application is populated. I am expecting to see some data such as the IPAddress, but it is empty.
When I try to run the rapid using the code below:
I get a "ABB.Robotics.GenericControllerException", I suspect this is because I am not actually connected.
Could anyone point out what I am doing wrong or tell me how to troubleshoot this so I can discover what I need to do differently?
At this point I do not think my connection is correct. When I run this against an older application I downloaded and compare old applications Controller to my m_Controller variables they are different. My data is virtually empty and the old application is populated. I am expecting to see some data such as the IPAddress, but it is empty.
When I try to run the rapid using the code below:
RapidData rapidData = m_Controller.Rapid.GetRapidData("Module1", "Path_10");
I get a "ABB.Robotics.GenericControllerException", I suspect this is because I am not actually connected.
Could anyone point out what I am doing wrong or tell me how to troubleshoot this so I can discover what I need to do differently?
0
Answers
-
Hello there!
Check out the pinned post in this section of the forums: https://forums.robotstudio.com/discussion/12056/pc-sdk-examples
If I remembered correctly I cover the basics of connecting to a controller there, and the code is available too.—Maxim RiabichevPC Software Support Engineer0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings