Author Topic: Help with communication (Ethernet KRL) between robot (KRC4) and server(C# app)  (Read 261 times)

0 Members and 1 Guest are viewing this topic.

Offline dangfu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
Hi,

I'm working on a project where I need to communicate with a kuka robot (KRC4 controller). TCP/IP programming by exchanging xml data is what I'm aiming at (C# application acting as server and robot as client). Unfortunately, I don't have access to the KRC4 yet so my team and I need to be prepared as much as possible (using our time effectively) until the robot arrives. I'm having a very hard time differentiate an XML configuration, xml data, .src files ... and so on.

Can anybody can clear this up for me. Keep in mind that I don't have direct access to the robot yet and thank you for reading.   

Offline panic mode

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 77
  • -Receive: 789
  • Posts: 4897
you can use example server application that is delivered with EKI and putty.exe as a client.
this will allow you to exchange data between two nodes.


once this part is working, you can use c# to replicate functionality of either of the two sides.



1) http://www.robot-forum.com/robotforum/kuka-robot-forum/read-first/
2) if you want reply about robot, post it in forum
3) read 1 and 2

Offline dangfu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
The C# replication is already done on my part (where I exchange XML file between C# server application and C# client application). However, I'm not sure what to send or what I'm suppose to receive exactly (point of view of C# server application). Am I receiving:

1. An entire XML configuration file?
2. One line of data?, example: <Nmb>8</Nmb>
3. Just the value inside? 8 for example
4. Something else

Thank you

Offline panic mode

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 77
  • -Receive: 789
  • Posts: 4897
configuration file (an XML file) is used to provide network setup and data structure but transferred data block (could be also an XML structure) is not the configuration file itself, it is string that is formed according to configuration file and populated with data values..

1) http://www.robot-forum.com/robotforum/kuka-robot-forum/read-first/
2) if you want reply about robot, post it in forum
3) read 1 and 2

Offline hermann

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 76
  • Posts: 345
You should get the documentation and the sample server / client application for "Ethernet KRL", and everything will be clear. Not sure wether it is ok to post that here (the manual can be found here, but the example server/client?)

« Last Edit: November 10, 2018, 10:39:52 PM by hermann »

Offline dangfu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
Unfortunately, I don't have the robot yet so no "sample server / client application for Ethernet KRL"

I attached an example of configuration file, data block (sent and what I expect to receive from the robot). Tell me if anything is wrong.

Thank you.