search
0
cart
close
You have no products in your basket yet
left
Tech Categories
Best Sellers
New Releases
Books
Videos
Audiobooks
Articles
Newsletters
Free Learning
right
Mastering PLC Programming

Mastering PLC Programming: The software engineering survival guide to automation programming

By Mason White
$39.99 $27.98
Book Mar 2023 386 pages 1st Edition
eBook
$39.99 $27.98
Print
$49.99
Subscription
$15.99 Monthly
eBook
$39.99 $27.98
Print
$49.99
Subscription
$15.99 Monthly

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Mar 24, 2023
Length 386 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781804612880
Category :
toc View table of contents toc Preview Book toc Download Code

Key benefits

  • Take a deep dive into object-oriented PLC programming to gain hands-on knowledge
  • Explore software engineering concepts such as SDLC, debugging, and SOLID programming
  • Get a thorough grasp on HMI development to build various HMI projects

Description

Object-oriented programming (OOP) is a new feature of PLC programming that has taken the automation world by storm. This book provides you with the necessary skills to succeed in the modern automation programming environment. The book is designed in a way to take you through advanced topics such as OOP design, SOLID programming, the software development lifecycle (SDLC), library design, HMI development, general software engineering practices, and more. To hone your programming skills, each chapter has a simulated real-world project that’ll enable you to apply the skills you’ve learned. In all, this book not only covers complex PLC programming topics, but it also removes the financial barrier that comes with most books as all examples utilize free software. This means that to follow along, you DO NOT need to purchase any PLC hardware or software. By the end of this PLC book, you will have what it takes to create long-lasting codebases for any modern automation project.

What you will learn

Find out how to write PLC programs using advanced programming techniques Explore OOP concepts for PLC programming Delve into software engineering topics such as libraries and SOLID programming Explore HMIs, HMI controls, HMI layouts, and alarms Create an HMI project and attach it to a PLC in CODESYS Gain hands-on experience by building simulated PLC and HMI projects

What do you get with eBook?

Feature icon Instant access to your Digital eBook purchase
Feature icon Download this book in EPUB and PDF formats
Feature icon Access this title in our online reader with advanced features
Feature icon DRM FREE - Read whenever, wherever and however you want
Buy Now

Product Details


Publication date : Mar 24, 2023
Length 386 pages
Edition : 1st Edition
Language : English
ISBN-13 : 9781804612880
Category :

Table of Contents

25 Chapters
Preface Packt Packt
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Share Your Thoughts
Part 1 – An Introduction to Advanced PLC Programming Packt Packt
Part 1 – An Introduction to Advanced PLC Programming
Chapter 1: Software Engineering for PLCs Packt Packt
Chapter 1: Software Engineering for PLCs
Technical requirements
Software engineering for PLCs
Understanding the IEC 61131-3 standard
Introducing CODESYS
Testing CODESYS
Summary
Questions
Chapter 2: Advanced Structured Text — Programming a PLC in Easy-to-Read English Packt Packt
Chapter 2: Advanced Structured Text — Programming a PLC in Easy-to-Read English
Technical requirements
Understanding error handling
Understanding pointers
Understanding references
Understanding documentation
Understanding state machines
Summary
Questions
Further reading
Chapter 3: Debugging — Making Your Code Work Packt Packt
Chapter 3: Debugging — Making Your Code Work
Technical requirements
What is debugging?
Understanding debugging tools and techniques
Troubleshooting – a practical example
Summary
Questions
Further reading
Chapter 4: Complex Variable Declaration — Using Variables to Their Fullest Packt Packt
Chapter 4: Complex Variable Declaration — Using Variables to Their Fullest
Technical requirements
Auto declaring variables
Understanding constants
Investigating arrays
Exploring global variable lists
Understanding structs
Getting to know enums
Exploring persistent variables
Final project – motor control program
Summary
Questions
Further reading
Part 2 – Modularity and Objects Packt Packt
Part 2 – Modularity and Objects
Chapter 5: Functions — Making Code Modular and Maintainable Packt Packt
Chapter 5: Functions — Making Code Modular and Maintainable
Technical requirements
What is modular code?
Why use modular code?
Exploring functions
Examining return types
Understanding arguments
Final project – temperature unit converter
Summary
Questions
Further reading
Chapter 6: Object-Oriented Programming — Reducing, Reusing, and Recycling Code Packt Packt
Chapter 6: Object-Oriented Programming — Reducing, Reusing, and Recycling Code
Technical requirements
What is OOP?
Why use OOP?
Understanding function blocks
Getting to know objects
Getting to know methods
Getting to know properties
Understanding the purpose of a getter and setter
Understanding recursion and the THIS keyword
Final project – creating a unit converter
Summary
Questions
Further reading
Chapter 7: OOP — The Power of Objects Packt Packt
Chapter 7: OOP — The Power of Objects
Technical requirements
Understanding access specifiers
Exploring the pillars of OOP
Inheritance versus composition
Examining interfaces
Getting to know design patterns
Final project – creating a simulated assembly line
Summary
Questions
Further reading
Part 3 – Software Engineering for PLCs Packt Packt
Part 3 – Software Engineering for PLCs
Chapter 8: Libraries — Write Once, Use Anywhere Packt Packt
Chapter 8: Libraries — Write Once, Use Anywhere
Technical requirements
Investigating libraries
Guiding principles for library development
Building custom libraries
Final project – part computation library
Summary
Questions
Further reading
Chapter 9: The SDLC — Navigating the SDLC to Create Great Code Packt Packt
Chapter 9: The SDLC — Navigating the SDLC to Create Great Code
Technical requirements
Understanding the SDLC
Investigating the general steps of the SDLC
Final project – creating a simple library
Summary
Questions
Further reading
Chapter 10: Advanced Coding — Using SOLID to Make Solid Code Packt Packt
Chapter 10: Advanced Coding — Using SOLID to Make Solid Code
Technical requirements
Introducing SOLID programming
Benefits of SOLID programming
The governing principles of SOLID programming
Final project – a painting machine
Summary
Questions
Further reading
Part 4 – HMIs and Alarms Packt Packt
Part 4 – HMIs and Alarms
Chapter 11: HMIs — UIs for PLCs Packt Packt
Chapter 11: HMIs — UIs for PLCs
Technical requirements
Understanding HMIs
HMIs versus SCADA
How the SDLC applies to HMIs
Exploring wireframing
Final project – creating an HMI
Summary
Questions
Further reading
Chapter 12: Industrial Controls — User Inputs and Outputs Packt Packt
Chapter 12: Industrial Controls — User Inputs and Outputs
Technical requirements
Exploring common HMI controls
Final project – creating a simple HMI
Summary
Questions
Further reading
Chapter 13: Layouts — Making HMIs User-Friendly Packt Packt
Chapter 13: Layouts — Making HMIs User-Friendly
Technical requirements
The importance of colors
Understanding grouping/position
Best practices for blinking
Organizing the screen into multiple layouts
Final project – creating a user-friendly HMI
Summary
Questions
Further reading
Chapter 14: Alarms — Avoiding Catastrophic Issues with Alarms Packt Packt
Chapter 14: Alarms — Avoiding Catastrophic Issues with Alarms
Technical requirements
What are alarms?
Alarm configuration – I, Warning, and Error setup
Alarm HMI components
PLC alarm logic
Alarm acknowledgment
Final project – motor alarm system
Summary
Questions
Further reading
Part 5 – Final Project and Thoughts Packt Packt
Part 5 – Final Project and Thoughts
Chapter 15: Putting It All Together — The Final Project Packt Packt
Chapter 15: Putting It All Together — The Final Project
Technical requirements
Project overview
Getting the requirements
HMI design
HMI implementation
PLC code design
Implementing the PLC code
Testing the application
Summary
Questions
Chapter 16: Distributed Control Systems, PLCs, and Networking Packt Packt
Chapter 16: Distributed Control Systems, PLCs, and Networking
Technical requirements
What are computer networks?
Common IT protocols
PLC/automation device communication
Understanding distributed control systems
The differences between DCSs and PLCs
Summary
Questions
Further reading
Assessments Packt Packt
Assessments
Chapter 1: Software Engineering for PLCs
Chapter 2: Advanced Structured Text — Programming a PLC in Easy-to-Read English
Chapter 3: Debugging — Making Your Code Work
Chapter 4: Complex Variable Declaration — Using Variables to Their Fullest
Chapter 5: Functions — Making Code Modular and Maintainable
Chapter 6: OOP — Reducing, Reusing, and Recycling Code
Chapter 7: OOP — The Power of Objects
Chapter 8: Libraries — Write Once, Use Anywhere
Chapter 9: The SDLC — Navigating the SDLC to Create Great Code
Chapter 10: Advanced Coding — Using SOLID to Make Solid Code
Chapter 11: HMIs — UIs for PLCs
Chapter 12: Industrial Controls — User Inputs and Outputs
Chapter 13: Layouts — Making HMIs User Friendly
Chapter 14: Alarms — Avoiding Catastrophic Issues with Alarms
Chapter 15: Putting It All Together — The Final Project
Chapter 16: Distributed Control Systems, PLCs, and Networking
Index Packt Packt
Index
Why subscribe?
Other Books You May Enjoy Packt Packt
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book
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? Packt Packt

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? Packt Packt

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? Packt Packt
  • 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? Packt Packt

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? Packt Packt
  • 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? Packt Packt

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.