Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Modbus TCP Fehler ILLEGAL DATA ADDRESS

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Modbus TCP Fehler ILLEGAL DATA ADDRESS

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @anticerosa last edited by

      @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

      eine Adresse +- hoch und runter probiert

      wieso dann Adresse 0?

      A 1 Reply Last reply Reply Quote 0
      • A
        anticerosa @Homoran last edited by

        @homoran
        Hallo

        war nur ein Beispiel was ich schon getestet hatte. Macht keinen Unterschied wenn ich Adresse 0 , 1 oder 2 eingebe. Das Ergebnis ist immer das selbe. Ich hatte nur gelesen das man manchmal eine Zahlenwert unter oder über einer Adresse auslesen muss um einen Erfolg zu bekommen.

        Bitmap-Bild (neu)5.jpg

        LG

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @anticerosa last edited by

          @anticerosa in node-red arbeitest du mit 30001, warum hier nicht?

          @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

          soll im Format signed short sein.

          wie ist das definiert?
          signed 8bit?

          A 1 Reply Last reply Reply Quote 0
          • A
            anticerosa @Homoran last edited by

            @homoran sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

            signed short

            Hallo,

            Ja das mit den unterschiedlichen Bezeichnungen der Variablentypen ist für mich auch so eine Sache.
            unsigned short / unsigned short int ist eine Variablendefination in C .

            Da die meisten meiner Variablen 0 bis 65535 und -32768 bis 32768 Werte haben gehe ich von 16 bit unsigned und 16 bit signed aus. Was ich nicht richtig verstehe ist Big Endian und Endian. Aber das sind ja nur 2 versuche dann müsste der Wert schon passen.

            Bitmap-Bild (neu)6.jpg

            LG

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @anticerosa last edited by

              @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

              Aber das sind ja nur 2 versuche dann müsste der Wert schon passen.

              genau, bei 8, 16 und 32 bit bin ich mir nich so sicher, da ein 32er so lang wie 4 8er ist und aufeinander folgende Register dann mit 4 Digits Abstand sein müssten.

              die Meldung illegal Adress hat nichts mit dem Format (oder doch wegen der Länge?) zu tun.

              Was sagt denn das debug-log?

              A 1 Reply Last reply Reply Quote 0
              • A
                anticerosa @Homoran last edited by

                @homoran

                meinst das mit debug Log

                Bitmap-Bild (neu)8.jpg

                LG

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @anticerosa last edited by

                  @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

                  meinst das mit debug Log

                  kann ich dir nicht sagen.
                  So ist das am Handy nicht zu entziffern.

                  Bitte als Text in code-tags posten.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    anticerosa @Homoran last edited by

                    @homoran

                    (seit gestern habe ich die IP auf 192.168.178.151 umgestellt)

                    modbus.1
                    2024-03-14 19:55:42.277	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:55:41.276	debug	Cleaning up request fifo.
                    
                    modbus.1
                    2024-03-14 19:55:41.275	debug	Socket closed with error
                    
                    modbus.1
                    2024-03-14 19:55:41.267	info	Disconnected from slave 192.168.178.151
                    
                    modbus.1
                    2024-03-14 19:55:41.264	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:55:41.212	warn	Poll error count: 6 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:55:41.211	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:55:41.208	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:55:41.207	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:55:40.154	warn	Poll error count: 5 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:55:40.153	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:55:40.149	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:55:40.148	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:55:39.094	warn	Poll error count: 4 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:55:39.092	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:55:39.087	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:55:39.085	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:55:38.034	warn	Poll error count: 3 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:55:38.033	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:55:38.031	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:55:38.030	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:55:36.978	warn	Poll error count: 2 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:55:36.977	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:55:36.974	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:55:36.973	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:55:35.922	warn	Poll error count: 1 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:55:35.920	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:55:35.904	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:55:35.903	debug	Initialization of scale factors done!
                    
                    modbus.1
                    2024-03-14 19:55:35.901	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:55:35.899	info	Connected to slave 192.168.178.151
                    
                    modbus.1
                    2024-03-14 19:55:35.591	debug	Initialize Objects for holdingRegs: []
                    
                    modbus.1
                    2024-03-14 19:55:35.590	debug	Add inputRegisters.1_Außentemperatur_1: {"_id":"inputRegisters.1_Außentemperatur_1","type":"state","common":{"name":"Außentemperatur 1","role":"level","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":1,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}}
                    
                    modbus.1
                    2024-03-14 19:55:35.589	debug	Initialize Objects for inputRegs: [{"_address":"1","name":"Außentemperatur 1","description":"Außentemperatur 1","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","cw":"","isScale":"","address":1,"deviceId":1,"id":"inputRegisters.1_Außentemperatur_1"}]
                    
                    modbus.1
                    2024-03-14 19:55:35.588	debug	Initialize Objects for coils: []
                    
                    modbus.1
                    2024-03-14 19:55:35.587	debug	Initialize Objects for disInputs: []
                    
                    modbus.1
                    2024-03-14 19:55:35.318	info	starting. Version 6.1.0 in /opt/iobroker/node_modules/iobroker.modbus, node: v16.19.0, js-controller: 4.0.23
                    
                    modbus.1
                    2024-03-14 19:55:34.904	debug	Plugin sentry Initialize Plugin (enabled=true)
                    
                    modbus.1
                    2024-03-14 19:55:34.829	debug	States connected to redis: 127.0.0.1:9000
                    
                    modbus.1
                    2024-03-14 19:55:34.760	debug	States create User PubSub Client
                    
                    modbus.1
                    2024-03-14 19:55:34.757	debug	States create System PubSub Client
                    
                    modbus.1
                    2024-03-14 19:55:34.736	debug	Redis States: Use Redis connection: 127.0.0.1:9000
                    
                    modbus.1
                    2024-03-14 19:55:34.700	debug	Objects connected to redis: 127.0.0.1:9001
                    
                    modbus.1
                    2024-03-14 19:55:34.692	debug	Objects client initialize lua scripts
                    
                    modbus.1
                    2024-03-14 19:55:34.641	debug	Objects create User PubSub Client
                    
                    modbus.1
                    2024-03-14 19:55:34.640	debug	Objects create System PubSub Client
                    
                    modbus.1
                    2024-03-14 19:55:34.636	debug	Objects client ready ... initialize now
                    
                    modbus.1
                    2024-03-14 19:55:34.586	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
                    
                    modbus.1
                    2024-03-14 19:55:29.622	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                    
                    modbus.1
                    2024-03-14 19:55:29.621	debug	Plugin sentry destroyed
                    
                    modbus.1
                    2024-03-14 19:55:29.620	info	terminating
                    
                    modbus.1
                    2024-03-14 19:55:29.618	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:55:29.616	info	Got terminate signal TERMINATE_YOURSELF
                    
                    modbus.1
                    2024-03-14 19:54:48.091	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:54:47.090	debug	Cleaning up request fifo.
                    
                    modbus.1
                    2024-03-14 19:54:47.089	debug	Socket closed with error
                    
                    modbus.1
                    2024-03-14 19:54:47.084	info	Disconnected from slave 192.168.178.151
                    
                    modbus.1
                    2024-03-14 19:54:47.083	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:54:47.031	warn	Poll error count: 7 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:54:47.029	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:54:47.023	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:54:47.022	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:54:47.020	info	Connected to slave 192.168.178.151
                    
                    modbus.1
                    2024-03-14 19:53:48.027	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:53:47.025	debug	Cleaning up request fifo.
                    
                    modbus.1
                    2024-03-14 19:53:47.023	debug	Socket closed with error
                    
                    modbus.1
                    2024-03-14 19:53:47.016	info	Disconnected from slave 192.168.178.151
                    
                    modbus.1
                    2024-03-14 19:53:47.013	debug	Closing client on purpose.
                    
                    modbus.1
                    2024-03-14 19:53:46.959	warn	Poll error count: 6 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:53:46.958	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:53:46.953	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:53:46.952	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:53:45.899	warn	Poll error count: 5 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:53:45.898	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:53:45.894	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:53:45.893	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:53:44.841	warn	Poll error count: 4 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:53:44.840	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:53:44.834	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:53:44.833	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:53:43.781	warn	Poll error count: 3 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:53:43.780	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:53:43.776	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:53:43.775	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:53:42.722	warn	Poll error count: 2 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:53:42.721	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:53:42.713	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:53:42.712	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:53:41.658	warn	Poll error count: 1 code: {"errorCode":132,"exceptionCode":2,"message":"ILLEGAL DATA ADDRESS"}
                    
                    modbus.1
                    2024-03-14 19:53:41.657	debug	Received pdu describes an error.
                    
                    modbus.1
                    2024-03-14 19:53:41.638	debug	[DevID_1/inputRegs] Poll address 1 - 1 registers
                    
                    modbus.1
                    2024-03-14 19:53:41.637	debug	Initialization of scale factors done!
                    
                    modbus.1
                    2024-03-14 19:53:41.634	debug	[DevID_1] Poll start ---------------------
                    
                    modbus.1
                    2024-03-14 19:53:41.633	info	Connected to slave 192.168.178.151
                    
                    modbus.1
                    2024-03-14 19:53:41.372	debug	Initialize Objects for holdingRegs: []
                    
                    modbus.1
                    2024-03-14 19:53:41.371	debug	Add inputRegisters.1_Außentemperatur_1: {"_id":"inputRegisters.1_Außentemperatur_1","type":"state","common":{"name":"Außentemperatur 1","role":"level","type":"number","read":true,"write":false,"def":0,"unit":"°C"},"native":{"regType":"inputRegs","address":1,"deviceId":1,"type":"int16be","len":1,"offset":0,"factor":1}}
                    
                    modbus.1
                    2024-03-14 19:53:41.370	debug	Initialize Objects for inputRegs: [{"_address":"1","name":"Außentemperatur 1","description":"Außentemperatur 1","unit":"°C","type":"int16be","len":1,"factor":1,"offset":0,"formula":"","role":"level","room":"","cw":"","isScale":"","address":1,"deviceId":1,"id":"inputRegisters.1_Außentemperatur_1"}]
                    
                    modbus.1
                    2024-03-14 19:53:41.369	debug	Initialize Objects for coils: []
                    
                    modbus.1
                    2024-03-14 19:53:41.369	debug	Initialize Objects for disInputs: []
                    
                    modbus.1
                    2024-03-14 19:53:41.158	info	starting. Version 6.1.0 in /opt/iobroker/node_modules/iobroker.modbus, node: v16.19.0, js-controller: 4.0.23
                    
                    modbus.1
                    2024-03-14 19:53:40.768	debug	Plugin sentry Initialize Plugin (enabled=true)
                    
                    modbus.1
                    2024-03-14 19:53:40.689	debug	States connected to redis: 127.0.0.1:9000
                    
                    modbus.1
                    2024-03-14 19:53:40.621	debug	States create User PubSub Client
                    
                    modbus.1
                    2024-03-14 19:53:40.618	debug	States create System PubSub Client
                    
                    modbus.1
                    2024-03-14 19:53:40.604	debug	Redis States: Use Redis connection: 127.0.0.1:9000
                    
                    modbus.1
                    2024-03-14 19:53:40.574	debug	Objects connected to redis: 127.0.0.1:9001
                    
                    modbus.1
                    2024-03-14 19:53:40.565	debug	Objects client initialize lua scripts
                    
                    modbus.1
                    2024-03-14 19:53:40.525	debug	Objects create User PubSub Client
                    
                    modbus.1
                    2024-03-14 19:53:40.523	debug	Objects create System PubSub Client
                    
                    modbus.1
                    2024-03-14 19:53:40.521	debug	Objects client ready ... initialize now
                    
                    modbus.1
                    2024-03-14 19:53:40.470	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
                    
                    modbus.1
                    2024-03-14 19:53:35.705	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                    
                    modbus.1
                    2024-03-14 19:53:35.702	info	terminating
                    
                    modbus.1
                    2024-03-14 19:53:35.698	info	Got terminate signal TERMINATE_YOURSELF
                    
                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @anticerosa last edited by

                      @anticerosa er baut die Verbindung auf, fragt die ID1 und Register 1cab, dann illegal adress.

                      nimm jetzt mal die 30001 bitte

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        anticerosa @Homoran last edited by

                        @homoran

                        ju-hu es klappt... Entschuldigung das ich das sage aber du bist ein Schatz !!

                        Bitmap-Bild (neu)9.jpg

                        mein Problem im Kopf war, wenn ich bei Aliases eine Hacken gesetzt hatte, hat es mir bei den Adressen die 30001 schreibweise vorgeschlagen und wenn ich den Hacken wieder rausgemacht habe kam wieder automatisch die 1 .
                        Dann dachte ich mir das ist der Sinn von dem Einsteller.

                        Aber richtig ist wohl kein Hacken bei Aliases und die Schreibweise 30001.

                        Danke schön noch mal !!!

                        LG

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @anticerosa last edited by

                          @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

                          Aber richtig ist wohl kein Hacken bei Aliases und die Schreibweise 30001.

                          müsste beides gehen.

                          Das wäre der nächste Rest gewesen

                          @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

                          wenn ich bei Aliases eine Hacken gesetzt hatte, hat es mir bei den Adressen die 30001 schreibweise vorgeschlagen

                          das ist kein Vorschlag, das ist due Umtechnung 1 + Alias-Offset von 30000

                          @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

                          ju-hu es klappt

                          dann viel Spaß damit

                          @anticerosa sagte in Modbus TCP Fehler ILLEGAL DATA ADDRESS:

                          du bist ein Schatz !!

                          weiss ich doch 😂

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate
                          FAQ Cloud / IOT
                          HowTo: Node.js-Update
                          HowTo: Backup/Restore
                          Downloads
                          BLOG

                          441
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          illegal data address modbus tcp weishaupt
                          2
                          12
                          609
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo