Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PLCs for Beginners
  • Table Of Contents Toc
  • Feedback & Rating feedback
PLCs for Beginners

PLCs for Beginners

By : M. T. White
5 (4)
close
close
PLCs for Beginners

PLCs for Beginners

5 (4)
By: M. T. White

Overview of this book

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.
Table of Contents (25 chapters)
close
close
Free Chapter
1
Part 1: Basics of Computer Science for PLC Programmers
8
Part 2: Introduction to Structured Text Programming
16
Part 3: Algorithms, AI, Security, and More

Final project: Creating custom truth tables from scratch

For the final project, we’re going to create a truth table for a Boolean equation. Before you can build custom truth tables, you need to thoroughly understand how to solve Boolean equations and understand how the truth tables work from the last section. For this section, we’re going to create a truth table for the following equation:

(A*B) + B

To begin building this truth table, we first need to figure out how many rows are needed to complete the table. To figure this out, we need to count the number of inputs or variables, as the number of rows is equal to the following equation:

<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" display="block"><mml:msup><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msup></mml:math>

Where n is the number variables or inputs for the equation. Since the equation only has variables A and B, we need the following number of rows:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mrow><mrow><msup><mn>2</mn><mn>2</mn></msup><mo>=</mo><mn>4</mn></mrow></mrow></math>

So, there will be four rows that we need to calculate. A good strategy for creating the truth table is to insert all the input combinations first, as this will make keeping...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY