• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Sergii

    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
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 19
    • Best 0
    • Controversial 0
    • Groups 0

    Sergii

    @Sergii

    0
    Reputation
    1.1k
    Profile views
    19
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Sergii Unfollow Follow

    Latest posts made by Sergii

    • Mango 1.13.0 Modbus Data Source issue

      Try these steps:

      1. Create Modbus Serial data source
      2. Create numeric point as Holding Register and 2 byte signed integer
      3. Make this point writable
        4. Set multiplier to 0.1 for this point

      Isuue:
      Try to write 12.7 to this point. Actually written value is 126 (instead of 127).
      I think problem is in method setPointValue() of class ModbusDataSource.

       
          ...
                 if (dataPoint.getDataTypeId() == DataTypes.NUMERIC) {
                      double convertedValue = valueTime.getDoubleValue();
                      convertedValue -= pl.getVO().getAdditive();
                      convertedValue /= pl.getVO().getMultiplier();
                      modbusMaster.setValue(ml, convertedValue);
                  }
          ...
      
      

      convertedValue gets 126.99999999999999. Fractional part of this value gets lost in method modbusMaster.setValue().

      posted in Mango feedback
      S
      Sergii
    • RE: Mango 1.13.0 Modbus Data Source issue

      Try these steps:

      1. Create Modbus Serial data source
      2. Create numeric point as Holding Register and 2 byte signed integer
      3. Make this point writable
        4. Set multiplier to 0.1 for this point

      Isuue:
      Try to write 12.7 to this point. Actually written value is 126 (instead of 127).
      I think problem is in method setPointValue() of class ModbusDataSource.

       
          ...
                 if (dataPoint.getDataTypeId() == DataTypes.NUMERIC) {
                      double convertedValue = valueTime.getDoubleValue();
                      convertedValue -= pl.getVO().getAdditive();
                      convertedValue /= pl.getVO().getMultiplier();
                      modbusMaster.setValue(ml, convertedValue);
                  }
          ...
      
      

      convertedValue gets 126.99999999999999. Fractional part of this value gets lost in method modbusMaster.setValue().

      posted in Mango feedback
      S
      Sergii
    • Bug? - User editing

      Hi!
      I've added a new user, after that I've added some data sources.
      When I try to give that user access to the new data sources (in the "Users" page) I've got an error message:

      PreparedStatementCallback; SQL [update users set username=?, password=?, email=?, phone=?, admin=?, disabled=?, homeUrl=?, receiveAlarmEmails=?, receiveOwnAuditEvents=? where id=?]; An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'.; nested exception is java.sql.SQLDataException: An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'.

      The same message I've seen trying to change user password.

      posted in Mango feedback
      S
      Sergii
    • RE: Bug? - User editing

      Hi!
      I've added a new user, after that I've added some data sources.
      When I try to give that user access to the new data sources (in the "Users" page) I've got an error message:

      PreparedStatementCallback; SQL [update users set username=?, password=?, email=?, phone=?, admin=?, disabled=?, homeUrl=?, receiveAlarmEmails=?, receiveOwnAuditEvents=? where id=?]; An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'.; nested exception is java.sql.SQLDataException: An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'null'.

      The same message I've seen trying to change user password.

      posted in Mango feedback
      S
      Sergii
    • RE: Tried to access field gnu.io.RXTXPort.IOLocked from class gnu.io.RXTXHack

      Just downloaded version 1.2.4. Same problem.

      posted in Modbus4J general discussion
      S
      Sergii
    • Tried to access field gnu.io.RXTXPort.IOLocked from class gnu.io.RXTXHack

      I'm getting this message when I try to stop the server.
      "tried to access field gnu.io.RXTXPort.IOLocked from class gnu.io.RXTXHack"
      The server is freezed after that and I have to kill the process.

      Same message appears when I try to disable data source.

      My platform is:
      Windows XP,
      Apache Tomcat 7.0
      mango 1.12.2 (the same situation with tomcat 6 and mango 1.12.0)

      To simulate modbus slaves I use Null-modem emulator (com0com) (http://com0com.sourceforge.net/)
      and MOD_RSSIM (http://www.plcsimulator.org/)

      Data sources and points JSON is attached.

      Thanks in advance for any help.

      Attachment: download link

      posted in Modbus4J general discussion
      S
      Sergii
    • RE: Tried to access field gnu.io.RXTXPort.IOLocked from class gnu.io.RXTXHack

      I'm getting this message when I try to stop the server.
      "tried to access field gnu.io.RXTXPort.IOLocked from class gnu.io.RXTXHack"
      The server is freezed after that and I have to kill the process.

      Same message appears when I try to disable data source.

      My platform is:
      Windows XP,
      Apache Tomcat 7.0
      mango 1.12.2 (the same situation with tomcat 6 and mango 1.12.0)

      To simulate modbus slaves I use Null-modem emulator (com0com) (http://com0com.sourceforge.net/)
      and MOD_RSSIM (http://www.plcsimulator.org/)

      Data sources and points JSON is attached.

      Thanks in advance for any help.

      posted in Modbus4J general discussion
      S
      Sergii
    • RE: Point last change timestamp

      Thanks for your answer, Matthew.
      But time in scriptPoint is not what I need. It is the time of last point update (at least for MODBUS points), but I need the time when point value changed.

      posted in User help
      S
      Sergii
    • Point last change timestamp

      Is it possible to get a point value's last change time and display it on custom page?

      posted in User help
      S
      Sergii
    • RE: Point last change timestamp

      Is it possible to get a point value's last change time and display it on custom page?

      posted in User help
      S
      Sergii