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

SDO read and write

leon517
2016-12-22
2021-03-13
  • leon517

    leon517 - 2016-12-22

    SDORead : ETC_CO_SdoRead;
    SDOWrite : ETC_CO_SdoWrite;

    I want to read&write SDO from ethercat slaves using these FBs.
    When I write to SDO,it always fail,even I changed to write other address,such as 0x6099.Meanwhile reading always good.
    But my friend use the the FBs to write another ehtercat slaves,read and wirte SDO both good.

    My question:
    Is it the slave's problem about write SDO error?

    IMG: SDOw.jpg

     
  • eschwellinger

    eschwellinger - 2016-12-28

    Hi,
    do you use this example from here:

    After installing this package you'll find the example here:
    "c:\Users\<yourwindowsusername>\CODESYS Examples\EtherCAT Example"
    BR
    Edwin</yourwindowsusername>

    IMG: EthercatExample.jpg

     
  • leon517

    leon517 - 2017-01-19

    Edwin Schwellinger hat geschrieben:
    Hi,
    do you use this example from here:
    After installing this package you'll find the example here:
    "c:\Users\<yourwindowsusername>\CODESYS Examples\EtherCAT Example"
    BR
    Edwin</yourwindowsusername>

    But I do not want to use EtherCAT Example.
    Why the way I used do not work?And what is the problem?
    Tks,anyway!

     
  • ahdelta

    ahdelta - 2017-02-05

    Did you ever find a solution to the ETC_CO_sdoWrite problem?

    I have the same issue. I can read Sdo's fine, but can't write anything.
    I have downloaded and using the Ethercat example from CodeSys Store.
    Have tried to write with ETC_CO_sdoWrite and ETC_CO_sdoWrite4, but no luck.
    With ETC_CO_sdoWrite, I get the error:
    ETC_CO_FIRST_ERROR,
    SdoAbort: 16#06090031, if using WORD, and 16#06070010 with DWORD as write value.
    I can't find any description about the error, or errocode.

    !!! Update:
    It turned out the values I am writing are not within legal range.
    So problem solved.

     
  • tariq

    tariq - 2021-03-13

    Hi Leon,
    Do you have an example how to used ETC_CO_sdoRead. I really appreciate your help.

     
  • eschwellinger

    eschwellinger - 2021-03-13

    Here in Forge, Projects- CODESYS Examples...Ethercat

     

    Last edit: eschwellinger 2021-03-13

Log in to post a comment.