Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Control Algorithms in PLC Programming
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
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 !
PLC Programming for Baking with Auto and Manual Modes
Statement List (STL) to Find Highest Value
Troubleshoot Allen Bradley PLC Logic
Up Down Counter Instruction in PLC
What is Masking in PLC?
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

HMI

Learn about SCADA and HMI Systems

DDE Protocol

What is the DDE Protocol?

What is a GSD File and Why it is required?

What is a GSD File and Why it is required?

Failsafe interlock Design

Failsafe Wiring Practices

Allen Bradley SLC 500 PLC Programming

PLC Motor Control Ladder Logic

PLC Program for Star Delta Motor Starter

Door Lock with Delay PLC Exercise Problems

Door Lock with Delay PLC Exercise Problems

Auto Sugar Bag Filling Station

Auto Sugar Bag Filling Station

More Articles

Digital Electronics Multiple Choice Questions

Memory Devices Objective Questions – Part 3

Best Online Courses to Learn Electrical Engineering

Best Online Courses to Learn Electrical Engineering

PID Controllers Multiple Choice Questions

PID Controller Multiple Choice Questions

Standard Maintenance Procedure

Standard Maintenance Procedure (SMP)

Digital Electronics Multiple Choice Questions

K-Map Simplification Objective Questions

Structured Text Selector Machine Logic

Write a PLC Program for Selector Machine using Structured Text

Sample of a production Downtime

How to Use Production Line Failures for Your Gains?

Instrumentation documents

Instrumentation documents

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?