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

Another Arduino/Modbus question


  • I am wondering how to proceed with bringing back more than one variable from the arduino.

    I have followed the tutorial from JointTech (http://mango.serotoninsoftware.com/forum/posts/list/567.page) and it works great, however when I try to add more inputs things start to fall apart.

    Does anybody have any pointers or better yet an example of a sketch outlining how to add in extra points?

    Thanks,


  • Nevermind, I figured it out, I was adding the registers correctly, it was a setting in Mango holding me back.


  • Can you be more specific? Maybe someone else will have the same issue...


  • You Bet.

    As per JointTechs sketch the first modbus variable was defined as:

    regs[MB_REG0]=<variable goes here>

    To add extra points simply increase the reg number, eg.

    regs[MB_REG1]=<next variable here>.

    When creating the data source in Mango, the offset needs to be increased by one to correspond with each point.

    I will post up a copy of my sketch once it is cleaned up, my programming skills are horrible. :mrgreen:


  • Ok reading data from arduino is easy but what if you want to set an output on arduino?
    Did you have some exemple ?
    From what I have read the arduino modbuslave library does not have a COIL register implemented :(
    Did you have some solution?