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

bits into Byte

mawaloc
2022-11-17
2022-11-28
  • mawaloc - 2022-11-17

    Hello
    on codesys 2.3;
    I'm trying to find out how to combine different datas into One bytes.
    Seems to be "easy" on codesys 3.5 , but can't find solution on 2.3 as per datatype bit is unknow on 2.3

    thanks for your help

    Regards

     
  • edwin200000 - 2022-11-25

    Hello Mawaloc,

    Will a function block that shove 8 bits in a byte help? See my photo
    Then you need to download the Util libary and add this library to your libaries in your library.
    Than you have this funtion block. Just add a block and name it PACK.
    I have add the util lib in the attachments.

    Hope this helps

    Regards

     
  • mawaloc - 2022-11-28

    Hi
    ThankYou Edwin.

    Forget to reply, but I had info ( same as you) few days after.
    It's work like that regards

     
    πŸ‘
    1

Log in to post a comment.