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

ModbusTCP-type BIT or BOOL

razvoj
2020-11-15
2020-11-16
  • razvoj - 2020-11-15

    Hello everyone,

    I am useing ModbusTCP library with RaspberryPI. I am using Input registers as WORDs and BOOLs. There is no problem with words.
    I get a compile problem with BOOLs: Type 'BIT' is not equal to type 'BOOL'...
    Why BIT type? The digital type in ModbusTCP Input registers is BOOL. I do not understand this. Any solutions?

    Best regards

     

Log in to post a comment.