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

Send a string to arduino via modbus

alverman
2017-10-25
2017-12-02
  • alverman - 2017-10-25

    Good morning,
    how can you send a string using modbus to arduino?
    It would be possible ?

    Thank you, Alberto

     
  • Anonymous - 2017-12-02

    Originally created by: scott_cunningham

    I don’t think you can - at least I’ve never seen it. Modbus registers are WORDs. When I need to send a message, I create an enumeration on the logic side. Of course this means I am only sending a number, but I then take the enumeration and make a look up function on the visualization side that takes the number and assigns a string based off of the enumeration text.

    The other option would be to block off say 10 WORDs on Modbus to pack in 20 chars. A bit of work to create the FB on both devices...

     

Log in to post a comment.