NEWS
[Gelöst] MODBUS.0 Adapter fehlt Master/Slave möglichkeit?
-
modbus.0 2023-01-25 21:24:26.494 debug Cleaning up request fifo. modbus.0 2023-01-25 21:24:26.493 debug Clearing timeout of the current request. modbus.0 2023-01-25 21:24:26.487 info Disconnected from slave modbus.0 2023-01-25 21:24:26.036 warn Poll error count: 1 code: "App Timeout" modbus.0 2023-01-25 21:24:25.484 error Cannot write single register [38407]: {"err":"timeout","timeout":5000} modbus.0 2023-01-25 21:24:25.483 error Request timed out. modbus.0 2023-01-25 21:24:25.482 warn Error: undefined modbus.0 2023-01-25 21:24:20.836 debug [DevID_10/inputRegs] Poll address 13568 - 21 registers modbus.0 2023-01-25 21:24:20.836 debug [DevID_10] Poll start --------------------- modbus.0 2023-01-25 21:24:20.585 error Error response: Function code received in the query is not recognized or allowed by slave modbus.0 2023-01-25 21:24:20.584 error Error response for FCx6: Illegal Function modbus.0 2023-01-25 21:24:20.473 debug state Changed ack=false: modbus.0.holdingRegisters.38407_PV_System_LadeStatus: {"val":1,"ack":false,"ts":1674678260467,"q":0,"from":"system.adapter.admin.0","user":"system.user.admin","lc":1674678260467} modbus.0 2023-01-25 21:24:19.783 debug [DevID_10/holdingRegs] Poll address 38407 DONE modbus.0 2023-01-25 21:24:19.697 debug [DevID_10/holdingRegs] Poll address 38407 - 1 registers modbus.0 2023-01-25 21:24:19.689 debug [DevID_10/inputRegs/13697] Calculation result = 0.84, type = number modbus.0 2023-01-25 21:24:19.689 debug [DevID_10/inputRegs/13697] Formula = x / 100 modbus.0 2023-01-25 21:24:19.689 debug [DevID_10/inputRegs/13697] Input Value = 84 modbus.0 2023-01-25 21:24:19.688 debug [DevID_10/inputRegs/13696] Calculation result = 56.87, type = number modbus.0 2023-01-25 21:24:19.688 debug [DevID_10/inputRegs/13696] Formula = x / 100 modbus.0 2023-01-25 21:24:19.688 debug [DevID_10/inputRegs/13696] Input Value = 5687 modbus.0 2023-01-25 21:24:19.687 debug [DevID_10/inputRegs] Poll address 13696 DONE modbus.0 2023-01-25 21:24:19.599 debug [DevID_10/inputRegs] Poll address 13696 - 7 registers modbus.0 2023-01-25 21:24:19.595 debug [DevID_10/inputRegs/13655] Calculation result = 211.15, type = number modbus.0 2023-01-25 21:24:19.592 debug [DevID_10/inputRegs/13655] Formula = x / 100 modbus.0 2023-01-25 21:24:19.592 debug [DevID_10/inputRegs/13655] Input Value = 21115 modbus.0 2023-01-25 21:24:19.591 debug [DevID_10/inputRegs] Poll address 13655 DONE modbus.0 2023-01-25 21:24:19.501 debug [DevID_10/inputRegs] Poll address 13655 - 1 registers modbus.0 2023-01-25 21:24:19.499 debug [DevID_10/inputRegs/13643] Calculation result = 0, type = number modbus.0 2023-01-25 21:24:19.498 debug [DevID_10/inputRegs/13643] Formula = x / 100 modbus.0 2023-01-25 21:24:19.498 debug [DevID_10/inputRegs/13643] Input Value = 0 modbus.0 2023-01-25 21:24:19.498 debug [DevID_10/inputRegs/13642] Calculation result = 0, type = number modbus.0 2023-01-25 21:24:19.497 debug [DevID_10/inputRegs/13642] Formula = x / 100
-
@wendy2702 sagte in MODBUS.0 Adapter fehlt Master/Slave möglichkeit?:
@michael-pusch sagte in MODBUS.0 Adapter fehlt Master/Slave möglichkeit?:
Function code received in the query is not recognized or allowed by slave
Da steht aber das dein WR den Function Code nicht akzeptiert.
Also entweder register falsch, kein Holding, oder falsche Register Parameter.
Laut Hex müsste die Adresse dann 38407 lauten...
es geht um die Zeile C8
-
@wendy2702 sagte in MODBUS.0 Adapter fehlt Master/Slave möglichkeit?:
@michael-pusch sagte in MODBUS.0 Adapter fehlt Master/Slave möglichkeit?:
Function code received in the query is not recognized or allowed by slave
Da steht aber das dein WR den Function Code nicht akzeptiert.
Also entweder register falsch, kein Holding, oder falsche Register Parameter.
Ich zitiere mich selber.
-
Write ist Holding Register
-
liegt ja dort
-
-
-
@wendy2702 sagte in MODBUS.0 Adapter fehlt Master/Slave möglichkeit?:
Function Code 16
Setze mal den haken
Ich "glaube" es funktioniert jetzt... Hakerl gesetzt, obwohl ich das hakerl setzen in anderen versuchen definitiv zwar schon mal gemacht hatte, aber jetzt dürfte es funktionieren. Hat sicher auch mit der "Mehrere ID´s" problematik zu tun gehabt...
Wenn ich am Datenpunkt manuell nun 2 eingebe soll er PV bevorzugen, wenn das nicht reicht soll er mit EVU, also Netz nachschiessen.
Wenn ich das eingebe, springt der Accu auf Standby da er voll ist und der Strom aus dem EVU Netz wird verwendet.Wenn ich den Datenpunkt jetzt mit 1 belege, soll er nur PV nehmen... da das jetzt in der Nacht natürlich nicht reicht, springt der Accu an und geht von Standby auf Entladend.. sprich, er spricht mir den Datenpunkt im Hybridwechselrichter anscheinend definitv an und stellt mir diesen um!
Ich darf nur nicht "Bestätigt" anhängen, dann kommt und passiert auch nix !
Leute DANKE DANKE DANKE... !!!
-
@michael-pusch Was kommt denn im Debug log wenn du den Wert schreibst?
Und wenn es funktioniert, bitte den ersten Beitrag editieren und ein [Gelöst] vor den Titel setzen
-
modbus.0 2023-01-25 22:05:31.032 debug [DevID_10/holdingRegs] Poll address 38407 DONE modbus.0 2023-01-25 22:05:30.939 debug [DevID_10/holdingRegs] Poll address 38407 - 1 registers modbus.0 2023-01-25 22:05:30.938 debug [DevID_10/inputRegs/13697] Calculation result = 0.56, type = number modbus.0 2023-01-25 22:05:30.937 debug [DevID_10/inputRegs/13697] Formula = x / 100 modbus.0 2023-01-25 22:05:30.937 debug [DevID_10/inputRegs/13697] Input Value = 56 modbus.0 2023-01-25 22:05:30.937 debug [DevID_10/inputRegs/13696] Calculation result = 56.91, type = number modbus.0 2023-01-25 22:05:30.937 debug [DevID_10/inputRegs/13696] Formula = x / 100 modbus.0 2023-01-25 22:05:30.937 debug [DevID_10/inputRegs/13696] Input Value = 5691 modbus.0 2023-01-25 22:05:30.936 debug [DevID_10/inputRegs] Poll address 13696 DONE modbus.0 2023-01-25 22:05:30.843 debug [DevID_10/inputRegs] Poll address 13696 - 7 registers modbus.0 2023-01-25 22:05:30.841 debug [DevID_10/inputRegs/13655] Calculation result = 211.15, type = number modbus.0 2023-01-25 22:05:30.841 debug [DevID_10/inputRegs/13655] Formula = x / 100 modbus.0 2023-01-25 22:05:30.841 debug [DevID_10/inputRegs/13655] Input Value = 21115 modbus.0 2023-01-25 22:05:30.840 debug [DevID_10/inputRegs] Poll address 13655 DONE modbus.0 2023-01-25 22:05:30.746 debug [DevID_10/inputRegs] Poll address 13655 - 1 registers modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13643] Calculation result = 0, type = number modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13643] Formula = x / 100 modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13643] Input Value = 0 modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13642] Calculation result = 0, type = number modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13642] Formula = x / 100 modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13642] Input Value = 0 modbus.0 2023-01-25 22:05:30.745 debug [DevID_10/inputRegs/13641] Calculation result = 0, type = number modbus.0 2023-01-25 22:05:30.744 debug [DevID_10/inputRegs/13641] Formula = x / 100 modbus.0 2023-01-25 22:05:30.744 debug [DevID_10/inputRegs/13641] Input Value = 0 modbus.0 2023-01-25 22:05:30.744 debug [DevID_10/inputRegs] Poll address 13641 DONE modbus.0 2023-01-25 22:05:30.634 debug [DevID_10/inputRegs] Poll address 13641 - 3 registers modbus.0 2023-01-25 22:05:30.633 debug [DevID_10/inputRegs/13616] Calculation result = -302.46, type = number modbus.0 2023-01-25 22:05:30.633 debug [DevID_10/inputRegs/13616] Formula = x / 100 modbus.0 2023-01-25 22:05:30.633 debug [DevID_10/inputRegs/13616] Input Value = -30246 modbus.0 2023-01-25 22:05:30.632 debug [DevID_10/inputRegs] Poll address 13616 DONE modbus.0 2023-01-25 22:05:30.538 debug [DevID_10/inputRegs] Poll address 13616 - 1 registers modbus.0 2023-01-25 22:05:30.537 debug [DevID_10/inputRegs/13602] Calculation result = 0.36, type = number modbus.0 2023-01-25 22:05:30.537 debug [DevID_10/inputRegs/13602] Formula = x / 100 modbus.0 2023-01-25 22:05:30.537 debug [DevID_10/inputRegs/13602] Input Value = 36 modbus.0 2023-01-25 22:05:30.537 debug [DevID_10/inputRegs/13601] Calculation result = 232.41, type = number modbus.0 2023-01-25 22:05:30.537 debug [DevID_10/inputRegs/13601] Formula = x / 100 modbus.0 2023-01-25 22:05:30.536 debug [DevID_10/inputRegs/13601] Input Value = 23241 modbus.0 2023-01-25 22:05:30.536 debug [DevID_10/inputRegs] Poll address 13601 DONE modbus.0 2023-01-25 22:05:30.447 debug [DevID_10/inputRegs] Poll address 13601 - 2 registers modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13588] Calculation result = 26, type = number modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13588] Formula = x / 100 modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13588] Input Value = 2600 modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13587] Calculation result = 24, type = number modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13587] Formula = x / 100 modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13587] Input Value = 2400 modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13586] Calculation result = 12, type = number modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13586] Formula = x / 100 modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13586] Input Value = 1200 modbus.0 2023-01-25 22:05:30.442 debug [DevID_10/inputRegs/13583] Calculation result = 120.34, type = number modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13583] Formula = x / 100 modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13583] Input Value = 12034 modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13572] Calculation result = 50, type = number modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13572] Formula = x / 100 modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13572] Input Value = 5000 modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13570] Calculation result = 31.86, type = number modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13570] Formula = x / 100 modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13570] Input Value = 3186 modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13568] Calculation result = 232.41, type = number modbus.0 2023-01-25 22:05:30.441 debug [DevID_10/inputRegs/13568] Formula = x / 100 modbus.0 2023-01-25 22:05:30.440 debug [DevID_10/inputRegs/13568] Input Value = 23241 modbus.0 2023-01-25 22:05:30.440 debug [DevID_10/inputRegs] Poll address 13568 DONE modbus.0 2023-01-25 22:05:30.388 debug [DevID_10/inputRegs] Poll address 13568 - 21 registers modbus.0 2023-01-25 22:05:30.388 debug [DevID_10] Poll start --------------------- modbus.0 2023-01-25 22:05:29.337 debug [DevID_10/holdingRegs] Poll address 38407 DONE modbus.0 2023-01-25 22:05:29.242 debug [DevID_10/holdingRegs] Poll address 38407 - 1 registers modbus.0 2023-01-25 22:05:29.241 debug [DevID_10/inputRegs/13697] Calculation result = 0.56, type = number modbus.0 2023-01-25 22:05:29.241 debug [DevID_10/inputRegs/13697] Formula = x / 100 modbus.0 2023-01-25 22:05:29.241 debug [DevID_10/inputRegs/13697] Input Value = 56
muss man suchen, 38407
-
@michael-pusch sagte in MODBUS.0 Adapter fehlt Master/Slave möglichkeit?:
2023-01-25 22:05:31.032 debug [DevID_10/holdingRegs] Poll address 38407 DONE
Zumindest kein Reject.
Sieht also erst mal gut aus.
-
@wendy2702
@Glasfaser
@HomoranDanke !
Werd das im Auge behalten, ist aber dermassen MÄCHTIG die gesamte ioBroker umgebung und die meisten User wissen das garnicht zu schätzen was ich hier immer wieder lesen muss...!
Und ihr steckt da so viel Zeit, Geld und Nerven trotzdem noch immer in das Projekt...Danke nochmals und Hut ab !!!!