frangoteam / FUXA

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

[BUG] Button Fails to Function Properly Without Displaying Variable on Screen #1441

Open martinjug opened 1 week ago

martinjug commented 1 week ago

First video demonstrates that pressing the "AUTO" button (Action[click] Event[toggleValue] -> V0.7) doesn't function properly. However, if you add that variable to the screen using an "Input Value" element, the button starts working as expected.

https://github.com/user-attachments/assets/c7f109f2-2757-4124-8d34-f7b8c8d39085

Environment

Second video is showing previous version, everything works as expected.

https://github.com/user-attachments/assets/5c60209b-33d1-49df-b209-30898b64de88

Environment

Third video is showing same problem as first video. This time I created fresh project with modbus driver connecting to modbus server. Button(toggleValue) doesn't function properly.(fails to toggle value) However, if you add that variable to the screen using an "Input Value" element, the button starts working as expected.

https://github.com/user-attachments/assets/ce29557b-73c4-43c1-b1b4-4759b6670579

Environment

unocelli commented 1 week ago

Hi, in your video the use case is always different! Maybe you mean that connected clients must automatically receive changes made on the editor without a manual refresh... this is a feature and not a bug.

martinjug commented 1 week ago

I realize my previous explanation might not have been clear. I've made another recording demonstrating the problem. On the left side of screen is Modbus server publishing one coil. On the right side of screen is FUXA.

"ToggleValue" button works as expected in version V1.19 but does not work in V1.20. Specifically, in V1.20, it fails to toggle value of a coil(you can see it's not changing on modbus server). I think that script that toggles value is not executed in V1.20.

When toggling the value directly in the Modbus server, both V1.19 and V1.20 reflect the change correctly. However, when using the toggle button in FUXA, it works as intended in V1.19 but fails in V1.20.

https://github.com/user-attachments/assets/d1bf527b-5344-4059-b580-f1946468018b

https://github.com/user-attachments/assets/fc52912a-7ba5-4347-824e-eae4209add43