Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Notstromaggregat mit Modbus einbinden funktioniert nicht

    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

    Notstromaggregat mit Modbus einbinden funktioniert nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • Alexander Reh
      Alexander Reh last edited by Alexander Reh

      Hi liebe IOBrokers,

      ich würde gerne eine Steuerung eines Notstromaggregats bei mir per Modbus einbinden damit ich es von außerhalb auslesen und auch steuern kann.
      Verbunden ist es ist es über einen USB > RS485 Stick der im Broker steckt und meiner Meinung nach auch erkannt wird, jedoch bekomme ich keine Verbindung hin. Siehe Log

      2022-12-28 10:45:48.262 - info: host.pi stopInstance system.adapter.modbus.0 (force=false, process=true)
      2022-12-28 10:45:48.294 - info: host.pi stopInstance system.adapter.modbus.0 send kill signal
      2022-12-28 10:45:48.293 - info: modbus.0 (1533) Got terminate signal TERMINATE_YOURSELF
      2022-12-28 10:45:48.298 - info: modbus.0 (1533) terminating
      2022-12-28 10:45:48.300 - debug: modbus.0 (1533) Plugin sentry destroyed
      2022-12-28 10:45:48.301 - info: modbus.0 (1533) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2022-12-28 10:45:48.919 - info: host.pi instance system.adapter.modbus.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2022-12-28 10:45:51.376 - info: host.pi instance system.adapter.modbus.0 started with pid 1548
      2022-12-28 10:45:53.802 - debug: modbus.0 (1548) Redis Objects: Use Redis connection: 127.0.0.1:9001
      2022-12-28 10:45:53.873 - debug: modbus.0 (1548) Objects client ready ... initialize now
      2022-12-28 10:45:53.878 - debug: modbus.0 (1548) Objects create System PubSub Client
      2022-12-28 10:45:53.881 - debug: modbus.0 (1548) Objects create User PubSub Client
      2022-12-28 10:45:53.916 - debug: modbus.0 (1548) Objects client initialize lua scripts
      2022-12-28 10:45:53.929 - debug: modbus.0 (1548) Objects connected to redis: 127.0.0.1:9001
      2022-12-28 10:45:53.969 - debug: modbus.0 (1548) Redis States: Use Redis connection: 127.0.0.1:9000
      2022-12-28 10:45:53.985 - debug: modbus.0 (1548) States create System PubSub Client
      2022-12-28 10:45:53.988 - debug: modbus.0 (1548) States create User PubSub Client
      2022-12-28 10:45:54.049 - debug: modbus.0 (1548) States connected to redis: 127.0.0.1:9000
      2022-12-28 10:45:54.111 - debug: modbus.0 (1548) Plugin sentry Initialize Plugin (enabled=true)
      2022-12-28 10:45:54.702 - info: modbus.0 (1548) starting. Version 5.0.11 in /opt/iobroker/node_modules/iobroker.modbus, node: v16.18.1, js-controller: 4.0.23
      2022-12-28 10:45:54.976 - debug: modbus.0 (1548) Initialize Objects for disInputs: []
      2022-12-28 10:45:54.977 - debug: modbus.0 (1548) Initialize Objects for coils: []
      2022-12-28 10:45:54.979 - debug: modbus.0 (1548) Initialize Objects for inputRegs: [{"_address":"30001","name":"Gesamtarbeit","description":"Gesamtarbeit","unit":"kWh","type":"uint16be","len":1,"factor":0.1,"offset":0,"formula":"","role":"level","room":"","cw":"","isScale":"","address":30001,"deviceId":1,"id":"inputRegisters.30001_Gesamtarbeit"}]
      2022-12-28 10:45:54.981 - debug: modbus.0 (1548) Add inputRegisters.30001_Gesamtarbeit: {"_id":"inputRegisters.30001_Gesamtarbeit","type":"state","common":{"name":"Gesamtarbeit","role":"level","type":"number","read":true,"write":false,"def":0,"unit":"kWh"},"native":{"regType":"inputRegs","address":30001,"deviceId":1,"type":"uint16be","len":1,"offset":0,"factor":0.1}}
      2022-12-28 10:45:54.982 - debug: modbus.0 (1548) Initialize Objects for holdingRegs: []
      2022-12-28 10:45:55.471 - debug: modbus.0 (1548) connect to serial /dev/ttyUSB0 with 9600
      2022-12-28 10:45:55.483 - info: modbus.0 (1548) Connected to slave
      2022-12-28 10:45:55.485 - debug: modbus.0 (1548) [DevID_1] Poll start ---------------------
      2022-12-28 10:45:55.489 - debug: modbus.0 (1548) Initialization of scale factors done!
      2022-12-28 10:45:55.491 - debug: modbus.0 (1548) [DevID_1/inputRegs] Poll address 30001 - 1 registers
      2022-12-28 10:46:00.505 - warn: modbus.0 (1548) Error: undefined
      2022-12-28 10:46:00.507 - error: modbus.0 (1548) Request timed out.
      2022-12-28 10:46:00.512 - warn: modbus.0 (1548) Poll error count: 1 code: {"err":"timeout","timeout":5000}
      2022-12-28 10:46:01.512 - info: modbus.0 (1548) Disconnected from slave
      2022-12-28 10:46:01.516 - debug: modbus.0 (1548) Clearing timeout of the current request.
      2022-12-28 10:46:01.518 - debug: modbus.0 (1548) Cleaning up request fifo.
      

      Ich habe auch noch eine Registerübersicht des Gerätes aus der ich nicht ganz schlau werde.
      Meine Fragezeichen sind:

      • Welchen Datentyp muss ich hier nehmen? Ich finde dazu nichts.
      • Welche Registeradressen sind es denn letztendlich?
        Screenshot 2022-12-28 105044.png
        Hier ist noch die Anleitung von dem Gerät.
        RTG3-RTG3s RS485 Registerübersicht DE FW1.8.pdf

      Danke schonmal für eure Hilfe!!!!

      Rene55 TheBam 2 Replies Last reply Reply Quote 0
      • Rene55
        Rene55 @Alexander Reh last edited by

        @alexander-reh Hallo Alex, leider hab ich überhaupt keine Ahnung von modbus. Es sieht im Log ja so aus, als wäre eine Verbindung da, aber dann kommt ein Timeout. Wenn du magst, kannst du im modbus-Adpter mal das hier einstellen modbus_0xAh.png und dann mal sehen, ob irgendwo eine Antwort kommt. Ist nur ein erster Versuch.
        Gruß Rainer

        1 Reply Last reply Reply Quote 0
        • TheBam
          TheBam @Alexander Reh last edited by

          @alexander-reh
          Sieht etwas seltsam aus die Nachricht. Kannst du den USB Stick/Konverter Mal in einen Windows PC stecken? Da gibt es ein Programm das heißt cas Modbus Scanner ist auch Freeware damit kannst du gucken ob da was kommt bzw wie genau. Mit den Ergebnissen kannst du dann die Werte in den Registern eintragen da der Modbus Adapter sehr extrem reagiert wenn nur ein Eintrag nicht stimmt.

          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

          817
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          3
          3
          216
          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