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

    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

    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
    • RE: Licensing without internet connection

      I am confused about this phrase on m2m2 site ([url=http://m2m2.serotoninsoftware.com/documentation/license]here):

      License files are bound to a specific instance of Mango M2M2 (determined by hardware serial numbers), and are non-transferable.
      Does it mean that m2m2 instance is bound to a computer hardware?

      posted in Mango Automation general Discussion
      S
      Sergii
    • RE: Bug? - Changing user home url through import/export

      Oops... I've missed that button :oops:
      Thanks a lot!

      posted in Mango feedback
      S
      Sergii
    • RE: Bug? - Changing user home url through import/export

      Thanks Matthew.
      Sorry for my next stupid question, but how can I change homeUrl for user?
      I tried a SQL request

      update users set homeurl='test.jsp' where id=2
      

      but no success.
      Error message is "Statement.executeQuery() cannot be called with a statement that returns a row count"

      posted in Mango feedback
      S
      Sergii
    • Bug? - Changing user home url through import/export

      I try to export user, change homeUrl in JSON and import it back. But the value of homeUrl remains the same.
      I did that because I need to redirect user to a custom JSP page after login.

      posted in Mango feedback
      S
      Sergii
    • RE: Bug? - Changing user home url through import/export

      I try to export user, change homeUrl in JSON and import it back. But the value of homeUrl remains the same.
      I did that because I need to redirect user to a custom JSP page after login.

      posted in Mango feedback
      S
      Sergii
    • Licensing without internet connection

      Is it possible to get license file for instance of M2M2 that is not connected to the internet?
      I need to install M2M2 on a PC, which is intended to be used alone and nas no internet connection. It would be sad if licensing problems is the only reason to use M2M instead of M2M2.

      posted in Mango Automation general Discussion
      S
      Sergii
    • RE: Licensing without internet connection

      Is it possible to get license file for instance of M2M2 that is not connected to the internet?
      I need to install M2M2 on a PC, which is intended to be used alone and nas no internet connection. It would be sad if licensing problems is the only reason to use M2M instead of M2M2.

      posted in Mango Automation general Discussion
      S
      Sergii
    • Bug - "Discard extreme values" flag cannot be saved

      Hello! I've found a little bug in MODBUS Data Point editor.
      Once checked, "Discard extreme values" option for Holding_Register point, cannot be unchecked anymore.
      I unchecked it, but when I save point this option becomes checked again.
      Export/Import helped me, so this is not a big problem. Just wanted to be of benefit.

      posted in Mango feedback
      S
      Sergii
    • RE: Bug - "Discard extreme values" flag cannot be saved

      Hello! I've found a little bug in MODBUS Data Point editor.
      Once checked, "Discard extreme values" option for Holding_Register point, cannot be unchecked anymore.
      I unchecked it, but when I save point this option becomes checked again.
      Export/Import helped me, so this is not a big problem. Just wanted to be of benefit.

      posted in Mango feedback
      S
      Sergii