Python & Programmable Logic Controllers - A Step by Step Guide
summary
A small AutomationDirect P1-540 PLC runs ladder logic that blinks a three‑color traffic light; two variables blink interval millisecond and blink color are exposed as modbus registers (holding registers 0 and 1). A laptop at 192.168.1.8 talks Ethernet to 192.168.1.9 using pi-modbus-tcp (pip install) to read value 1 (red), write 2 (yellow) and change 1000ms → 500ms → 2000ms; the demo works end‑to‑end.
AI-written summary · about
chapters (8)
- 0:00Introduction to PLC
- 1:07How PLC works
- 4:32Speaker introduction
- 7:58PLC setup tutorial
- 13:28Modbus protocol basics
- 17:49Python interaction demo
- 21:55Programming and limits
- 26:13Q&A and conclusion
related talks
14mOpenPLC: how industrial are you?
16mRaspberry Pi and Node-RED: Open Source Tools for Local Automation and Industrial IoT applications
55mPLC-Blaster: A worm Living Solely In The PLC
21mKeynote – Daniel Koffler
48mUnified fieldbus API with Apache PLC4X
38mPLC-Blaster: A Worm Living Solely in the PLC
27mLight Up Your Life - With Python and LEDs!
19mOpen Lighting Architecture
