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 Mastering PLC Programming
  • Table Of Contents Toc
Mastering PLC Programming

Mastering PLC Programming - Second Edition

By : M. T. White
close
close
Mastering PLC Programming

Mastering PLC Programming

By: M. T. White

Overview of this book

Object-oriented programming (OOP) is a game-changing addition to PLC programming that’s revolutionizing the automation industry. This book equips you with the necessary skills to succeed in the modern automation programming environment. This second edition is designed to systematically guide you through advanced topics such as OOP design, SOLID programming, the software development life cycle (SDLC), library design, version control, 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 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’ll have what it takes to create long-lasting codebases for any modern automation project. *Email sign-up and proof of purchase required
Table of Contents (26 chapters)
close
close
Preface
Lock Free Chapter
1
Part I: Advanced Structured Text
9
Part II: Software Engineering for Automation
15
Part III: HMI Design
19
Part IV: Putting Knowledge Into Action
22
Unlock Your Exclusive Benefits
23
Answer Sheet
24
Other Books You May Enjoy
25
Index

Exploring code documentation

Nothing makes programmers groan louder than being told they must write documentation. Unfortunately, documentation is directly linked to the longevity of a codebase. There are many ways to document a codebase. The three most common methods are code comments, external documentation, and the code itself. The first type of code documentation we’re going to look at is self-documenting code.

Utilizing self-documenting code

A well-written program will provide its own documentation. This means that if written properly, a program should be easy to follow with minimal aid. To demonstrate this, consider the following pseudocode:

Input temperature
overHeating = 100
targetTemp = 90
If temperature > overHeating then
    ovenFan = on
Elseif temperature <= targetTemp then
    OvenFan = off

This program is very clear about how it works, and the variables’ meaning in the program is easily identifiable. This is essentially what self...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering PLC Programming
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

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

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon