PLC: Programmable Logic Controller

PLC Basics, Operation, Programming and the Future of PLCs

7 minute read
 

If you're familiar with industrial automation, you may have heard of PLCs. So, what is a PLC and why is it so important in the world of automation?

What Is a Programmable Logic Controller?

Programmable Logic Controllers (PLCs) are industrial computers, with various inputs and outputs, used to control and monitor industrial equipment based on custom programming.

PLCs come in many different sizes and form factors. Some are small enough to fit in your pocket, while others are large enough to require their own heavy-duty racks to mount. Some PLCs are more modular, with only basic I/O (Inputs and Outputs), but can be customized with additional back planes and functional modules (such as analog I/O, communications modules, or display modules) to fit different types of industrial applications.

 

Someone wiring a PLC

 

What Are the Main Types of PLCs?

There are many kinds of PLCs but most fall into one of two main categories: fixed and modular. Fixed PLCs have a pre-built number of inputs and outputs, and modular PLCs are much more adaptable. Fixed and modular PLCs are useful for different purposes, with benefits ranging from portability and affordability to scalability and customizability.

The most common type of PLC is the fixed PLC. Fixed PLCs are smaller and more affordable than modular PLCs, which makes fixed PLCs a good choice for smaller or portable control systems or for performing standalone tasks. However, fixed PLCs are made with the processing unit, terminals, and input and output components wired internally, and they do not have as much memory as modular PLCs. This makes fixed PLCs harder to repair and modify, which could lead to increased downtime if you do not have backup PLCs.

Modular PLCs are more scalable and customizable, and easier to troubleshoot than fixed PLCs, but modular PLCs are also larger and more expensive. Modular PLCs are best for expanding large-scale operations because you can easily add more input and output devices, improve processing units, upgrade memory, and more. This allows you to customize a modular PLC to increase functionality and do complex operations that would be impossible for a fixed PLC. Modular PLCs also reduce downtime because each module does a specific job, which makes it easier to isolate and fix faults while the working PLC modules continue to operate.

What Are the 5 Standard PLC Programming Languages?

PLCs are widely used in a variety of industries because they are fast, easy to operate, and considered easy to program. There are five standard PLC programming languages. The most commonly used language is Ladder Logic, but it is also possible to use Function Block Diagrams, Sequential Function Charts, Structured Text, or Instruction Lists to achieve the same functionality.

PLC SCADA in operation on a manufacturing plant floor

A PLC’s Role in SCADA & HMI Systems

SCADA and HMI systems enable users to view data from the manufacturing floor and provide user interfaces for control and monitoring — and PLCs are an essential hardware component element in these systems.

PLCs act as the physical interfaces between devices on the plant or manufacturing floor and a SCADA or HMI system. PLCs can communicate, monitor, and control complex automated processes such as conveyors, temperature control, robot cells, and many other industrial machines.

How Does a PLC Work?

A PLC’s operation is broken down into three stages: inputs, program execution, and outputs. PLCs capture data from the plant floor by monitoring inputs from any connected machines or devices. These inputs are checked against the program logic, which changes the outputs to any connected output devices. It is possible to have the same machine connected to both inputs and outputs on the same PLC, such as a valve position sensor connected to the inputs with the control of that valve position connected to the outputs. A program could read the current position of that valve, check to see if it needs to move, then move the valve position with the output.

PLCs often make a distinction between Digital (or Discrete) and Analog I/O. Digital I/O acts like a standard light switch where the state is either on or off, with no states between. Analog I/O acts like a dimmer switch, where the state can be anywhere between on and off.

It is easy to think of there being two sources of input data for PLCs: Device input data, automatically generated by a machine or sensor, or User input data, generated by a human operator using an HMI or SCADA system.

PLC device digital I/O

The Device input data comes from sensors and machines that send information to the PLC. This can include:

  • On/Off states for things like mechanical switches and buttons
  • Analog readings for things like speed, pressure, and temperature
  • Opened/Closed states for things like pumps and valves

Human-facilitated inputs can include button pushes, switches, sensors from devices like keyboards, touch screens, remotes, or card readers.

PLC outputs are very similar to inputs, but can also include audible or visual indicators for the user, such as turning on a warning light, or sounding an alarm beacon. Other outputs can include:

  • Opening or closing a valve
  • Adjusting the speed on a motor
  • Turning a heater On or Off

PLC programs operate in cycles. First, the PLC detects the state of all input devices that are connected to it. The PLC executes the user-created program, using the state of the inputs to determine the state that the outputs should be changed to. The PLC then changes the output signals to each corresponding device. After completing all these steps, the PLC then does a housekeeping step, which includes an internal diagnostic safety check to ensure that everything is within normal operating conditions. The PLC restarts the cycle each time the process is completed, starting again by checking inputs.

Manufacturing automation equipment

Using PLCs With Ignition

With a wide range of available Ignition device drivers, you can connect Ignition with just about any modern or legacy PLC. Once the device driver is installed, data can be viewed or sent to the PLC. With PLC data now available to Ignition’s tag system, you can do so much more with Ignition’s robust core modules.

With Ignition, it is possible to create a comprehensive SCADA and MES system, HMI system, Alarming and Reporting solution, or an enterprise-wide solution to view and control data on a PLC at any level of an organization.

How to Use PLCs With the IIoT

Traditionally, PLCs communicate using the poll-response method. In local plant and manufacturing environments, this type of communication method is usually fine, since the communication distances are short and predominantly hardwired. With poll-response, PLCs are constantly communicated with to check for any data changes.

As the Industrial Internet of Things (IIoT) becomes more popular, there is an increased need for data from remote locations. This translates to more PLCs and computing devices at the edge of the network. Cellular networks are frequently used in communications with edge devices that require data transmission across long distances. However, due to the high frequency of poll-response communication, cellular networks can incur an incredibly high cost when used this way.

To address this issue, solutions such as MQTT, in conjunction with the Sparkplug B Specification, employ a publish-subscribe protocol to streamline communications from the edge of the network. While modern PLCs employ modern communication protocols, legacy PLCs that are still at the edge of the network require additional hardware to deliver the same functionality. Edge gateways, such as Ignition Edge IIoT along with an MQTT broker, pull data from legacy PLCs using poll-response and then transmit the data using a publish-subscribe protocol.

This IIoT architecture allows industrial organizations to build IIoT solutions on top of brownfield systems, improving bandwidth usage and making data from edge-of-network PLCs widely available throughout the organization.

Programmable Automation Controllers

What Is the Future of PLCs?

The industry continues to see new products entering the market ranging from devices like Programmable Automation Controllers (PACs), which combine the functionality of PLCs with higher-level PC functionality, all the way to industrial embedded hardware.

Even with these new products, PLCs remain popular because of their simplicity, affordability, and usefulness. And software like Ignition will enable organizations to maximize their usefulness for many years to come.

 

Related Articles

Posted on February 24, 2020