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
NZ$14.99 NZ$35.99
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
eBook May 2024 380 pages 1st Edition
eBook
NZ$14.99 NZ$35.99
Paperback
NZ$43.99
Subscription
Free Trial
Arrow left icon
Profile Icon M. T. White
Arrow right icon
NZ$14.99 NZ$35.99
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
eBook May 2024 380 pages 1st Edition
eBook
NZ$14.99 NZ$35.99
Paperback
NZ$43.99
Subscription
Free Trial
eBook
NZ$14.99 NZ$35.99
Paperback
NZ$43.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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 : 9781801814348
Category :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

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

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 NZ$7 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 NZ$7 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total NZ$ 205.97
Cybersecurity Architect's Handbook
NZ$87.99
Mastering PLC Programming
NZ$73.99
PLCs for Beginners
NZ$43.99
Total NZ$ 205.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

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.