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: PLC Program for Conditional Control Logic
Share
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 > Guest Articles > PLC Program for Conditional Control Logic

PLC Program for Conditional Control Logic

Create a PLC program for Conditional Control Logic. Find more PLC programming tutorials, PLC example programs and PLC ladder logic mcqs.

Last updated: November 3, 2023 9:51 am
Editorial Staff
Guest Articles PLC Tutorials
4 Comments
Share
5 Min Read
SHARE

This is the PLC Program for Conditional Logic Circuit. The below example is based on the ladder logic using a programmable logic controller.

Contents
PLC Conditional Control LogicProblem DiagramProblem SolutionPLC Inputs ListPLC Outputs ListPLC Ladder diagram for conditional Control CircuitLadder Logic DescriptionRuntime Test Cases

PLC Conditional Control Logic

In Industry or plants, there are lots of gearbox systems used for different machines/motors.

For smooth operation of gearbox motors, they need to be lubricated every time because good maintenance work can extend gearbox life.

But the problem is that operators often make mistakes during machine operation because in every gearbox motor mechanism, we need to start lubrication first and then the main gearbox mechanism should start.

So we have to implement a logic to make sure things are properly controlled from a PLC system.

Problem Diagram

Conditional Ladder Logic PLC

Note: For easy discussions, Local/Remote, or any other permissive interlocks are not considered in this example.

Problem Solution

Here we solve this problem by using a simple conditional logic example, in this example, there is one gearbox motor and we need to provide lubrication before starting it.

So for lubrication, we have a lubrication motor (also called as Oil Pump or Auxiliary Lube Oil Pump) and it will provide lubrication oil to the main motor or gearbox motor.

Also, we will provide an interlock system, so the operator cannot start/operate the Main motor directly without using proper lubrication otherwise the main motor may overheat and it may be damaged after some runs without proper care.

The operator has to switch ON oil pump first and then only he can able to operate the main motor.

By using this logic, we can take care of the gearbox motor for a long time run with proper lubrication.

Operators start/stop oil pump by using START and STOP push buttons of oil pump.

Both Oil Pump and Main Motor have separate individual START & STOP push buttons as shown in above diagram.

PLC Inputs List

  • Oil Pump StART PB : I0.0
  • Oil Pump STOP PB : I0.1
  • Main Motor START PB : I0.2
  • Main Motor STOP PB : I0.3

PLC Outputs List

  • Oil Pump Motor : Q0.0
  • Main Motor : Q0.1

PLC Ladder diagram for conditional Control Circuit

PLC Ladder Logic for conditional Control Circuit

Ladder Logic Description

  • In this application, we used Siemens S7-1200 PLC and TIA Portal Software for programming. We can also design this logic with relay circuit.
  • This circuit is also known as conditional control circuit because second sequence is depended on first condition.
  • We will write logic for oil pump in Network 1. Here we will take NO contact of oil pump START PB (I0.0) and also we have to consider one NO contact of oil pump (Q.0) coil for latching START command.
  • Put NC contact of oil pump stop PB (I0.1) in series for unlatching the circuit by pressing oil pump STOP PB (I0.1), so operator can stop the oil pump (Q0.0).
  • Now write the logic for main motor in Network 2. Here we will take NO contact of main motor START PB (I0.2) and also take one more NO contact of the main motor coil for latching the main motor (Q0.1).
  • Put NC contact of main motor stop PB(I0.3) in series for unlatching the circuit by pressing the main motor STOP PB(I0.3), so operator can stop the main motor(Q0.1).
  • Put NO contact of oil pump (Q0.0) in series after the main motor START PB(I0.2) for interlocking. So that operator has to start oil pump (Q0.0) and then only he can START the main motor (Q0.1).

Runtime Test Cases

PLC Conditional Logic

Note: The above PLC Logic provided for basic idea about application of PLC Program for Conditional Control Logic. The Logic is limited and not complete application.

Author: Bhavesh

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Field Instruments Interview Questions
  • PLC Water filling and Discharging Process
  • Sequential Motor Control using PLC
  • PLC Interview Questions and Answers
  • Overview of SCADA System
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

Troubleshoot Allen Bradley PLC Logic
#7 PLC Best Practices – Validate and Alert for Paired Inputs/Outputs
Upload Option Disabled in Siemens PLC
Quiz: Identifying I/O Examples in PLC Systems
PLC Program for Water filling and Discharging Process
SCADA Software and their Comparison
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
4 Comments
  • D.N.Sharma says:
    May 22, 2018 at 7:04 pm

    Dear Sir,
    This is not foolproof logic.This is just a interlock with lot of loop holes.

    Reply
  • Rahul Varma says:
    May 28, 2018 at 11:30 am

    Hi Sharma, I think the Author just explaining a simple example of conditional logic, not designing complete application/logic. Can You please share the loop holes, Thanks.

    Reply
  • Bhavesh says:
    May 29, 2018 at 11:29 am

    Dear Sir,

    Sorry for inconvenience

    This is example for concept explanation of conditional circuit.

    It is not complete system.

    Reply
  • Manish Wadia says:
    July 27, 2023 at 7:40 pm

    Simple but effective circuit for easy understanding… Thanxs to you. Bhavesh sir, please share more plc. Logic

    Reply

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

Components of PLC
Network Switch Port Allocation Details
RSLogix5000 PLC Program Backup procedure
T-Junction Traffic Control System – PLC Programming
Bread Oven Control in Auto and Manual Modes PLC Program
High-end Programmable Logic Controller – Schneider PLC
Communication between InTouch Scada and Allen Bradley PLC
Coil Type Timers in Siemens PLC Programming

Keep Learning

Automation Engineers Interview Questions

Industrial Automation Engineers Interview Questions

Indusoft SCADA Modbus Communication

Establishing a Modbus Driver for SCADA Indusoft Web Studio

Forward reverse motor control diagram with timer

Timer during Motor Direction Change PLC Program

Quiz on Electrical Meters and Measurement

200+ Quiz on Electrical Meters, Measurement, and Troubleshooting

ON DELAY TIMER AS OFF DELAY TIMER

How to Interchange ON Delay Timer and OFF Delay Timer in a PLC

Set the S5 timer value by a memory word

Set the S5 Timer Value by a Memory Word

LES and GRT Blocks in PLC Programming

Allen Bradley Math Functions

Industrial Oven Control Application with PLC Controller

Industrial Oven Control Application with PLC Controller

Learn More

Profibus Communication Interview Questions & Answers

Profibus Communication Interview Questions & Answers

Closed tank DP Level Transmitter with wet leg elevation zero remote mount Calibration

Closed tank DP Level Transmitter with wet leg elevation zero remote mount Calibration

4-20mA Current Loop Components

Why Use a Current Loop?

Why is Capacitor Used in a Fan

Why is Capacitor Used in a Fan?

Patch Panel

What is a Patch Panel? Types and Uses in Networking

Industrial motor control using PLC instruction list programming

PLC Instruction List for Motor Reverse and Forward Direction

Electrical Machines Objective Questions

Electrical Machines MCQ Series 1

DP Diaphragm Capillary Seal Level instrument

DP Diaphragm Capillary Seal Level instrument Calibration Procedure

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?