I have to make communication between PC and robot controller but i dont know how.Can anybody help me ?
connection of PC to robot controller via ethernet
-
memistryboy -
August 3, 2013 at 11:16 PM -
Thread is marked as Resolved.
-
-
What controller?
It's possible on KRC1, 2 & 4 but how to connect varies between them.
Sent using Tapatalk 4.
-
the controller is KR C4. i have to make connection via ethernet
-
Inside the cabinet there is a port marked KLI plug the Ethernet cable there, unless you have an X66 at the bottom.
Then Start-up> Network (something like that!) and set your IP address there.What do you want to connect?
Sent using Tapatalk 4.
-
What kind of connection are you trying to make? What option packages do you have installed on the robot?
-
I know In the KLI i have to configure the IP of the Controller but i dont know how?
And in the c\KRC\ROBOTER\Config\User\Common\EthernetKRL\*.xml
I have to configure the IP of the external PC but when i reached here c\KRC\ROBOTER\Config\User\Common\EthernetKRL nothing will happen after clicking EthernetKRL.
-
Well, I don't have a '4 in front of me right now, but I believe that, after logging in as Expert or higher, you can go to the Startup menu, and there should be sub-menu titled Network Configuration. You need to select the KLI interface (Virtual Network 5, I think?) and change it from DHCP to a fixed IP on the same subnet as your external PC.
NOTE: IF YOU FIND AN INTERFACE ALREADY SET TO 192.168.0.anything, DO NOT TAMPER WITH IT!!!. That is NOT the KLI interface, but an internal system interface that will kill the robot if you tamper with it.
As for "Clicking on EthernetKRL," what do you mean? That's not normally something you "click on."
-
Refer the screen shot how to configure the IP Address. You need the Ethernet KRL package installed in your control box.
Login in Expert mode
Main Menu --> Start-up-->Network Configuration
Select the Fixed IP Address from the Address type ComboBox
Provide the IP Address that matches with your network
provide the subnet mask:
standard gateway : you can leave 0.0.0.0 as well. -
I am new to programming robots. I reached upto c\KRC\ROBOTER\Config\User\Common\EthernetKRL this path .I have to configure IP of external PC in
c\KRC\ROBOTER\Config\User\Common\EthernetKRL\*.xml
Actually my project is :
I will get data in array format in C#(x & y coordinates) and i have to transfer that data to kuka robot.
First PC will capture the photo and convert it in to bitmap then i will get the x/y line coordinates in array format(C#) and i have to transfer this information to Kuka robot to redraw the photo.
Can you tell me how to send xml file to the controller? -
Have you read the EKX manual yet?
Also, look in the D: drive of the robot. There will be a copy of the install disk for EKX in one of the directory trees (should be KUKA_OPT), and inside that directory should be a set of sample files. There should be an SRC/DAT module for the robot, and a sample .C file for the PC. It's very bare-bones, but it illustrates the concept. Basically, the "server" program runs on the PC, waiting for a request from the robot. The robot sends a request, usually packaged as part of an XML data file, and receives back a set of XML data. Pretty much any data, of any kind, is valid, as long as your XML schema is valid.
There's not a whole lot of people out there with experience doing this with KRC4s as yet -- too new. On the KRC2, the robot could only be a client, but I believe that with the KRC4, it's possible to make the robot act as the server. But I have never seen this done, so I can't speak to it.
-
I made two programs in C# (one for server and other for client)to provide a communication path between PC & robot controller but now my problem is how will i transfer my xml file to the controller?
Do i need work visual software to install on my PC? -
You don't transfer an XML file -- you transfer a set of values packaged inside an XML file format. On either end, the XML formatting is stripped and the data values are transferred into program variables. The example programs demonstrate how this works.
-
Thanks a lot for your reply. Can you give me a example how the data values are transferred in to program variables?
Assume if i have to transfer this data to controller
<Cordinate>
<xCordinate>2</xCordinate>
<yCordinate>4</yCordinate>
<NoOfLines>1</NoOfLines>
</Cordinate>
<Cordinate>
<xCordinate>3</xCordinate>
<yCordinate>6</yCordinate>
<NoOfLines>2</NoOfLines>
</Cordinate>
</CordinateList>
then how will i send this data? -
The example programs illustrate all this, completely.
-
Thanks for your reply.Your guidance helped me a lot.
Where will i find the example programs? Can you send me if you have one? -
https://www.robot-forum.com/robotforum/kuk…49229/#msg49229
If you keep ignoring what people tell you, you'll find yourself getting less help.
-
Under KUKA_DATA/KRC_OPT/ETHERNETKRL/DOC your'l find the documentation pdf-files in german and english. These can help you. There are also some program and XML examples in that folder.
-
In the attached photo i have one problem as i dont know how can i send data(means in which format)
As in line number 10 it is written Write data to connection afterwards Send data to external program
Can anybody help me regarding this problem?
I will be very thankful -
Use FOLD OPEN on that line. Any line in red on the teach pendant is generally a closed Fold.
I recommend you download the OrangeEdit program from OrangeApps.de and use it on a copy of this file pulled from an Archive of the robot.
-
Hello
Thanks for your reply. I have one question, do i have install this program in my PC o controller. What is the benefit of this program? As i do not know anything about this, can you please elaborate?
My basic problem is i do not know how to send xml datafile to robot!Thanks in advance!
-