NEWS
Modbus TCP Problem
-
stimmt könnte man auch ohne Formeln machen aber auch ohne Formel kommt das Register nicht.
modbus.1 2023-01-14 18:07:01.363 debug Closing client on purpose. modbus.1 2023-01-14 18:07:00.364 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716020363,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:07:00.362 debug Cleaning up request fifo. modbus.1 2023-01-14 18:07:00.362 debug Socket closed with error modbus.1 2023-01-14 18:07:00.339 info Disconnected from slave 192.168.0.56 modbus.1 2023-01-14 18:07:00.339 debug Closing client on purpose. modbus.1 2023-01-14 18:07:00.336 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716020335,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:07:00.288 warn Poll error count: 6 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 18:07:00.287 debug Received pdu describes an error. modbus.1 2023-01-14 18:07:00.215 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.39_Vorlauf__oben:{"val":34.8,"ack":true,"ts":1673716020214,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014327} modbus.1 2023-01-14 18:07:00.214 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.4_Vorlauf_unten:{"val":29.4,"ack":true,"ts":1673716020213,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715884570} modbus.1 2023-01-14 18:07:00.213 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 18:07:00.212 debug [DevID_1/inputRegs/39] Calculation result = 34.8, type = number modbus.1 2023-01-14 18:07:00.212 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 18:07:00.212 debug [DevID_1/inputRegs/39] Input Value = 348 modbus.1 2023-01-14 18:07:00.212 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 18:07:00.173 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 18:07:00.172 debug [DevID_1/inputRegs/4] Calculation result = 29.4, type = number modbus.1 2023-01-14 18:07:00.172 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 18:07:00.172 debug [DevID_1/inputRegs/4] Input Value = 294 modbus.1 2023-01-14 18:07:00.172 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 18:07:00.143 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 18:07:00.142 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 18:06:59.137 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716019135,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:06:59.092 warn Poll error count: 5 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 18:06:59.092 debug Received pdu describes an error. modbus.1 2023-01-14 18:06:59.088 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.39_Vorlauf__oben:{"val":34.8,"ack":true,"ts":1673716019087,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014327} modbus.1 2023-01-14 18:06:59.044 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.4_Vorlauf_unten:{"val":29.4,"ack":true,"ts":1673716019042,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715884570} modbus.1 2023-01-14 18:06:59.042 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 18:06:59.041 debug [DevID_1/inputRegs/39] Calculation result = 34.8, type = number modbus.1 2023-01-14 18:06:59.041 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 18:06:59.040 debug [DevID_1/inputRegs/39] Input Value = 348 modbus.1 2023-01-14 18:06:59.040 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 18:06:59.003 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 18:06:59.002 debug [DevID_1/inputRegs/4] Calculation result = 29.4, type = number modbus.1 2023-01-14 18:06:59.002 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 18:06:59.002 debug [DevID_1/inputRegs/4] Input Value = 294 modbus.1 2023-01-14 18:06:59.002 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 18:06:58.967 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 18:06:58.966 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 18:06:57.960 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716017959,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:06:57.915 warn Poll error count: 4 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 18:06:57.915 debug Received pdu describes an error. modbus.1 2023-01-14 18:06:57.839 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.39_Vorlauf__oben:{"val":34.8,"ack":true,"ts":1673716017837,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014327} modbus.1 2023-01-14 18:06:57.837 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.4_Vorlauf_unten:{"val":29.4,"ack":true,"ts":1673716017836,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715884570} modbus.1 2023-01-14 18:06:57.835 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 18:06:57.834 debug [DevID_1/inputRegs/39] Calculation result = 34.8, type = number modbus.1 2023-01-14 18:06:57.834 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 18:06:57.834 debug [DevID_1/inputRegs/39] Input Value = 348 modbus.1 2023-01-14 18:06:57.834 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 18:06:57.802 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 18:06:57.801 debug [DevID_1/inputRegs/4] Calculation result = 29.4, type = number modbus.1 2023-01-14 18:06:57.801 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 18:06:57.801 debug [DevID_1/inputRegs/4] Input Value = 294 modbus.1 2023-01-14 18:06:57.801 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 18:06:57.770 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 18:06:57.769 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 18:06:56.764 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716016763,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:06:56.718 warn Poll error count: 3 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 18:06:56.718 debug Received pdu describes an error. modbus.1 2023-01-14 18:06:56.704 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.39_Vorlauf__oben:{"val":34.8,"ack":true,"ts":1673716016703,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014327} modbus.1 2023-01-14 18:06:56.660 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 18:06:56.659 debug [DevID_1/inputRegs/39] Calculation result = 34.8, type = number modbus.1 2023-01-14 18:06:56.659 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 18:06:56.659 debug [DevID_1/inputRegs/39] Input Value = 348 modbus.1 2023-01-14 18:06:56.659 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 18:06:56.648 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.4_Vorlauf_unten:{"val":29.4,"ack":true,"ts":1673716016647,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715884570} modbus.1 2023-01-14 18:06:56.605 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 18:06:56.604 debug [DevID_1/inputRegs/4] Calculation result = 29.4, type = number modbus.1 2023-01-14 18:06:56.604 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 18:06:56.604 debug [DevID_1/inputRegs/4] Input Value = 294 modbus.1 2023-01-14 18:06:56.604 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 18:06:56.568 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 18:06:56.568 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 18:06:55.564 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716015563,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:06:55.517 warn Poll error count: 2 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 18:06:55.517 debug Received pdu describes an error. modbus.1 2023-01-14 18:06:55.460 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.39_Vorlauf__oben:{"val":34.8,"ack":true,"ts":1673716015460,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014327} modbus.1 2023-01-14 18:06:55.459 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.4_Vorlauf_unten:{"val":29.4,"ack":true,"ts":1673716015458,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715884570} modbus.1 2023-01-14 18:06:55.455 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 18:06:55.455 debug [DevID_1/inputRegs/39] Calculation result = 34.8, type = number modbus.1 2023-01-14 18:06:55.455 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 18:06:55.454 debug [DevID_1/inputRegs/39] Input Value = 348 modbus.1 2023-01-14 18:06:55.454 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 18:06:55.422 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 18:06:55.421 debug [DevID_1/inputRegs/4] Calculation result = 29.4, type = number modbus.1 2023-01-14 18:06:55.421 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 18:06:55.421 debug [DevID_1/inputRegs/4] Input Value = 294 modbus.1 2023-01-14 18:06:55.421 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 18:06:55.390 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 18:06:55.390 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 18:06:54.384 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716014383,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014383} modbus.1 2023-01-14 18:06:54.337 warn Poll error count: 1 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 18:06:54.337 debug Received pdu describes an error. modbus.1 2023-01-14 18:06:54.328 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.39_Vorlauf__oben:{"val":34.8,"ack":true,"ts":1673716014327,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014327} modbus.1 2023-01-14 18:06:54.282 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 18:06:54.281 debug [DevID_1/inputRegs/39] Calculation result = 34.8, type = number modbus.1 2023-01-14 18:06:54.281 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 18:06:54.281 debug [DevID_1/inputRegs/39] Input Value = 348 modbus.1 2023-01-14 18:06:54.281 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 18:06:54.280 silly States user redis pmessage modbus.1.*/modbus.1.inputRegisters.4_Vorlauf_unten:{"val":29.4,"ack":true,"ts":1673716014279,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715884570} modbus.1 2023-01-14 18:06:54.231 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 18:06:54.230 debug [DevID_1/inputRegs/4] Calculation result = 29.4, type = number modbus.1 2023-01-14 18:06:54.230 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 18:06:54.230 debug [DevID_1/inputRegs/4] Input Value = 294 modbus.1 2023-01-14 18:06:54.229 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 18:06:54.228 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":true,"ack":true,"ts":1673716014227,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673716014227} modbus.1 2023-01-14 18:06:54.182 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 18:06:54.182 debug Initialization of scale factors done! modbus.1 2023-01-14 18:06:54.181 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 18:06:54.181 info Connected to slave 192.168.0.56 modbus.1 2023-01-14 18:06:54.152 silly States user redis pmessage modbus.1.*/modbus.1.info.connection:{"val":false,"ack":true,"ts":1673716014151,"q":0,"from":"system.adapter.modbus.1","user":"system.user.admin","lc":1673715944879} modbus.1 2023-01-14 18:06:54.043 silly States system redis pmessage system.adapter.modbus.1.logLevel/system.adapter.modbus.1.logLevel:{"val":"silly","ack":true,"ts":1673716013996,"q":0,"from":"system.adapter.modbus.1","lc":1673713683159} modbus.1 2023-01-14 18:06:54.020 debug Initialize Objects for holdingRegs: [] modbus.1 2023-01-14 18:06:54.020 debug Add inputRegisters.88_Rücklauf_oben: {"_id":"inputRegisters.88_Rücklauf_oben","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":88,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 18:06:54.020 debug Add inputRegisters.77_Rücklauf_unten: {"_id":"inputRegisters.77_Rücklauf_unten","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":77,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 18:06:54.020 debug Add inputRegisters.39_Vorlauf__oben: {"_id":"inputRegisters.39_Vorlauf__oben","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":39,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 18:06:54.019 debug Add inputRegisters.4_Vorlauf_unten: {"_id":"inputRegisters.4_Vorlauf_unten","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":4,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 18:06:54.019 debug Initialize Objects for inputRegs: [{"_address":4,"name":"Vorlauf unten","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":4,"id":"inputRegisters.4_Vorlauf_unten"},{"_address":39,"name":"Vorlauf oben","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":39,"id":"inputRegisters.39_Vorlauf__oben"},{"_address":77,"name":"Rücklauf unten","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":77,"id":"inputRegisters.77_Rücklauf_unten"},{"_address":88,"name":"Rücklauf oben","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":88,"id":"inputRegisters.88_Rücklauf_oben"}] modbus.1 2023-01-14 18:06:54.019 debug Initialize Objects for coils: [] modbus.1 2023-01-14 18:06:54.018 debug Initialize Objects for disInputs: [] modbus.1 2023-01-14 18:06:53.959 info starting. Version 5.0.11 in /opt/iobroker/node_modules/iobroker.modbus, node: v14.17.0, js-controller: 4.0.24 modbus.1 2023-01-14 18:06:53.857 debug Plugin sentry Initialize Plugin (enabled=true)
Komischerweise steht bei PollAdress 77 was von 12 register wenn ich es alleine in einer Instanz Polle dann nur 1 Register
-
@bytec sagte in Modbus TCP Problem:
ich möchte 77 muss dann aber 78 eingeben.
was denn jetzt ... dein Log im Startbeitrag zeigt Modbus instanz 0 mit 78 und jetzt Modbus Instanz 1 mit 77!?
.
modbus.1 2023-01-14 18:06:57.835 debug [DevID_1/inputRegs] Poll address 77 - 12 registers
-
das letzte ist aktuell. Das modbus.0 war der test von heute morgen.
Also was in meinem letzten Beitrag ist das log ist jetzt wichtig .
-
ja anscheinend schon aber der DP ist 0 und wird gelb dargestellt und wie gesagt wenn das Register alleine in einer Instanz ist klappt es und dann wird der richtige Wert ( Temperatur) in den DP geschrieben.
-
@bytec Ne, wird nicht gelesen. Habe nicht gesehen in welche Richtung das LOg neuer war.
Aber ich denke wenn du Register 77 auslesen willst musst du 78 eintragen?
Zeige doch mal die Modbus Beschreibung des Gerätes.
-
modbus.1 2023-01-14 18:06:57.835 debug [DevID_1/inputRegs] Poll address 77 - 12 registers
stimmt denn 88 !?
-
@glasfaser sagte in Modbus TCP Problem:
modbus.1 2023-01-14 18:06:57.835 debug [DevID_1/inputRegs] Poll address 77 - 12 registers
stimmt denn 88 !?
Wenn ich das log so sehe bricht er nach 77 ab und fängt von vorne an.
-
Das Problem ist . man liest den Thread von oben nach unten ...
@bytec
Also bitte auch die Veränderung im Beitrag mitteilen . Modbus Instanz usw. !Nimm mal die Abfrage 88 raus , was ist dann !?
-
Also 88 stimmt.
Wenn ich jetzt 88 rausnehme geht auch das 77er mache ich das 88er wieder rein geht dieses nicht mehr Wert 0 in gelb
Versteh das nicht. Wenn ich also ein viertes Register abfragen will geht das letzte nicht.Also hat es nichts mit dem 77er speziell zu tun und wie gesagt sie gehen alle richtig in Loxone in einem Modus Client auf dem Rechner und mit dem Kommandozeilen Tool modpull unter linux.
könnte natürlich jetzt mehrere Instanzen machen aber damit haben wir da Problem ja auch nicht wirklich gelöst.
-
@wendy2702 sagte in Modbus TCP Problem:
Zeige doch mal die Modbus Beschreibung des Gerätes.Wir sind nur am raten ... gibt doch mal alle Infos dazu !!
-
-
@bytec sagte in Modbus TCP Problem:
und wie gesagt sie gehen alle richtig in Loxone in einem Modus Client auf dem Rechner
Gegenfrage ... läßt dein Modbus eigentlich 2 Client´s zu, das Register abzufragen !?
-
ja sonst würden ja die anderen Clients wie oben geschrieben auch nicht gehen
der Client läuft die ganze Zeit nebenbei und pollt die richtigen Werte
-
@bytec sagte in Modbus TCP Problem:
2023-01-14 18:07:00.173 debug [DevID_1/inputRegs] Poll address 39 - 1 registers
2023-01-14 18:07:00.143 debug [DevID_1/inputRegs] Poll address 4 - 1 registers
das wäre richtig = 1 Register
ab hier 12
2023-01-14 18:07:00.213 debug [DevID_1/inputRegs] Poll address 77 - 12 registers
kannst du bitte ein Debug log zeigen , wo 77 funktioniert !
EDIT :
Bzw. 78 ... komme gerade nicht mit ... da :
@bytec sagte in Modbus TCP Problem:
dem auszulesenden Register dazuzählen also ich möchte 77 muss dann aber 78 eingeben. Dies funktioniert so bei den anderen Registern. -
Also aktuelle Einstellung im Bild werden 4 / 39 / 77 korrekt ausgelesen 88 kommt eine gelbe 0
Laut dem Log steht bei 77 ja wieder 12 register ...
2023-01-14 19:02:04.751 debug Closing client on purpose. modbus.1 2023-01-14 19:02:03.750 debug Cleaning up request fifo. modbus.1 2023-01-14 19:02:03.750 debug Socket closed with error modbus.1 2023-01-14 19:02:03.729 info Disconnected from slave 192.168.0.56 modbus.1 2023-01-14 19:02:03.729 debug Closing client on purpose. modbus.1 2023-01-14 19:02:03.678 warn Poll error count: 6 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:03.678 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:03.627 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:03.627 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:03.627 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:03.626 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:03.626 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:03.589 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:03.588 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:03.555 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:03.554 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:02:02.504 warn Poll error count: 5 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:02.504 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:02.442 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:02.410 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:02.409 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:02.380 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:02.380 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:02:01.329 warn Poll error count: 4 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:01.329 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:01.273 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:01.272 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:01.240 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:01.240 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:01.240 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:01.239 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:01.239 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:01.206 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:01.205 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:02:00.154 warn Poll error count: 3 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:02:00.154 debug Received pdu describes an error. modbus.1 2023-01-14 19:02:00.097 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:02:00.096 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:02:00.065 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:02:00.064 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:02:00.024 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:02:00.024 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:01:58.973 warn Poll error count: 2 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:01:58.972 debug Received pdu describes an error. modbus.1 2023-01-14 19:01:58.924 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:01:58.923 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:01:58.890 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:01:58.890 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:01:58.890 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:01:58.889 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:01:58.889 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:01:58.857 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:01:58.856 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:01:57.804 warn Poll error count: 1 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:01:57.803 debug Received pdu describes an error. modbus.1 2023-01-14 19:01:57.804 warn Poll error count: 1 code: {"errorCode":132,"exceptionCode":1,"message":"ILLEGAL FUNCTION"} modbus.1 2023-01-14 19:01:57.803 debug Received pdu describes an error. modbus.1 2023-01-14 19:01:57.744 debug [DevID_1/inputRegs] Poll address 77 - 12 registers modbus.1 2023-01-14 19:01:57.743 debug [DevID_1/inputRegs/39] Calculation result = 34.5, type = number modbus.1 2023-01-14 19:01:57.743 debug [DevID_1/inputRegs/39] Formula = x / 10 modbus.1 2023-01-14 19:01:57.743 debug [DevID_1/inputRegs/39] Input Value = 345 modbus.1 2023-01-14 19:01:57.742 debug [DevID_1/inputRegs] Poll address 39 DONE modbus.1 2023-01-14 19:01:57.711 debug [DevID_1/inputRegs] Poll address 39 - 1 registers modbus.1 2023-01-14 19:01:57.711 debug [DevID_1/inputRegs/4] Calculation result = 29.3, type = number modbus.1 2023-01-14 19:01:57.711 debug [DevID_1/inputRegs/4] Formula = x / 10 modbus.1 2023-01-14 19:01:57.710 debug [DevID_1/inputRegs/4] Input Value = 293 modbus.1 2023-01-14 19:01:57.710 debug [DevID_1/inputRegs] Poll address 4 DONE modbus.1 2023-01-14 19:01:57.673 debug [DevID_1/inputRegs] Poll address 4 - 1 registers modbus.1 2023-01-14 19:01:57.673 debug Initialization of scale factors done! modbus.1 2023-01-14 19:01:57.673 debug [DevID_1] Poll start --------------------- modbus.1 2023-01-14 19:01:57.672 info Connected to slave 192.168.0.56 modbus.1 2023-01-14 19:01:57.541 debug Initialize Objects for holdingRegs: [] modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.88_Rücklauf_oben: {"_id":"inputRegisters.88_Rücklauf_oben","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":88,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.77_Rücklauf_unten: {"_id":"inputRegisters.77_Rücklauf_unten","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":77,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.39_Vorlauf__oben: {"_id":"inputRegisters.39_Vorlauf__oben","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":39,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Add inputRegisters.4_Vorlauf_unten: {"_id":"inputRegisters.4_Vorlauf_unten","type":"state","common":{"name":"","role":"value","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":4,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}} modbus.1 2023-01-14 19:01:57.540 debug Initialize Objects for inputRegs: [{"_address":4,"name":"Vorlauf unten","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":4,"id":"inputRegisters.4_Vorlauf_unten"},{"_address":39,"name":"Vorlauf oben","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"x / 10","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":39,"id":"inputRegisters.39_Vorlauf__oben"},{"_address":77,"name":"Rücklauf unten","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":77,"id":"inputRegisters.77_Rücklauf_unten"},{"_address":88,"name":"Rücklauf oben","description":"","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"value","room":"","cw":false,"isScale":false,"deviceId":1,"address":88,"id":"inputRegisters.88_Rücklauf_oben"}] modbus.1 2023-01-14 19:01:57.539 debug Initialize Objects for coils: [] modbus.1 2023-01-14 19:01:57.539 debug Initialize Objects for disInputs: [] modbus.1 2023-01-14 19:01:57.479 info starting. Version 5.0.11 in /opt/iobroker/node_modules/iobroker.modbus, node: v14.17.0, js-controller: 4.0.24 modbus.1 2023-01-14 19:01:57.375 debug Plugin sentry Initialize Plugin (enabled=true) modbus.1 2023-01-14 19:01:57.324 debug States connected to redis: 127.0.0.1:9000 modbus.1 2023-01-14 19:01:57.267 debug States create User PubSub Client modbus.1 2023-01-14 19:01:57.266 debug States create System PubSub Client modbus.1 2023-01-14 19:01:57.259 debug Redis States: Use Redis connection: 127.0.0.1:9000 modbus.1 2023-01-14 19:01:57.246 debug Objects connected to redis: 127.0.0.1:9001 modbus.1 2023-01-14 19:01:57.244 debug Objects client initialize lua scripts modbus.1 2023-01-14 19:01:57.223 debug Objects create User PubSub Client modbus.1 2023-01-14 19:01:57.223 debug Objects create System PubSub Client modbus.1 2023-01-14 19:01:57.222 debug Objects client ready ... initialize now modbus.1 2023-01-14 19:01:57.204 debug Redis Objects: Use Redis connection: 127.0.0.1:9001
-
Ich muss mich hier auch mal einhängen. Versuche verzweifelt, mein Victron-System per Modbus auszulesen. Fehlermeldung ist ähnlich wie hier oben:
modbus.2 2023-01-15 09:28:45.667 debug [DevID_100/inputRegs] Poll address 840 - 21 registers modbus.2 2023-01-15 09:28:45.666 debug [DevID_100/inputRegs] Poll address 820 DONE modbus.2 2023-01-15 09:28:45.663 debug [DevID_100/inputRegs] Poll address 820 - 3 registers modbus.2 2023-01-15 09:28:45.662 debug [DevID_100] Poll start ---------------------
Das abzufragende Gerät liefert mir eine Erklärung:
Demnach hat der Modbus-Adapter versucht, ab Adresse 840 direkt 21 Bytes/Adressen (?) abzufragen. Dies scheiterte dann daran, dass es Adresse 847 nicht gibt, was auch stimmt. Er sollte diese Adresse auch gar nicht abfragen:
Ich habe jedoch in den Einstellungen des Adapters keine Option gefunden, in der man das Auslesen ganzer Blöcke deaktivieren könnte.
Oder bin ich da komplett auf dem Holzweg?
-
@oxident Ich frage auch 840 holding register des Gerätes 100 ab und bekomme keine Fehlermeldung.Ich habe 840 bis 846 eingetragen
Ich habe allerdings nur einen kleinen single phase 800VA MP 1.
Venus V2.80 29
Modbus Adapter 5.0.11, gestern update, war aber auch vorher gut.
Wie sehen Deine allgemeinen Einstellungen aus? -
@klassisch Ich dachte mir schon dass es bestimmt Nutzer gibt, die damit Ihr Victron-System bedienen.
Ich glaube, ich habe das Problem gefunden. In den Instanz-Einstellung war hinterlegt, dass er 10 Werte in einem Durchgang liest. Daran lag's wohl:
-
Super das war es jetzt geht es auch bei mir.
-
Freut mich, daß es jetzt auch bei Euch geht. Hab aber nicht verstanden, woran es lag.
Bei mir sieht es so aus: