Learn Python Programming for Industrial Control Systems

Learn Python Programming for Industrial Control Systems

We have learned in previous lessons about a new industrial period of evolution called Industry 4.0 which includes Industrial Internet of Things (IIoT) and Digital Transformation.

So, in light of this profound evolution, we have put together a course with objectives to familiarize the curious-minded learners about perhaps the glue that may tie the upper layers of business IT functions to the lower process layers of the plant floor, and it’s called Python.

Over the last few years, Python has become more and more popular and the demand for Python in the job market is increasing ever so fast, and Python is a skill set that will help you qualify for some of the most exciting high-tech field areas such as Data Science, Artificial Intelligence (AI), Web Applications, Server Automation, IoT, IIoT and Home Automation just to mention a few.

This course will help those IT-savvy programming professionals looking for a better understanding of programmable logic controller programming with real-world Input-Output functions and Industrial Control professionals looking for a better understanding of a powerful programming language to help facilitate the migration of important data to IIoT type functions.

And this course will provide all the step-by-step instructions on how to get started and setup Python and related “Raspberry Pi” module and related breadboarding.

Follow along, this a multi-lesson course intended for the beginner Python programmer and beginner PLC ladder logic programmer.

Learn Python Programming for Industrial Control Systems
  • 1. Python Programming for Industrial Control Systems - Introduction

    We have learned in previous lessons about a new industrial period of evolution called Industry 4.0 which includes Industrial Internet of Things (IIoT) and Digital Transformation.

    So, in light of this profound evolution, we have put together a course with objectives to familiarize the curious-min...

  • 2. Why Python

    In industrial automation, Python becomes surprisingly versatile in software engineering challenges for factory automation. For example, an extremely popular HMI/SCADA software called, “Ignition”, by “Inductive Automation” uses Python as a scripting language.
    Python, allows you to run the program ...

  • 3. Downloading Python

    We will go to the Python Welcome Web page (www.python.org) to download the latest version of Python for Windows 10.

    Select “Download” and then select version “3.9.5”.

    After the download has completed, select right-click over the file, “python-3.9.5-amd64.exe” and select “Run as Administrator” t...

  • 4. Python Interpreter

    In the previous section, we learned how important Python will be for Industrial Automation and how to download and install Python.

    This section will continue where we left off starting Python Interpreter from the Windows Command Prompt.

    This section continues from the previous section, where we...

  • 5. Python Basic Programming

    Print Function
    - To print and concatenate strings, type the command using the + symbol.
    - To print multiple times, use the asterisk with a number as the multiplicand.
    Variables
    - Variables are fundamental and used in just about every language. Variables are defined using lower case letters.
    - Var...

  • 6. Getting Input

    Suppose we want to get input from the user. Python allows this type of input by using the function called input().

    For example, let’s ask the user what the motor name is, but before we do, we need to assign the input function’s return argument to a variable, such as motor_name.

    Then, let’s prin...