Hallo zusammen,
ich möchte einen Analogwert mit dem Raspberry Pi und der Analogkarte KY-053 auslesen. Dafür nutze ich ein Python-Skript, das den Wert ausliest und in das Holding Register 100 schreibt. Mit dem Tool Radzio kann ich bestätigen, dass der Wert korrekt im Register ankommt.
Wenn ich in OpenPLC einen Slave Device mit der passenden IP-Adresse anlege, funktioniert die Kommunikation auch. Das Problem ist jedoch, dass nach dem Übertragen des Programms aus dem OpenPLC Editor und dem Start im OpenPLC Webinterface der Wert im Monitoring nicht angezeigt wird.
Kann mir jemand sagen, ob ich auf dem richtigen Weg bin? Und wie ich den analogen Wert korrekt in OpenPLC bekomme, um ihn dort weiterverarbeiten zu können?
In der angehängten PDF findet ihr meine bisherigen Schritte.
Hello everyone,
I want to read an analog value using a Raspberry Pi and the KY-053 analog board. For this, I use a Python script that reads the value and writes it into holding register 100. I can verify with the tool Radzio that the value is correctly written to the register.
When I create a slave device in OpenPLC with the correct IP address, the communication works. However, the problem is that after uploading the program from the OpenPLC Editor and starting it via the OpenPLC web interface, the value is not shown in the monitoring.
Can someone tell me if I am on the right track? And how can I get the analog value into OpenPLC so I can process it there?
You can find my current steps in the attached PDF.