Author Topic: Running stepper from KRC4  (Read 513 times)

Sailor Soane

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 9
    • View Profile
Running stepper from KRC4
« on: April 11, 2017, 10:06:26 PM »
Hi all,

Does anyone have experience running an external stepper from within KRL? I've integrated a Beckhoff EL7047 to run the stepper and will probably start sorting out the process tomorrow. I thought I'd check in to see if anyone has any feedback/advice/etc. about this before I get started as its not something I've ever done before. Many thanks in advance.

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 556
    • View Profile
    • Robots in Architecture
Re: Running stepper from KRC4
« Reply #1 on: April 12, 2017, 10:21:34 AM »
Hello,

I do remember KUKA telling me that it is not a supported element, but that usually shouldn't stop it from working. However, I quickly tried to add it to a WorkVisual project, and only the EL7031 showed up, even though I definitely also imported the EL7047.
From looking at the IOs via CodeSys (see screenshot) I'm not sure how easy it will be to control a stepper through KRL as it seems that you will have to define your own logic etc. In systems like TwinCAT and CodeSYS you have specialized software modules that make it easier to use steppers in a more "abstract" way.
Please let me know if you get it to work!

Best,
Johannes
« Last Edit: April 12, 2017, 10:23:06 AM by Johannes @ Robots in Architecture »

Sailor Soane

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 9
    • View Profile
Re: Running stepper from KRC4
« Reply #2 on: April 12, 2017, 05:25:51 PM »
I had the same issue, so I loaded the DTM files from 2015 and now the 7047 shows up. I was able to add it to the stack in WoV and route most of the I/O (but not all) - amazingly, I'm not getting any X44 errors once pushed to the controller. I'll let you know how this goes...

Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 556
    • View Profile
    • Robots in Architecture
Re: Running stepper from KRC4
« Reply #3 on: April 12, 2017, 05:41:24 PM »
Sounds good - great idea with the old definitions!
Were the problematic IOs the UINTs, such as the "ENC status compact"? At the moment, I don't really have a good idea on how to link them, but I may just be tired ;)
For more settings, in case you haven't seen that yet, you can double-click the module and the go into the tab "Modules", where you can set a variety of stepper properties, such as the Kd factor etc.
Best,
Johannes

Sailor Soane

  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 9
    • View Profile
Re: Running stepper from KRC4
« Reply #4 on: April 12, 2017, 05:54:46 PM »
Yes, the UINT's are the ones without corresponding routes. I'm going to see if I can get basic functionality without them.

Very helpful - I had no idea I could pull that menu up for an ethercat component. Thanks!