Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Control Algorithms in PLC Programming
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Control Algorithms in PLC Programming

Control Algorithms in PLC Programming

Learn the control algorithms in PLC programming like PID control, function generator, fuzzy logic, position proportional, etc.

Last updated: February 27, 2024 2:00 pm
Viral Nagda
PLC Tutorials
No Comments
Share
6 Min Read
SHARE

When you are working in an industrial automation system for PLC programming, you have requirements where you need to control a process gradually or in a step-by-step way.

Contents
Control AlgorithmsPID controlFunction generatorFuzzy logic controlPosition proportional

Control Algorithms

You cannot directly just on or off a logic for getting your work done. It can have adverse effects on your actual PLC output. For this reason, there are various types of control methods available in a PLC program for appropriate actions.

Control Algorithms in PLC Programming

In this post, we will see the various control algorithm methods that are used in a PLC program.

PID control

This is by far the most famous method for control. PID uses a closed-loop mechanism for control. This means it will first get the feedback and based on what you desire, it will accordingly vary the output.

For this, PID controller uses internal mathematical calculations with three parameters – proportion, integral, and derivative. So, if you want to control a chiller with a compressor, then the PLC will control the compressor output by first measuring the actual temperature and checking it with how much the user requires.

Based on that difference every time, the compressor output will either be controlled gradually or turned on-off to maintain the temperature. For this, a PID block will be used in the PLC program for doing this task.

Function generator

This is a very simple type of control method. In the function generator, you have to define an input table of n values. Similarly, define an output table of n values.

So, for example, if we define 10 value tables in both the input and output sides, we have a 10-size element. Now, these 10 elements will have different values. If you set 0-100 on the input side, then we have set 0-50 on the output side. These 10 elements are 10 ranges, meaning 0-10, 10-20, 20-30, and so on.

Accordingly, the output side will be distributed into 10 elements from 0-5, 5-10, 10-15 and so on till 50. When a real-time input is between any value at the input side, the corresponding scaled output will be passed. Here, you have full flexibility to set the input and output table values.

Fuzzy logic control

Fuzzy logic is a relatively very good method for controlling an output. Normally, you have two binary states – 0 and 1. So, let us consider whether a valve can be opened or closed. But what if the valve is stuck in between? We do not know whether the valve is near to open state or closed state. In that case, it helps if there exists a state between 0 and 1. This helps to at least come closer to a possibility. This is called fussy logic.

Here, you get to define values near 0 and 1. It can be like 0.9 or 0.2. Accordingly, you can control the outputs when it comes close to these values. And when it reaches the extreme limit, that is 0 or 1, you can fully open or close the valve.

Before that, you can gradually operate the valves. This brings more precise control to the process. So, this control block allows for a collection of values that can be useful in unpredictable situations. It requires a lot of knowledge and expertise to correctly set the values and sets so that the logic works properly.

Position proportional

This logic will open or close a device by pulsing open or close contacts at some predefined timer set by the user. It is done for a pulse width proportional to the deviation between the required position and the current position.

You have to set control parameters like how much minimum and maximum to limit the output, what the duration for which output will remain on, the rate at which the device should open or close in %/second, etc.

The function block takes actual feedback, evaluates internal timers, and checks whether the opening or closing is happening within that desired rate or not. If not, then the corresponding open or closed pulse will be given.

In this way, we saw the various control algorithm methods used in PLC programming.

For daily updates and to stay connected with our latest content, be sure to follow us on Facebook and Twitter.

To further expand your knowledge, we recommend checking out our next insightful articles.

Read Next:

  • PLC-to-PLC Communication Project
  • PlantPAx Library in Factory Talk Studio
  • What is a Data Block? Global Data Blocks in PLC
  • How to Save a PLC Project to a Memory Card?
  • Analog Input Devices in Studio 5000 Tutorials
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

Drive Multiple Speeds with Different Reference using PLC
PLC Wiring Questions for Technicians and Engineers
Does Really a Safety Barrier is Important? – PLC DCS Systems
PLC Program for Water Level Control Logic
How to Prevent Ground Loops in Analog Circuits?
PLC Program for Alarm Security System
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Allen Bradley RSLogix 500 PLC Programming
How to Choose a Suitable HMI for Your Application?
How-to do Security of SCADA Systems?
PLC System Site Acceptance Test (SAT)
How to Configure PID in Siemens PLC?
PLC Trainer Demo Download
What is Midline Instruction in Siemens PLC?
PLC Logic for Automatic Bending Machine for Exhaust Pipe

Keep Learning

Single Line Diagram of UPS System

UPS Selection Factors for a Control System

memory types in siemens plc

Memory Structure of Siemens PLC

Top Free PLC Software

Top Free PLC Software

Address Overlapping in Tia Portal

How to Check Address Overlapping in Tia Portal?

Gate Array Logic using PLC

PLC Program to Simulate Gate Array Logic

What is the consumed tag in Studio 5000 software?

Produced Tags and Consumed Tags in Studio 5000

PLC Documents

PLC System Documentation

How to Control VFD with PLC using Ladder Logic

Learn More

Advanced Skills Required for a PLC Programmer to Get a Job

Advanced Skills Required for a PLC Programmer to Get a Job

energized-to-safe-loop

Energize to Safe Loop philosophy

Safety Relief Valve Material Selection

Equal Flow Balance Operation of Parallel Compressors

Types of Surge Control for Parallel Gas Compressors

Industrial Automation Acronyms

111 Industrial Automation Acronyms Questions and Answers

Electrical Motor Jogging Operation

Electrical Motor Jogging Operation

SCADA System Vulnerabilities

SCADA System Vulnerabilities

Transmitter Calibration Range of a Vessel Level

Transmitter Calibration Range of a Vessel Level

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?