Hello guys!
I have one question about PC SDK. I would like to do PC application in c# with SDK library. Last month we got new irb 120 robot arm and now it will be use for educational purpose. Is it possible that I can write entire module and procedure in c# language and than it sends to irc5 controller or I can send only few parameters as RobTarget, Num, Bool on controller where the program is loaded beforhand.
Thanks for help guys!
Samo
Hi
The language that you are using when you are programming the robot is RAPID. You can use C# for writing an application that will transfer modules, written in RAPID, to the robot. If you are new to the PC SDK I strongly recommend that you read the section Using the PC SDK->Create a simple PC SDK application in the attached application manual.
webwiz/151/PC_SDK_Application_Manual.zip
I read this article. Now I start with c# programming language and PC sdk. I am write in c# next code:
public Form1()
{InitializeComponent();
this.scanner = new NetworkScanner();
this.scanner.Scan();
info = scanner.Find(new Guid(“{EEEFF971-5943-4FDE-80F8-BD10FC7797DC}”));
controller = ControllerFactory.CreateFrom(info);
}
private void Form1_Load(object sender, EventArgs e)
{
if (info.Availability == Availability.Available)
{
if (this.controller != null)
{
this.controller.Logoff();
this.controller.Dispose();
this.controller = null;
}
this.controller = ControllerFactory.CreateFrom(info);
this.controller.Logon(UserInfo.DefaultUser);
}
else
{
MessageBox.Show(“Selected contoller not availabe.”);
}
}
When the program comes to below statement
this.controller.Logon(UserInfo.DefaultUser);
then I get exception with next text: PC Interface option not found. Now i do not know, where is problem.
Thanks for help!
An IRC5 controller can be accessed by a PC Application only if the system has the robotware option 616-1 PC Interface.
BR