• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Why using function 0x16 when writing to only one register

    Modbus4J general discussion
    1
    2
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nikorun
      last edited by

      Hi,

      I'm facing a problem. My slave doesn't support function 0x16 so I would prefer mango to use function 0x06 instead.
      i've notice that Mango uses it when writing a integer value to a register but uses 0x16 to write a "BIT" value (The Data point is declared as a holding Register, but a simple bit si addressed)?

      Does anybody knows why ?

      isn't it possible to force use of function 0x06 to when writing to only one register ?

      Thanks, i'm not good in java and i cannot imagine put my hand in the code ... :-(

      nico

      Examples :

      below I try to write value 1 to bit 1 of holding register 7 into slave 3

      2014/04/07-18:50:42,920 O 03160007fffd0002e23a
      2014/04/07-18:50:42,965 I 0396512f9c

      My slave responds with an error because it doesn't handle function 16

      Below when i try to write integer value 2 to same register 7 (my locator is then declared as a 2 byte integer value)

      2014/04/07-19:06:49,813 O 030600070002b828
      2014/04/07-19:06:49,848 I 030600070002b828

      ... Then it works

      1 Reply Last reply Reply Quote 0
      • First post
        Last post