PLC Programming with the Raspberry Pi and the OpenPLC Project
ModbusRTU and ModbusTCP examples with the Arduino Uno and ESP8266
By Josef Bernhardt
Visual Description of Title Page Elements
The title page features a prominent image showcasing a Raspberry Pi 4 Model B board alongside a screenshot of the OpenPLC editor. The Raspberry Pi 4 is a compact single-board computer. The OpenPLC editor screenshot displays a user interface typical for PLC programming environments, including a table listing PLC variables (e.g., BTN_ON, BTN_OFF, LED) with their types (BOOL, TON, TOF) and memory locations (e.g., %IX0.0, %QX0.0). A ladder logic diagram is visible, illustrating basic PLC programming elements like contacts (representing inputs like BTN_ON) and coils (representing outputs like LED), as well as timer function blocks (TON, TOF) with specified time delays (T#500ms). The editor also shows interface elements like 'Library', 'Debugger', and 'Search'. The board itself is labeled with FCC ID and CE markings.
About the Publisher
This publication is from Elektor, the media brand of Elektor International Media B.V., located in Susteren, The Netherlands. Elektor is a leading source of technical information and electronics products for engineers and designers. They develop and deliver high-quality content across various media channels in multiple languages, focusing on electronics design and DIY electronics. Their website is www.elektormagazine.com.
Copyright: 2021 Elektor International Media B.V.
ISBNs: 978-3-89576-469-1 (Print), 978-3-89576-470-7 (eBook)
Editor: Denis Meyer
Prepress Production: D-Vision, Julian van den Berg
The publisher and author have made efforts to ensure correctness but disclaim liability for errors or omissions.
Table of Contents Overview
The book is structured into several chapters covering the following topics:
- Chapter 1: Installing the Raspberry Pi 4 - Covers hardware description, OS installation, VNC Viewer, WinSCP, and OpenPLC runtime installation.
- Chapter 2: OpenPLC Editor Installation - Details download, installation, Raspberry Pi pin descriptions, and additional hardware.
- Chapter 3: The OpenPLC Editor - Explains the editor, and provides examples in Ladder Logic (LD), Function Block Diagram (FBD), Instruction List (IL), Structured Text (ST, SCL), and Sequential Function Chart (SFC). This includes sections on variables, control structures, function blocks, and data types like ENUMs.
- Chapter 4: OpenPLC and the Modbus - Focuses on testing PLC programs with Modbus TCP, visualization with AdvancedHMI, and visualization via the internet.
- Chapter 5: Modbus I/O modules - Discusses Modbus RTU with Arduino UNO, Modbus TCP with ESP8266 and WLAN, and web server applications.
- Chapter 6: Bibliography, circuit diagrams and layouts - Includes web links, Modbus commands for ESP8266, and circuit diagrams for test boards and ESP8266 boards.