This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Issue Writing Setpoint on Modbus Device (PLOGIC)
#1
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
and
Code:
"write_only": true
on both addresses 1102 and 1103, but that didn’t help either.
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.

Attached Files Thumbnail(s)
       
.json   Panasonic_Plogic.json (Size: 3.11 KB / Downloads: 2)
Reply
#2
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
------------------------------
Ctrl+F5
Reply
#3
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
Reply
#4
Did you try uint16?
------------------------------
Ctrl+F5
Reply
#5
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.

Attached Files Thumbnail(s)
           
Reply
#6
Try adding write_multiple.

PS. Use this to modify profile:
https://forum.logicmachine.net/showthread.php?tid=5911
------------------------------
Ctrl+F5
Reply
#7
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.
Reply
#8
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.
------------------------------
Ctrl+F5
Reply
#9
Noted. Thank you.
Reply


Forum Jump: