Can't connect with Beckhoff

apakrat
2018-12-28
2019-01-14
  • apakrat

    apakrat - 2018-12-28

    Hi guys, i have some problems when i try to connect my Beijer HMI X2 control with Ek1100 and it's module via etherCAT. I've read some instruction between Ras Pi and Beckhoff and followed them but nothing change. Anyone have any ideas please tell me. Thank you so much!

    IMG: Untitled.png

     
  • eschwellinger

    eschwellinger - 2018-12-28

    Hi,
    could you give us a screenshot of the plc logger?
    BR
    Edwin

     
  • apakrat

    apakrat - 2019-01-03

    Hi,
    What is the PLC logger?

     
  • Anonymous - 2019-01-03

    Originally created by: ph0010421

    Hello
    1. Which build are you using in the X2 Control?
    2. Do you remember if you selected 'Yes' or 'No' to the DC (distributed clock) question when you installed the Codesys PLC?
    3. Have you referenced the correct library versions? Beijer use version 3.5.10.10
    4. If you are able to post your code, I can look.

    ph0010421

     
  • apakrat

    apakrat - 2019-01-04

    Hi ph0010421,
    I don't understand your 1 question, sorry I'm new with beijer.
    I can't remember because I installed long time ago.
    I think it right, I can connect codesys with beijer, I've tested it, when I changed tag value in laptop with codesys the tag value in the panel changed too.
    I didn't write any code in this project, I want to check the connect first

     
  • eschwellinger

    eschwellinger - 2019-01-04

    Hi,
    ….

    BR
    Edwin

    IMG: PLCLogger.png

     
  • apakrat

    apakrat - 2019-01-04

    Hi Edwin, i didn't think there are a lot of error like this. ph0010421 is right, maybe my library have some problem.

    IMG: Untitled.png

     
  • eschwellinger

    eschwellinger - 2019-01-04

    Hi,
    did you set/browse the correct network interface which is connected to your slaves?

    BR
    Edwin

    IMG: BrowseMAC.png

     
  • Anonymous - 2019-01-04

    Originally created by: ph0010421

    I agree with Edwin.
    Browse for the network adapter.
    If you did NOT select DC then it's called ENET1.
    This relates to the physical LAN A port.

     
  • apakrat

    apakrat - 2019-01-05

    Hi, I already use browse to pick X2 Ethercat (lan A).

     
  • Anonymous - 2019-01-05

    Originally created by: ph0010421

    Which version IDE are you using?

     
  • apakrat

    apakrat - 2019-01-07

    I use CODESYS V3.5 SP13 Patch 1 and iX Developer 2.40 SP1 for panel.

     
  • Anonymous - 2019-01-07

    Originally created by: ph0010421

    apakrat hat geschrieben:
    I use CODESYS V3.5 SP13 Patch 1 and iX Developer 2.40 SP1 for panel.

    Ok. Which libraries has it used? It will default to use the latest and this is not what we want.
    The compiler needs to be set to 3.5.10.10 and all libraries need to be 3.5.10.10 or earlier.

    As I said earlier, if you post your project, I can have a look for you.

    Kind regards,
    ph

     
  • apakrat

    apakrat - 2019-01-08

    ph0010421 hat geschrieben:
    Ok. Which libraries has it used? It will default to use the latest and this is not what we want.
    The compiler needs to be set to 3.5.10.10 and all libraries need to be 3.5.10.10 or earlier.
    As I said earlier, if you post your project, I can have a look for you.
    Kind regards,
    ph

    Hi ph0010421, here my project. If you can fix it for me, i'll very appreciate it.
    And like you said, I updated the libraries to some new version not 3.5.10.10. I'll try to edit it.
    Thanks for you help!

    beijer.rar [233.74 KiB]

     
  • Anonymous - 2019-01-08

    Originally created by: ph0010421

    Please can you SaveAs 3.5.10.10

     
  • Anonymous - 2019-01-08

    Originally created by: ph0010421

    Hello
    You need to install 3.5.10.10 to get the necessary libraries.
    1. Compiler version should be set to 3.5.10.10 (Project-->Project Settings)
    2. Remove Visu references (not supported) and all the libs it brings in.
    3. The EtherCAT task has got confused. Delete the EtherCAT task then Delete the Master, then 'Add Device' and add a 3.5.10.10 EtherCAT master. Don't try and manually add an EtherCAT task; it does it automatically. See screen shot.

    1. Select NIC by network name rather than MAC ID

    Regards
    Paul

    IMG: Capture.PNG

     
  • apakrat

    apakrat - 2019-01-11

    ph0010421 hat geschrieben:
    Please can you SaveAs 3.5.10.10

    Hi ph0010421, I used to try convert it to 3.5.10.10 but it not work, the library is still the latest. I followed your step when add EtherCAT master but I don't know why he still outside the Maintask .
    Here some file I save as 3.5.10.10. Sorry about late reply, I've been busy so far.
    Btw, thanks for youe help, I very appreciate it.

    Save_as_1010.rar [200.07 KiB]

     
  • Anonymous - 2019-01-11

    Originally created by: ph0010421

    You hadn't made any of the changes I suggested, so I guess you didn't install 3.5.10.10 either?
    Attached is a .project. If you didn't install 3.5.10.10 it will be missing libraries, but these can be downloaded with the 'Download Missing Library' button in the library manager.

    I don't have the Beckhoff Device descriptions, so add these devices to the EtherCAT master manually.

    ph

    beckhoff_beijer.project [153.21 KiB]

     
  • apakrat

    apakrat - 2019-01-12

    I've installed v3.5.10.10 but everything didn't change.

    IMG: Untitled.png

     
  • Anonymous - 2019-01-12

    Originally created by: ph0010421

    What does the log say now?
    Does the browse show both NICs? Try selecting the other NIC and change to LAN B.
    One this is downloaded, try a 'Scan for devices' from the etherCAT master context menu. What does that see?

     
  • apakrat

    apakrat - 2019-01-14

    Hi ph0010421,
    I don't know why but today when I was going to run the project to capture some pictures, it worked perfectly for me. This is the best way to begin a week.
    Thanks for your help, I very appreciate it. Hope you guys have a nice week.

    IMG: asd.png

     
  • Anonymous - 2019-01-14

    Originally created by: ph0010421

    Great news

     

Log in to post a comment.