Author Topic: Streaming values to computer UDP or TCP KRC4  (Read 311 times)

Newsum

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 4
    • View Profile
Streaming values to computer UDP or TCP KRC4
« on: April 23, 2021, 07:44:44 PM »
Hello everyone,

I am interested in streaming values of user defined variables to a computer from the controller. I am looking into what packages might be required for KRC4 to achieve this.
I do not have EKI and would like to know if anyone here has experience with it. I have used very similar tech packages for Staubli and ABB with great success.
EKI seems to be the best option from the documentation I have seen, but I don't have a way of testing before purchasing.

I do have RSI, but I am not as interested in streaming motion parameters. Has anyone used RSI to stream values other than motion controls?
I also have KLI for RemoteView, but I don't see how I could get the values out of remote view.

If anyone has ideas or experience, I would appreciate your input. I am about to go down the rabbit hole of CRead and CWrite and wanted to check in to see if there is a better way forward.

Kind regards,
Jake

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1133
    • View Profile
    • Robots in Architecture
Re: Streaming values to computer UDP or TCP KRC4
« Reply #1 on: April 23, 2021, 10:39:43 PM »
Hey Jake,

How are you doing? You should be covered with RSI unless you want to do something super specific. There are pre-built variables to send things like the current position back to your PC.
To get arbitrary numbers to the KRL side of things, you can use Map2Sen_PRea that maps a value to the variable $SEN_PREA and Sen_PRea which reads the variable. It's an array of 20 reals. There is also Sen_PInt with integers.

The "Ethernet" example in the DOC/Examples/Ethernet is useful for the configuration.
We've done a few things now with RSI, let me know if you get stuck somewhere!

Best,
Johannes

Newsum

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 4
    • View Profile
Re: Streaming values to computer UDP or TCP KRC4
« Reply #2 on: April 26, 2021, 03:35:20 PM »
Thanks, Johannes!

We are doing great here. I finally have a bit of free time to develop some features that have been left behind.

Thanks for the feedback about RSI. I will look into this more and let you know if I run into any issues.
I'll check out the examples as well.

Kind regards,
Jake

Newsum

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 4
    • View Profile
Re: Streaming values to computer UDP or TCP KRC4
« Reply #3 on: April 26, 2021, 07:30:56 PM »
The "Ethernet" example in the DOC/Examples/Ethernet is useful for the configuration.

Hey Johannes,

I can't find the "Ethernet" example. Are there other examples than the ones on the Tutorials page?

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1133
    • View Profile
    • Robots in Architecture
Re: Streaming values to computer UDP or TCP KRC4
« Reply #4 on: April 26, 2021, 09:58:48 PM »
Hello Jake,

I don't think that example is "secret", so I'm attaching it below! It's for RSI for KSS8.6, if you are running 8.3 let me know and I'll get you the definition in the older format.

Best,
Johannes

Newsum

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 4
    • View Profile
Re: Streaming values to computer UDP or TCP KRC4
« Reply #5 on: April 26, 2021, 10:42:38 PM »
We are actually running KSS8.3.

I will look through these examples. Thank you for sharing!

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1133
    • View Profile
    • Robots in Architecture
Re: Streaming values to computer UDP or TCP KRC4
« Reply #6 on: April 27, 2021, 02:02:46 PM »
That should be the 8.3 version of it!
Best,
Johannes