![]() |
Issue Writing Setpoint on Modbus Device (PLOGIC) - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Issue Writing Setpoint on Modbus Device (PLOGIC) (/showthread.php?tid=5977) |
Issue Writing Setpoint on Modbus Device (PLOGIC) - Gadjoken - 30.04.2025 Hello everyone, I’m trying to communicate with a Modbus device of type PLOGIC; you’ll find the documentation attached. I am able to successfully read the ambient temperature status (Address 1156) and the setpoint status (Address 1239) without any issues. However, when I try to modify the setpoint temperature (Address 1099), I also need to activate both Addresses 1102 and 1103 by setting them to 1. I do this via an event script: when I write 1 to 1102, I also write 1 to 1103 and 22 to 1099. After 2 seconds, Addresses 1102 and 1103 go back to 0, and nothing happens… I tried using Code: "writable": true Code: "write_only": true When I test it using Modbus Doctor, it works fine — I write to 1102, 1103, and 1099 at the same time. Thank you for your understanding. Looking forward to your response. RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Daniel - 30.04.2025 It seems you just need to keep 1102 as a value 1 to accept values to 1099, write 1 to 1102 before. Setpoint should be uint16 RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Gadjoken - 30.04.2025 Hello Daniel, Yes indeed, addresses 1102 and 1103 must be set to 1, which I do, but two seconds later they revert to 0 and it's impossible to write the setpoint value. This doesn't happen when writing the registers via Modbus Doctor RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Daniel - 30.04.2025 Did you try uint16? RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Gadjoken - 30.04.2025 Yes, I changed this setting, but when I enter 1 on 40/3/4 = 1102 and 40/3/5 = 1103, after a few seconds both revert to 0 — see attached screenshot. RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Daniel - 30.04.2025 Try adding write_multiple. PS. Use this to modify profile: https://forum.logicmachine.net/showthread.php?tid=5911 RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Gadjoken - 30.04.2025 Is the Modbus Profiler app working on a SCHNEIDER SpaceLynk updated to the latest FW version 3.0.0? Because it's really handy!! As for the write_multiple, it seems to be working! Thank you very much! What exactly does this write_multiple refer to? Thanks again. Have a great day. RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Daniel - 30.04.2025 Profiler app should work on SL. Write multiple is forcing SL to use modbus function 16 command for writing to multiple registers even if it writes to a single one. RE: Issue Writing Setpoint on Modbus Device (PLOGIC) - Gadjoken - 30.04.2025 Noted. Thank you. |