This is the code repository for PLCs for Beginners, published by Packt.
An introductory guide to building robust PLC programs with structured text language
This book is a hands-on tutorial style book that will introduce you to various PLC, computer science, and programming concepts. By using this book, you will learn by doing it.
This book covers the following exciting features:
- Explore and understand how to implement PLC programs in structured text
- Experiment with common functions in structured text
- Control the flow of a PLC program with loop and conditional statements
- Discover how to design a PLC program with pseudocode and flowcharts
- Implement common sorting algorithms such as bubble sort and insertion sort, and understand concepts such as Big O
- Understand the basics of cybersecurity to protect PLC-based systems
- Leverage ChatGPT for PLC programming
- Understand the basics of troubleshooting hardware and fixing common problems
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
PROGRAM PLC_PRG
VAR
currentHopperWeight : REAL := 250;
bag1Weight : REAL;
bag2Weight : REAL;
END_VAR
Following is what you need for this book: This book is for automation engineering students and individuals seeking entry-level knowledge of PLC programming with structured text and other modern computer science concepts to excel in the advanced automation landscape. No prior knowledge of PLC programming is required.
With the following software and hardware list you can run all code files present in the book (Chapter 1-18).
Chapter | Software required | OS required |
---|---|---|
1-18 | CODESYS | Windows, Mac OS X, and Linux (Any) |
1-18 | ChatGPT | Windows, Mac OS X, and Linux (Any) |
M.T. White has been programming since the age of 12. M.T. currently holds an undergraduate degree in mathematics, a master's degree in software engineering, and an MBA. M.T. is currently working as a DevOps engineer and is an adjunct CIS instructor. His background mostly stems from the automation industry where he programmed PLCs and HMIs for many different types of applications. M.T. has programmed many different brands of PLCs over the years and has developed HMIs using many different tools. Other technologies M.T is fluent in are Linux, Ansible, Docker, AWS, C#, Java, Python, and more. Be sure to check out his channel Alchemical Computing on YouTube.