tyler_plc
@tylermurray · Mitglied seit August 2026
Automation engineer · oil and gas
- Themen
- 2
- Antworten
- 12
- Punkte
- 0
Erstellte Forenantworten
Von English mit KI übersetzt ·
Gibt es eine Version, bei der Seite 2 das Prozessdiagramm der Anlage zeigt?
Is there a version where page 2 shows the site’s process diagram?
Von English mit KI übersetzt ·
Unsere Test-SPS antwortet auf sys.ping, im Verlauf steht Successful und die Dauer. Ich habe eine Stunde gebraucht, um zu erkennen, dass man nach jeder Wiederverbindung erneut subskribieren muss, ich hatte das nur einmal beim Start gemacht.
Got our test PLC answering sys.ping, history shows Successful and the duration. Took me an hour to see that it has to subscribe again after every reconnect, I was only doing it once at boot.
Von English mit KI übersetzt ·
Was empfängt das Gerät eigentlich? Ich schreibe nächste Woche die SPS-Seite.
What does the device actually receive? Writing the PLC side next week.
Von English mit KI übersetzt ·
Am günstigsten ist ein beliebiger ESP32 + ein W5500-Modul + ein 802.3af-Splitter, der 5 V ausgibt. Insgesamt vielleicht 15. Allerdings viele Jumperkabel, und die W5500-Boards sind bei 3,3 V heikel.
Cheapest is any ESP32 + a W5500 module + an 802.3af splitter that outputs 5 V. Maybe 15 total. Lots of jumper wires though, and the W5500 boards are picky about 3.3 V.
Von English mit KI übersetzt ·
Länge (Zellen). Das habe ich komplett übersehen, danke.
Length (cells). Missed it completely, thanks.
Von English mit KI übersetzt ·
Gutes Timing, ich zeichne diese Woche eine Sortierlinie. Lässt sich ein Förderer strecken oder nur skalieren? Wenn ich ein Band skaliere, um es länger zu machen, werden die Rollen riesig und es sieht albern aus.
Good timing, I am drawing a sorting line this week. Can a conveyor be stretched or only scaled? When I scale a belt up to make it longer the rollers get huge and it looks silly.
Von English mit KI übersetzt ·
CONNACK 4 bei gleichzeitig leerem Log-Tab in Ihrer eigenen Organisation ist ein deutlicher Hinweis. Ihre Organisation hat diese Anmeldungen nie gesehen.
CONNACK 4 with nothing in your own Log tab is a big hint. Your org never saw those logins.
Von English mit KI übersetzt ·
Polling-Schleife eingesetzt, n erreicht beim zweiten oder dritten Versuch 3, also etwa 20-30 ms. Seit zwei Tagen keine Lücke mehr. Außerdem habe ich bei Fehlern 0 gesendet, was die seltsamen Einbrüche im Diagramm erklärt. Danke Daniel.
Polling loop in, n hits 3 on the second or third try, so about 20-30 ms. Two days without a hole. I was also sending 0 on failures, which explains the weird dips on the chart. Thanks Daniel.
Von English mit KI übersetzt ·
Auf dem Breakout sind bereits 4,7k vorhanden, und der Scanner verpasst nie etwas, daher bezweifle ich die Verdrahtung.
4.7k on the breakout already, and the scanner never misses, so I doubt wiring.
Von English mit KI übersetzt ·
Emilys Hinweis ist ein Teil davon. Der Rest ist das UART-Durcheinander beim Pi 3, das alle erwischt.Der Pi 3/4/Zero W hat zwei UARTs. ttyAMA0 ist der PL011, der gute mit eigenem Takt. ttyS0 ist der Mini-UART, dessen Baudrate aus dem Takt des VPU-Kerns abgeleitet wird. Wenn sich der Kerntakt ändert, driftet die Baudrate, und genau dann bekommst du deine CRC-Fehler im Verhältnis eins zu fünf. Bei diesen Modellen ist der PL011 standardmäßig mit dem integrierten Bluetooth verbunden, und der GPIO-Header bekommt den Mini-UART. /dev/serial0 ist ein Alias, der immer auf denjenigen zeigt, der auf GPIO14/15 liegt.Je nach Konfiguration hast du also entweder mit dem Bluetooth-Chip oder mit dem Mini-UART gesprochen. Gib den PL011 dem Header zurück:
# /boot/firmware/config.txt (Bookworm)
enable_uart=1
dtoverlay=disable-bt
sudo systemctl disable hciuart
# und console=serial0,115200 aus /boot/firmware/cmdline.txt entfernen
sudo reboot
Öffne dann /dev/serial0 in deinem Skript, damit es auch bei einem Wechsel auf ein anderes Modell weiter funktioniert. Du verlierst das integrierte Bluetooth, was du in einer Zählerstand-Box aber nicht vermissen wirst.Falls du Bluetooth brauchst, wäre die andere Option core_freq=250, um den Takt für den Mini-UART festzusetzen, aber ich hätte lieber den PL011.
Emily’s bit is part of it. The rest is the Pi 3 UART shuffle, which catches everyone.
The Pi 3/4/Zero W have two UARTs. ttyAMA0 is the PL011, the good one with its own clock. ttyS0 is the mini UART, whose baud rate is derived from the VPU core clock, so when the core clock moves the baud drifts and you get exactly your one-in-five CRC errors. On those models the PL011 is wired to the onboard Bluetooth by default and the GPIO header gets the mini UART. /dev/serial0 is an alias that always points at whichever one is on GPIO14/15.
So depending on your config you were either talking to the Bluetooth chip or to the mini UART. Give the PL011 back to the header:
# /boot/firmware/config.txt (Bookworm)
enable_uart=1
dtoverlay=disable-bt
sudo systemctl disable hciuart
# and remove console=serial0,115200 from /boot/firmware/cmdline.txt
sudo reboot
Then open /dev/serial0 in your script, so it keeps working if you move to another model. You lose onboard Bluetooth, which on a meter-reading box you don’t miss.
If you need Bluetooth, the other option is core_freq=250 to pin the clock for the mini UART, but I’d rather have the PL011.
Good explanation Ciaran, saving this for the next new hire.
Yep, a 4G router in each one. Signal is fine at most of them, marginal at two.

