frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.69k stars 787 forks source link

[BUG] Writing with scale script #1365

Open timmpo opened 1 week ago

timmpo commented 1 week ago

Describe the bug First of all, all cred to this nice scada software, i like it!

The function to have scale script is a verry nice thing, a must have when working with time schedules.

Read with scale script works fine but when i try to write with scale script i got : ERR setValue script error, returned buffer invalid must be mod 2

mode 2 is what i can understand execute i server, that setting is set

To Reproduce Steps to reproduce the behavior:

  1. fire up a modbus sim (open ModSim) change to 16bit integer in menu, connect
  2. create a simple write script
  3. connect to sim
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

unocelli commented 16 hours ago

Hi, Thanks for the report