Configuring a 2's compliment

vvora
2021-11-29
5 hours ago
  • vvora - 2021-11-29

    Hi,

    I have an array of Bytes reading different messages from a COB-ID, one of them is a 16 bit signed INT, 2's compliment and other one is 16 bit unsigned INT, 2's compliment. What would be the best way to read them. Any function block for conversion? I assume I will have to take 2's compliment of the data read?

    Thanks

     
  • liamb - 5 hours ago

    Hi, did you end up finding a way to take 2's compliment?

     

Log in to post a comment.