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

BBB EtherCAT Master

timinio99
2016-12-11
2017-09-03
  • timinio99 - 2016-12-11

    I have a BB Black as EtherCAT Master and two Nanotec motor controls as Slaves. When i start my test programm, the status says "EtherCAT : lΓ€uft nicht(not running)".
    It's my first project with EtherCAT, so i am not sure about the setup... Can someone please explain me step by step, how to configure it?

    IMG: testprogramm.jpg

     
  • eschwellinger

    eschwellinger - 2016-12-12

    Hi,
    hm.. you need to add the screenhot in online mode.
    and give us the plc logger.

    BR
    Edwin

     
  • timinio99 - 2016-12-13

    IMG: online mode.jpg

     
  • timinio99 - 2016-12-13

    here is the exported device log.

    plc logger.rar [1.95 KiB]

     
  • eschwellinger

    eschwellinger - 2016-12-13

    Hi,

    AL Status read from slave address 1002 status 16#1D
    Invalid Output Configuration
    Would check the pdo configuration.
    Maybe you could add the projectarchive.

    BR
    Edwin

     
  • eschwellinger

    eschwellinger - 2016-12-15

    Hi,
    please set the option 'FrameAtTaskstart' some drives react sensitive on jitter in the receiving the ethercat frames.
    Do you have applied an rt_preemt patch on our beaglebone Linux kernel for realtime capabilties?
    Next step would be to activate distributed clocks on the slaves and check if this will solve the issue (distributed clocks are mandatory on using cyclic position mode / for SoftMotion)
    Projekt looks ok for me.
    One remark:
    How do you Login to the beaglebone with the CODESYS Development System?
    The eth0 should be used exclusive by ethercat - BBB -> connected 1:1 with your two drives. (no TCP/IP communication by etho beside ethercat)
    How to do this?
    Either use a USB_to_Ethernet Adapter or use UBS-Ethernet Connection which the BBB does provide and Login by this usb Connection to download the CODESYS Projekt.

    BR
    Edwin

    IMG: FrameAtTaskStart.jpg

     
  • timinio99 - 2016-12-15

    I added the line "EtherCAT_Master.FrameAtTaskStart := TRUE;" in the INIT-step.

    I don't have a rt_preemt patch on my BBB. Do I have to install it?

    In the N5 interface is no option to activate distributed clocks. The status says:

    I use a USB to Ethernet adapter to download the codesys project.

    IMG: N5 status.jpg

    IMG: bbb.jpg

     
  • timinio99 - 2016-12-15

    I just noticed, that i don't have the option "EtherCAT Parameters" as you can see in a previous screenshot. how can i make it visible?

     
  • eschwellinger

    eschwellinger - 2016-12-16

    Hi,
    yes you need to install rt_preemt
    Please check the jitter in the taskmonitor for the Ethercat Task.

    and Tools->DeviceEditor->Show generic...

    Is the eth0 port exclusive connected to your drive? 1:1 BBB - Drive?
    And this USB-Ethernet is your "Login with CODESYS" Interface?

    BR
    Edwin

    IMG: ShowGenericEditor.jpg

     
  • timinio99 - 2016-12-16

    I found your description for RT_preempt and will try to do it:
    l viewtopic.php?t=5652&start=30 l
    I have Debian Image 2016-05-13. Do i definitly have to update it to 2016-11-06?

    Edwin Schwellinger hat geschrieben:
    Please check the jitter in the taskmonitor for the Ethercat Task.

    If i doubleclick the EtherCAT_Master.EtherCAT_Task, a small dialog with no content pops up and disappears after a half second. Its heading says "Editor nicht gefunden(Editor not found)".

    Edwin Schwellinger hat geschrieben:
    Is the eth0 port exclusive connected to your drive? 1:1 BBB - Drive?
    And this USB-Ethernet is your "Login with CODESYS" Interface?

    Yes.

     
  • timinio99 - 2017-01-05

    Hi,

    I am using a CODESYS Softmotion RTE instead of the BBB now. I tried to download my testprogram, but it says:

    and after that:

    I am using Codesys 3.5 SP10. i have Setup_CODESYSControlRTE64V3.5SP10.exe installed on my Windows PC.

    Can you help me?

    IMG: error box.jpg

    IMG: errors.jpg

     
  • kumareasu - 2017-09-03

    Dear timinio99,
    What is the USB to Ethernet converter you have used? Was there any setup to be done in BBB (Debian)?
    Please guide me.
    Regards,
    Kumar Eswaran

     

Log in to post a comment.