Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Softmotion, stepper motors and Beckhoff EL2521 terminals

2018-01-12
2020-05-05
  • ibantxispas - 2018-01-12

    Good afternoon,

    I am trying to drive 2 stepper motor with Beckhoff EL2521 pulse generators.

    If I scan ethercat bus, codesys find EK1100 coupler and 2 EL2521 terminals, but don´t use softmotion drive. If I go online and run there isn´t any error. The Ethercat bus is running.

    If I manually insert EK1100 coupler and 2 EL2521, I can choice EL2521 terminal with softmotion drive but when I go online and run my proyect there is a configuration error and ethercat terminals don´t work.

    How can I use EL2521 terminals with softmotion drivers?

    thanks, regards,

    Iban

     
  • eschwellinger

    eschwellinger - 2018-01-12

    Hi,

    you need to post the errors otherwise we could not help.
    Please send the plclog... guess you will see there the error reason.

    BR
    Edwin

     
  • ibantxispas - 2018-01-12

    Hello,

    How can I get plclog?
    How can I upload a Image?

    thanks,

    Ivan

     
  • ibantxispas - 2018-01-12

    Hello,

    I revised online help, I attach you photo

    thanks regards,

    Iban

    IMG: PLCLOG.jpg

     
  • ibantxispas - 2018-01-12

    I attach you some photos

    thanks, regards,

    Ivan

    IMG: EL2521_no_softmotion.jpg

    IMG: el2521_softmotion.jpg

     
  • eschwellinger

    eschwellinger - 2018-01-13

    Hi,
    I think the problem is caused by using Control Win.
    This plc is not realtime capable. The SoftMotion drivers need an activated distributed clock setting.
    Now you have two options: Switch to Control RTE or any other realtime capable plc type this is the best solition
    or wait for my description ( i need to check) how to work around it with Control Win (not sure if this works reliable maybe more for testing pupose)
    This does only work with this ELxxxx kombination... not with other drives.
    BR Edwin

     
  • ibantxispas - 2018-01-15

    Good aftenoon,

    I have tested using Raspberry pi and is in green. No configuration error.
    I attach photo.

    I don´t test a stepper motor still but at least there isn´t configuration error.

    I haven´t option of RTE in my installation of codesys, Have I to download from codesys store RTE software and install?

    I will like use my PC as PLC.

    thanks, regards

    Iban

    IMG: EL2521_pi.jpg

     
  • eschwellinger

    eschwellinger - 2018-01-16

    Hi,
    you Control RTE from the CODESYS store.
    Sure with Pi it will work, if not you need to a apply a rt_preemt realtime patch.

    BR
    Edwin

     
  • ibantxispas - 2018-01-17

    Hello,

    I am going to test

    Thnaks

     
  • duyngdang - 2019-10-20

    Hi ibantxispas

    Did you do successfully with Beckhoff EL2521 terminals?

    Do you use RTE or just normal Pi control

    Please share for me, I involve same project with you

     
  • Anonymous - 2019-12-16

    Originally created by: dosnova

    Has anyone tried with EL2521 and control Win V3?

    I'm not able to get it working..

     
  • eschwellinger

    eschwellinger - 2019-12-16

    Hi,
    please try this:

    BR
    Edwin

    IMG: SyncWindow.png

     
  • Anonymous - 2020-01-13

    Originally created by: dosnova

    Hello Edwin,

    We are working with Softmotion RTE and EL2521 to drive stepper motors in pulse/dir configuration.

    Working with MC_Jog instances we observe erratic behavior when JogBackward is activated.

    In JogFordward motion we see that leds in EL2521 modules blink as expected ("A" led blinks and "B" led fixed).

    In JogBackward motion we see that motor does not work and leds do not blink as expected. Both "A" and "B" leds blinks.

    This is not the expected behavior for pulse/dir configuration.

    Suggestions are wellcome..

     
  • Anonymous - 2020-01-28

    Originally created by: dosnova

    Dear All, I've found that EL2521 driver does not work with EL2521-0024 nor EL2521-0025 cards (EL2521 NPN and PNP 24V tolerant outputs). Only EL2521-0000 card with RS-422 differential outputs seems to work..

     
  • maxmorper - 2020-05-05

    HI Guys, I am new here and I am in need of some advice.

    I want to create my own delta robot and control it with a Raspberry pi and CODESYS robotics. Do you know if I could use the EK1100 Coupling and the EL2521 pulse train output for this?

    How can I add those products in the "Insert Device" CODESYS window? I can not find them.

    Thanks folks!!!

     
  • eschwellinger

    eschwellinger - 2020-05-05

    hi,
    just scan these Ethercat devices - and then -> update device from the default EL2521 to the one which comes with the CODESYS setup including SoftMotion.

    BR
    Edwin

     

Log in to post a comment.