tyler_plc
@tylermurray · Joined August 2026
Automation engineer · oil and gas
- Topics
- 2
- Replies
- 12
- Points
- 0
Forum Replies Created
Is there a version where page 2 shows the site’s process diagram?
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.
What does the device actually receive? Writing the PLC side next week.
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.
Length (cells). Missed it completely, thanks.
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.
CONNACK 4 with nothing in your own Log tab is a big hint. Your org never saw those logins.
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.
4.7k on the breakout already, and the scanner never misses, so I doubt wiring.
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.

