Accessing ModbusTCP addresses from python

jeffgamsby
2023-09-20
2023-09-20
  • jeffgamsby - 2023-09-20

    Hi, I am new to modbusTCP and I am trying to access Input registers from codesys (3.5.SP13). The offset is 16#0000 and I am trying to access Channel 1[24] %IW24 to pull analog values. I am using pyModbusTCP and I need to supply a modbus address and the number of registers to read.

    What does 16#0000 mean in terms of the actual offset, how do I translate this number plus the channel to access this info via python?

    Any help would be appreciated, thank you.

     

Log in to post a comment.