[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: Sergii
Forum Index » Profile for Sergii » Messages posted by Sergii
Author Message
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.

convertedValue gets 126.99999999999999. Fractional part of this value gets lost in method modbusMaster.setValue().
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.
Just downloaded version 1.2.4. Same problem.
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.
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.
Is it possible to get a point value's last change time and display it on custom page?
I am confused about this phrase on m2m2 site (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?
Oops... I've missed that button
Thanks a lot!
Thanks Matthew.
Sorry for my next stupid question, but how can I change homeUrl for user?
I tried a SQL request

but no success.
Error message is "Statement.executeQuery() cannot be called with a statement that returns a row count"
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.
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.
Hi!
I'd like to share my collection of leds.
http://www.opendrive.com/files/18879844_EMo5q_10b8/Leds.zip
There are 4 sizes - 16x16, 24x24, 32x32 and 48x48. Format - png (animated in APNG).
It would be nice to see them in next Mango release

Here is the source file for Inkscape:
https://www.opendrive.com/files/18879963_8UELj_e59b/leds.svg
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.
 
Forum Index » Profile for Sergii » Messages posted by Sergii
Go to:   
Powered by JForum 2.1.9 © JForum Team