-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add signed int data types #13
Comments
Signed 16 and 32 bit integers are now available in e345d76. |
Release 2.8 does not seem to have this change and I find the next usage I have for this tool needs signed integers, I have succeeded in my first usage with unsigned and the tool is really good. I don't know how to compile which I guess is needed. |
Version 2.9 is now available. The signed integer interpretation options are available in that binary. |
Thank you. |
Ah, just tested and it works as a master with all the options selectable but the signed option is missing from the slave simulator, this is what I am using to test emulating a Jantiza UMG104 which uses a mixture of signed and unsigned registers. My previous test was to emulate a SMA Sunny Island 8.0H-13 and the slave simulator worked perfectly as the registers were unsigned. The Solar-log data logger detected the slave simulator as a SI 8.0H13 and logged data for 2 days without issue, the traffic monitor also showed me addition registers the Solar-log was querying. I can now set up a Mango SCADA Modbus publisher (slave) fed from an MQTT database written to by an old SI5048 so the Solar-log will see it as a SI 80.H13 despite it not supporting the SI5048. This is an excellent tool that saved me a lot of time. |
Signed integers for the slave still need to be added, but for now, you could set up an unsigned 16 or 32 bit integer in the slave, then write a corresponding signed value to it with the master. |
Thanks for the prompt reply, I will give that a go. |
That is the Janitza UMG 104 now simulated, detection was via the Solar-log reading 2 holding register pairs. Once it detected these with the right responses it then regularly polls another 16 holding register pairs for voltage, current. watts on 3 phases plus cos and reactive power. The SI 8.0H was the same, detection was via a reading of one register pair confirming it was a SI, a second poll to get the fixed settings such as serial number and battery capacity followed by regular polling for moving data. The key is to get that first register number and give it the correct data that the Solar-log is pre-programmed to respond to. No response or the wrong response and it moves onto the next Slave Node. |
Dont know, if this is still actively maintained, but as I was having trouble using the GUI itself (#12) noticed the limited data value types.
I was wondering if it would be possible to implement other data value types, for example such as signed16/32/64?
The text was updated successfully, but these errors were encountered: