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.

Modbus - Phnix
#1
Hello everyone,

We have an installation with fancoils Phnix with modbus RTU and we are facing an issue with communication.
We can read data from modbus, but we cannot write on them, although we use writable -> true in json.
Due to testing, only one fancoil is connected and there is no other device in modbus.
It shows up this message in attaching photo.
 
I attach you the register lists, too.
Have you any idea about it?

Thank you in advance.

Attached Files Thumbnail(s)
   
.xls   35005-310586 Modbus protocol.xls (Size: 36.5 KB / Downloads: 7)
.txt   _phnix.json.txt (Size: 304 bytes / Downloads: 6)
Reply
#2
Add "write_multiple": true,
------------------------------
Ctrl+F5
Reply
#3
(15.11.2024, 08:54)Daniel Wrote: Add "write_multiple": true,
We have tried this, but no change unfortunately.
Reply
#4
Is GND connected between LM and Modbus device?
Reply
#5
Yes, GND is connected.
Reply
#6
This error is usually caused by an issue on the physical communication level.

Disable RTU in Modbus settings and run this script once. Post what you get in Logs. Change device address (1) as needed.
Code:
require('luamodbus')
mb = luamodbus.rtu()

mb:open('/dev/RS485-1', 9600, 'N', 8, 1, 'H')
mb:connect()

buffer = {}

mb:setdebug(function(msg)
  buffer[ #buffer + 1 ] = msg
end)

mb:setslave(1)

res, err = mb:writemultipleregisters(28302, 0)
log(res, err)

mb:close()

log(table.concat(buffer))
Reply
#7
nice i'm back!
Reply
#8
This profile should work the same as the script above.
Code:
{
    "manufacturer": "phnix",
    "description": "fc",
    "mapping": [
        {
            "name": "mode",
            "bus_datatype": "uint8",
            "datatype": "uint16",
            "type": "register",
            "address": 28302,
            "writable": true,
            "write_multiple": true
        }
    ]
}
Reply
#9
(15.11.2024, 09:25)admin Wrote: This profile should work the same as the script above.
Code:
{
    "manufacturer": "phnix",
    "description": "fc",
    "mapping": [
        {
            "name": "mode",
            "bus_datatype": "uint8",
            "datatype": "uint16",
            "type": "register",
            "address": 28302,
            "writable": true,
            "write_mutiple": true
        }
    ]
}
Hi admin ,
 it works with 
"writable": true,
"write_multiple": true
thanks !
Reply


Forum Jump: