Write register window edit wrong address
When I try to write a register, the new value is set on the address-1.
Same behaviour on both coil status and holding register.
Steps to reproduce:
-
Double click on a value to write or its address
-
Edit the value and press OK
-
The value edited is set on the address -1
Please test at version 1.9.0
Done, not working.
Sorry, can’t reproduce. Can you add video that reproduce bug?
Hi, here is the video
https://github.com/user-attachments/assets/4e477f91-a814-49f8-ad31-fde63b12bf65
Can you tell me what is modbus server used? A device or a simulator program?
Yes, i'm using a Beckhoff PLC
Please follow the steps below
- Connect to your modbus device
- Open Display Definition dialog (menu Setup ->Data Definition) and set Scan Rate to 10000
- Through the menu Setup -> Text Capture make a log.txt file
- Make a write to registers
- Through the menu Setup -> Capture Off stop a log capture
- Upload log.txt file here
Hello, Done, log and video attached.
https://github.com/user-attachments/assets/b3647702-e79e-4da1-aa9f-885f4c995f52
Hello @ghostolo90. Thanks for what you did to understand how the bug occurred. Based on the log data I see that you send WRITE SINGLE REG request to address 30 (0-based).
Then, application send READ HOLDING REGS request to read 31 holding registers data that starts at address 0 (0-based)
The response from the server returns the value at 29 address (0-based)
I suppose that problem at the modbus server.