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

ETC_ADS_IoLinkRead/Write

2022-05-09
2023-03-23
  • yannickasselin - 2022-05-09

    Hello,

    I am using the ETC_ADS_IoLinkWrite and ETC_ADS_IoLinkRead function blocks to read and write some parameters on an IO-Link device.

    Here's the setup:

    Raspberry Pi MC SL -> EK1100 -> EL6224 -> Banner LE 550

    I have 2 issues:

    1 -
    I am able to read parameters but I have to execute the function block twice.
    First time, the function block completes without errors but there is no data written to the byte array. The second time, the function block completes without errors and the data is finally written to the byte array. I always need to trigger twice for it to work.

    2 -
    I am able to write a parameter but everytime, the old parameter value gets written into the byte array which was used to write the new value.

    ex.: Parameter X is set to 1 on an io-link device. If I want to set it to 2, I put the value 2 in my byte array and triggers the write function block. The function block completes without errors but my byte array has now the value 1 in it (the old parameter value on the device). I don't understand why this old value gets written back into my byte array?

    Finally, I am able to make it all work but it feels like it is not the way it was meant to work. Strange behavior.

     
    • vvvv - 2023-03-23

      I have the same behavior. Did you find any solution?

       
      • yannickasselin - 2023-03-23

        I did not even remember this post. I guess I left it this way. Sorry I can't help.

         
        πŸ‘
        1

Log in to post a comment.