Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
PLCs for Beginners
PLCs for Beginners

PLCs for Beginners: An introductory guide to building robust PLC programs with structured text

Arrow left icon
Profile Icon M. T. White
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
Paperback May 2024 380 pages 1st Edition
eBook
zł39.99 zł96.99
Paperback
zł120.99
Subscription
Free Trial
Arrow left icon
Profile Icon M. T. White
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
Paperback May 2024 380 pages 1st Edition
eBook
zł39.99 zł96.99
Paperback
zł120.99
Subscription
Free Trial
eBook
zł39.99 zł96.99
Paperback
zł120.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

PLCs for Beginners

Computer Science Versus Automation Programming

If you were to ask an everyday automation professional what computer scientists are, you would probably get an answer along the lines of math nerds, computer geniuses, and so on. Most automation professionals are usually engineers or trade persons who stem from a field with little to no computer science exposure. This means very few automation professionals are classically trained in computer principles. For many automation professionals, there is a barrier between complex computing and automation.

This book is going to be different from most automation programming books on the market. This book is going to focus on developing software for Programmable Logic Controllers (PLCs); however, this book is designed to teach you, the reader, to be more than a PLC programmer or tech. This book is designed to turn you into a genuine software developer. In short, this book will cover everything from program design to security. This book will also...

Technical requirements

This chapter is theoretical and will not require any specific software.

What is computer science?

Computer science is the study of computer systems, with a strong emphasis on software. In a more lay sense, computer science is the study of computational systems such as computers, phones, or anything that runs software, including PLCs. In short, the scope of computer science usually encompasses fields that involve software development or computer architecture. Computer science is a broad field that ties into many other disciplines, such as the following:

  • Software engineering
  • Artificial intelligence (AI)
  • Networking
  • Cyber security
  • Database systems
  • Bioinformatics
  • Distributed computing
  • Computer architecture

The field of robotics and automation can also loosely be considered a field of computer science.

As can be seen, computer science encompasses a lot of different disciplines. For some, this may seem scary, but rest assured that a mastery of each of these subfields is not necessary to be successful at computer science...

What is automation programming?

Automation programming can take on many different interpretations depending on the context and industry. For this book, automation programming will be considered industrial automation programming. Industrial automation programming and control programming can be considered the same thing. When one mentions controls or automation programming, they are usually referring to writing software that lives on some type of controller that is used to automate the use of machinery. In all, automation software is designed to reduce the amount of human intervention in a process.

Automation programming starts with a programmable device. There are many types of automation controllers, with some being the following:

  • PLCs
  • Remote terminal unit (RTU)
  • Proportional – integral – derivative (PID)
  • Miscellaneous control boards

What is considered automation software should include more than software that simply lives on controllers....

Exploring automation through computer science

In automation, software is often seen as a second-class citizen to the hardware. If you speak to an automation professional, chances are they are going to tout the hardware as the main focal point of the system. Automation engineers love to brag about the latest controllers that are being utilized, how they integrated the finest motors and motor drives into the system, and so on. However, it is rare to hear a typical automation engineer brag about the efficiency of the software or tout the design patterns they used to architect the software.

A lot of this attitude towards software boils down to tangible assets. Often, an engineer can hand a customer the latest power supply or brag about how easy it is to swap out a new motor drive. If the customer ever sells the machine off, they can use all those features as selling points to raise the value of the machine. However, there is a major flaw in this logic. Without quality software, the...

Why should automation programmers care?

The world is changing rapidly, and the computer industry is leading the charge. For those who work in the automation industry, where systems can easily be 20 years old, it can often be difficult to see how rapidly the IT world is morphing. In the past, most of the then-emerging technologies were decentralized and did not factor into industrial automation. However, with the widespread adaptation of the internet and interconnected devices, that all changed.

Recently, the world has seen the rise of things such as cloud computing, the IoT, machine learning, and many other things. The new elements have exploded so fast that they are starting to be integrated into the industrial automation realm. To understand why automation programmers should care about computer science, we first need to understand what these modern technologies are. Now, it is important to remember that this list is not exhaustive, but the following technologies will give an insight...

PLCs versus microcontrollers

Over the past 15 years, microcontrollers have become quite common for electronics education and hobbyists in general. At first glance, a PLC is a lot like a microcontroller, and if you were to compare a microcontroller to a PLC from 30 years ago, a PLC basically was a rugged microcontroller. Based on the PLC definition established before, it is quite easy to confuse the two types of controllers or, at the very least, confuse the applications. The nature of PLCs has changed, and the two types of controllers are worlds apart. Therefore, it is especially important to understand the differences between the two types of controllers, as it is often more appropriate to use one type over the other. To understand how a PLC differs from a microcontroller, let us explore what a microcontroller is.

What are microcontrollers?

A microcontroller can best be thought of as a low-level computer on a chip. Common microcontrollers include the following:

  • PICs
  • ...

PLC versus computers

Over the past 20 or so years, the cost of computers has dropped significantly. This drop in price has given rise to cheaper and more powerful computers. This increase in computing power and decrease in price has been reflected in all aspects of life. For example, smartphones are now an integral part of society; virtually everyone has easy access to tablets, such as Kindles, smart homes are on the rise, and more. This shift in computing has also seeped into the automation world. In contrast to the past, hardware-based control panels have been replaced with touchscreen HMIs, advanced networking technologies are employed everywhere, and, of course, PLCs (that more resemble modern computers as opposed to microcontrollers) are a mainstay in most factories. But before the similarities between a PLC and a computer can be explored, it is important to understand what a computer is.

What is a computer?

Describing a computer can be a bit difficult because many devices...

Summary

This chapter explored the basics of how automation engineering relates to computer science. Thus far, PLCs, computers, and microcontrollers, their use cases, and more have been explored. By this point, a solid foundation on the concepts should have been established.

The days of hodgepodge Ladder Logic programming are ending. The automation industry is notorious for being many years behind the curve in terms of technological advancements; however, over the past 10 or so years, technology has made leaps and bounds that cannot be ignored. With the introduction of technologies such as the IoT, the cloud, and machine learning, automation developers are going to be forced to abandon the old mindset of “if the program works, it’ll do.” Automation programmers are going to have to adapt to new trends, which means a core understanding of software will be vital in the coming days.

With all that said, a basic understanding of PLC hardware is required to move...

Questions

  1. What are three use cases for a PLC?
  2. Can a PLC be used in a space launch system?
  3. Why is computer science important to an automation programmer?
  4. What are two use cases for a microcontroller?
  5. Name three emerging technologies for industrial automation.
  6. What is computer science?
  7. Why should automation programmers care about computer science?
  8. Name three common microcontrollers.
  9. What are some common microcontroller programming languages?
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Build a solid foundation of structured text by understanding its syntax, features, and applications
  • Learn how to apply programming logic and design by taking a design-first approach to PLC programming
  • Integrate advanced concepts and technologies such as cybersecurity and generative AI with PLCs
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

With the rise of smart factories and advanced technology, the demand for PLC programmers with expertise beyond ladder logic is surging. Written by M.T. White, a seasoned DevOps engineer and adjunct CIS instructor, this guide offers insights from the author’s extensive experience in PLC and HMI programming across industries. This book introduces a fresh approach to PLC programming, preparing you for future automation challenges through computer science and text-based programming. Starting with the basic components of PLCs and their integration with other modules, this book gives you a clear understanding of system functionality and helps you master PLC program execution by learning about flow and essential components for effective programming. You'll understand program design with pseudocode and flowcharts, vital for planning programs, and cover Boolean logic intricacies, harnessing logical functions and truth tables for precise control statements. The book gives you a comprehensive grasp of structured text, its syntax and features crucial for efficient programming. The book also focuses on advanced topics like cybersecurity in PLC systems and leveraging generative AI (GenAI), such as ChatGPT, to enhance productivity. By the end of this book, you’ll be able to design real-world projects using pseudocode and flowcharts, and implement those designs in structured text.

Who is this book for?

This book is for automation engineering students and individuals who are aspiring to be software, electrical, mechanical, or automation engineers with an interest in reshaping the automation industry.

What you will learn

  • 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
  • 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
  • Get to grips with troubleshooting hardware and fixing common problems

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 31, 2024
Length: 380 pages
Edition : 1st
Language : English
ISBN-13 : 9781803230931
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : May 31, 2024
Length: 380 pages
Edition : 1st
Language : English
ISBN-13 : 9781803230931
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 564.97
Cybersecurity Architect's Handbook
zł241.99
Mastering PLC Programming
zł201.99
PLCs for Beginners
zł120.99
Total 564.97 Stars icon
Banner background image

Table of Contents

24 Chapters
Part 1: Basics of Computer Science for PLC Programmers Chevron down icon Chevron up icon
Chapter 1: Computer Science Versus Automation Programming Chevron down icon Chevron up icon
Chapter 2: PLC Components – Integrating PLCs with Other Modules Chevron down icon Chevron up icon
Chapter 3: The Basics of Programming Chevron down icon Chevron up icon
Chapter 4: Unleashing Computer Memory Chevron down icon Chevron up icon
Chapter 5: Designing Programs – Unleashing Pseudocode and Flowcharts Chevron down icon Chevron up icon
Chapter 6: Boolean Algebra Chevron down icon Chevron up icon
Part 2: Introduction to Structured Text Programming Chevron down icon Chevron up icon
Chapter 7: Unlocking the Power of ST Chevron down icon Chevron up icon
Chapter 8: Exploring Variables and Tags Chevron down icon Chevron up icon
Chapter 9: Performing Calculations in Structured Text Chevron down icon Chevron up icon
Chapter 10: Unleashing Built-In Function Blocks Chevron down icon Chevron up icon
Chapter 11: Unlocking the Power of Flow Control Chevron down icon Chevron up icon
Chapter 12: Unlocking Advanced Control Statements Chevron down icon Chevron up icon
Chapter 13: Implementing Tight Loops Chevron down icon Chevron up icon
Part 3: Algorithms, AI, Security, and More Chevron down icon Chevron up icon
Chapter 14: Sorting with Loops Chevron down icon Chevron up icon
Chapter 15: Secure PLC Programming – Stopping Cyberthreats Chevron down icon Chevron up icon
Chapter 16: Troubleshooting PLCs – Fixing Issues Chevron down icon Chevron up icon
Chapter 17: Leveraging Artificial Intelligence (AI) Chevron down icon Chevron up icon
Chapter 18: The Final Project – Programming a Simulated Robot Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(4 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Amazon Customer Aug 28, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Awesome beginners book to read! Thank you!
Amazon Verified review Amazon
Amazon Customer Jun 19, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Awesome reading!
Amazon Verified review Amazon
Charmin Oct 11, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Awesome book for beginners to begin with.
Amazon Verified review Amazon
Amazon Customer Jul 25, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Definitely helped and was worth the read!!!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.