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

Lexium32M EtherCat

artemka
2016-04-06
2016-04-19
1 2 > >> (Page 1 of 2)
  • artemka - 2016-04-06

    Hello! I'm having trouble connecting Lexium32M servo through Etherchat ,the error in the servo b122 -"One signal was missing and
    expected second signal was
    received at an incorrect point
    in time. The master controller
    may be unable to provide the
    required synchronization signals
    at the current cycle time,
    for example, due to insufficient
    computing power.Analyze the communication or
    increase the cycle time". What to do next, I Do not Know

    IMG: error1.png

     
  • eschwellinger

    eschwellinger - 2016-04-06

    Hi,
    is your eth0 exclusive used for ethercat ?
    1:1 connected to Lexium32?
    you need a realtime pachted kernel for using SoftMotion with distributed clocks.

    Seach the froum for 'emlid' this should point you in the right direction.

    BR
    Edwin

     
  • artemka - 2016-04-06

    Thank you for the quick reply! will try your advice!

     
  • artemka - 2016-04-07

    Edwin Schwellinger hat geschrieben:
    Hi,
    is your eth0 exclusive used for ethercat ?
    1:1 connected to Lexium32?
    you need a realtime pachted kernel for using SoftMotion with distributed clocks.
    Seach the froum for 'emlid' this should point you in the right direction.
    BR
    Edwin

    Hi! Your advice did not help me, error active(

     
  • artemka - 2016-04-07

    Pi may need to configure?

     
  • eschwellinger

    eschwellinger - 2016-04-07

    Hi,

    my recomendation was:
    1. Use rt_preempt pacthed Raspberry Pi Image - 'emlid'
    2. Use the eth0 for ethercat 1:1 Connection nothing else is connected on eth0 except the Lexium32
    3. Login to the PI with CODESYS either by Wlan or by a USB-Ethernet Adapter (eth1)

    Then it will work.
    If not:
    Check the plc logger for details.
    Add the name of the drive SMC_ETC_Schneider... into the Watchwindow and check the Errors
    Give us Information what the 7seg display on the drive reports (which error No)

    BR
    Edwin

     
  • B.Roth - 2016-04-07

    Hello
    I have done some test with Lexium Drives (M,I integrated) on EtherCAt with the Rasp.
    I hve used the real time patch (Elimd) and the DC are working and the Lexiums could fully controlled by the softmotion.
    I used a CNC application and the rasp is powerful enough.
    The only restictions are sometimes some jerks on the EtherCAT. I think the reason is the Ethernet on the USB and the runtime has a too big jitter.
    When you select a cycle time of 4ms these jerks disapear.

    Bruno

    IMG: somo_rasp1.JPG

     
  • B.Roth - 2016-04-07

    Hello If you do not need the softmotion and no hard synchronization
    you could also use the lexium drives with DS402 profile position mode
    I did already an example with some easy blocks to use Lexium32M, Lexium32I and ILx.

    I will post my examples and a descripition

    Bruno

    IMG: rasp_Ds402.JPG

     
  • artemka - 2016-04-07

    Thank you! You can give a link to rt_preempt pacthed image raspberry Pi 'emlid' ?

     
  • artemka - 2016-04-07

    Thank you! You just need to install it?

     
  • artemka - 2016-04-08

    Edwin Schwellinger hat geschrieben:
    Hi,
    my recomendation was:
    1. Use rt_preempt pacthed Raspberry Pi Image - 'emlid'
    2. Use the eth0 for ethercat 1:1 Connection nothing else is connected on eth0 except the Lexium32
    3. Login to the PI with CODESYS either by Wlan or by a USB-Ethernet Adapter (eth1)
    Then it will work.
    If not:
    Check the plc logger for details.
    Add the name of the drive SMC_ETC_Schneider... into the Watchwindow and check the Errors
    Give us Information what the 7seg display on the drive reports (which error No)
    BR
    Edwin

    Hello! The log shows 2 errors, the error on the display b122 -cyclic communication: incorrect
    synchronization -One signal was missing and expected second signal was received at an incorrect point in time. The master controller may be unable to provide the
    required synchronization signals at the current cycle time,for example, due to insufficient computing power.Analyze the communication or increase the cycle time.

    log.xml [34.71 KiB]

     
  • eschwellinger

    eschwellinger - 2016-04-08

    Hi,
    you mean you are using Pi B or PI B+ instead of PI2 oder PI3?
    Did not test it with PI B/B+ not sure you Need to give this a try.
    PI2 is prooved to work with that Image.

    BR
    Edwin

     
  • artemka - 2016-04-08

    Edwin Schwellinger hat geschrieben:
    Hi,
    you mean you are using Pi B or PI B+ instead of PI2 oder PI3?
    Did not test it with PI B/B+ not sure you Need to give this a try.
    PI2 is prooved to work with that Image.
    BR
    Edwin

    hi! Use PI2, did as you said there is no result(

     
  • artemka - 2016-04-09

    Hello! Here is a screen with my Raspberry. Maybe you can help?

    IMG: IMG.jpg

     
  • B.Roth - 2016-04-11

    What is the problem?
    You have now a realtime linux. You have to install the CODESYS-runtime and then
    you could use my examples. (with a second ethernet-adapter)

     
  • artemka - 2016-04-11

    Hello!Following your advice I have set that image. Could you tell me about next steps, perhaps it demands additional settings for raspberry?

     
  • artemka - 2016-04-11

    B.Roth hat geschrieben:
    What is the problem?
    You have now a realtime linux. You have to install the CODESYS-runtime and then
    you could use my examples. (with a second ethernet-adapter)

    Hello, I have set the realtime linux, but the problem didn't disappear. The error the same like in my first message.

     
  • B.Roth - 2016-04-13

    How do you connect with CODESYS? on the same port you are using the EtherCAT?

    You need a second Ethernet Interface (e.x. USB to Ethernet or WIFI) to connect with CODESYS.
    On the EterCAT only connect the Lexium32

    Bruno

     
  • artemka - 2016-04-13

    B.Roth hat geschrieben:
    How do you connect with CODESYS? on the same port you are using the EtherCAT?
    You need a second Ethernet Interface (e.x. USB to Ethernet or WIFI) to connect with CODESYS.
    On the EterCAT only connect the Lexium32
    Bruno

    With codesys I connect via eth1,and eth0 for LXM32 via 1:1.After initialization error Ethercat immediately on the drive. If You have the opportunity to do work with your Raspberry and post, I'll be highly grateful!

     
  • B.Roth - 2016-04-13

    Hello,

    if you got this EB122 -error on the drive than you have really a problem with the realtime or your EtherCAtT-Task is not runnig correctly.

    Have you tried my easy example:

    Also please check the version of devices, firmware in the drive.

    Bruno

    IMG: sturup_Cycletime.JPG

    IMG: version1.JPG

    IMG: version2.JPG

    rasp_somo_35_sp8_lexium32M_startup.project [315.94 KiB]

     
  • artemka - 2016-04-13

    B.Roth hat geschrieben:
    Hello,
    if you got this EB122 -error on the drive than you have really a problem with the realtime or your EtherCAtT-Task is not runnig correctly.
    Have you tried my easy example:
    Also please check the version of devices, firmware in the drive.
    Bruno

    Hello! I tried Your project, same error, the firmware version of the drive I will throw off later.

    IMG: 1.png

    IMG: 2.png

     
  • B.Roth - 2016-04-13

    Hello,

    please press "ResetMinMax" on the Tracer (the first measuring is not correct)
    Then you could see the real Jitter.
    Also try if you could reset the error on the drive itself or with MC_Reset
    Do you also have some other errors in the EtherCAT-Device or the Softmotionaxis?

    or in the log of the PLC ?

    Bruno

    IMG: status_ecat.JPG

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.