TECHNICAL I INDUSTRIAL AUTOMATION

What is a Programmable logic controller (PLC) and how it works.

By CircuitGates Team 6 Min Read
programmable logic controller block diagram

A programmable logic controller is a device that is programmed to control certain processes in industrial sites, such as control of machinery on factory assembly lines, enabling industrial automation.

Industrial automation involves the operation of industrial machinery with little to no human intervention; machinery being given run and stop signals from the PLCs and other industrial automation devices.

Before the era of PLCs, the automation control tasks were mainly through contactors and relays. The use of contactors and relays is often called hard wiring.

With an increase in industrial automation, these contactors and relays are becoming bulky on just controlling a small process, leading to difficulties in wiring the circuits and finding faults.

With hard wiring if an error is made, the wires must be reconnected correctly. And a change in the control or process expansion, extensive rewiring and components change are required.

The introduction of PLCs reduce the number of electrical wirings and if changes need to be made, PLCs only need to be reprogrammed without the need for rewiring, enabling seamless automation in large industrial sites.

Programmable Logic Controller Parts

A PLC consists of the following parts: the power supply, processor or CPU, input modules, output modules and the programming device

programmable logic controller block diagram

Power supply

Receives power from the external supply and distributes it to the PLC components such as the input modules, output modules and the processor.

The power supply also steps down the incoming AC voltage to a lower level voltage suitable for the PLC components, and converts the stepped-down AC voltage to a stable DC voltage (e.g, 24V DC) required by PLC components.

Digital inputs and ouputs of the PLC can work with either AC or DC, but other PLC components such as processor, analogue inputs and outputs work well only with DC.

Input modules

Input modules are the part of the PLC where external input field devices such as limit switches, push buttons, sensors and more are connected. Input modules receive signals from the field devices. We have two types of input modules based on the type of signal they receive that are analogue and digital input modules.

Digital input modules

These are input modules of the PLC that receive individual or discrete signals that can be either ON or Off (0 or 1). For example, when the field device wired to the input module like a self-latching push button is put in ON position, current flows through the module signaling an ON or 1 to the module, as in the following diagram.

A self-latching push button is a button that remains in the position you put it in after pressing it, like the domestic lighting switches.

programmable logic controller digital input signal

If the self-latching push button is put in OFF position, there is no current through the module, signaling an OFF or 0 signal to the input module.

Analogue input modules

These are input modules of the PLC that receive continuous signals from devices like potentiometers and sensors. The continuous signals received by analogue input modules is usually inform of current or voltage.

Since the input signal is continuous, a change in the parameter being monitored causes a change is signal value received by the input modules. These signals typically change within a range of values, such as 4-20 mA or 0 - 10V.

Since the PLC only understands digital signals, these analogue input modules will convert analogue signals to digital signals that a processor understands.

Output modules

Output modules are part of the PLC where external output field devices such as electric motor contactors, relays, indicator lamps and more are connected. Output modules send signals to output devices from the PLC. We have analogue and digital output modules.

Digital output modules

These are output modules of the PLC that send individual or discrete signals that can be either ON or Off (0 or 1). For example, in output modules we can find internal relays that close when the output image table of the PLC is 1, and open when the output image table of the PLC is 0, as in the previous diagram.

When the internal relay is closed, current flows through the output devices signaling a ON or 1 signal, and if open there is no current flowing through the output devices signaling an OFF or 0 signal.

Analogue output modules

These are output modules of the PLC that send continuous signals to devices such VSDs (changing their speed). The continuous signals is also in inform of current or voltage.

Since the PLC only understands digital signals, these analogue output modules will convert digital signal to analogue signal that an output device like VSD, understands.

Processor (CPU)

The processor is the part of the PLC that reads the input signals from the input modules and carry out execution tasks following the instructions set and then writes the output signals that are sent to the output devices by output modules.

The instructions or control programmes followed by the PLC when executing tasks, are written in several languages that include ladder logic, function block diagram and structured text. Ladder logic programming language is the most popular language in PLC programming.

Programming device

Is a laptop or desktop used to write the control program using programming languages such as ladder logic and then download the control program to the PLC.

Types of PLC according to physical structure

Compact PLCs

These are types of PLCs that come as a single unit. The CPU, input and output modules come in one single unit. They come with a fixed number of input and output points, they are not scalable as the other two.

Compact PLCs are less expensive, simple to program, used in small processes and they are compact (they cover small space).

Rack-type PLCs

These are types of PLCs with CPU, input modules and output modules that are separate. Rack-type PLC has a base unit (rack or backplane) that has slots where the modules seat.

Modular-type PLCs

These are types of PLCs that also has CPU, input modules and output modules that are separate as the rack type, but differ in that the modular types come with built-in connectors that are used to attach the modules together.

The modular-type and Rack-type PLCs can accommodate a large number of input and output modules.

If you have made it this far, thanks for reading. Please consider subscribing to our YouTube channel for more electrical tutorials.