Home » PLC Program for Conditional Control Logic
Guest Articles PLC Tutorials

PLC Program for Conditional Control Logic

PLC Conditional Control Logic

This is PLC Program for Conditional Logic Circuit

Problem Description

  • In Industry or plants, there are lots of gear box systems used for different machines/motors.
  • For smooth operation of gear box motors, it needs to be lubricated every time because good maintenance work can extend gear box life.
  • But problem is that operators often do mistake during machine operation because in every gearbox motor mechanism we need to start lubrication first and then main gear box mechanism should be 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 simple conditional logic example, in this example there is one gear box motor and we need to provide lubrication before starting it.
  • So for lubrication we have lubrication motor (also called as Oil Pump or Auxiliary Lube Oil Pump) and it will provide lubrication oil to the main motor or gear box motor.
  • Also we will provide interlock system, so operator cannot start/operate Main motor directly without using proper lubrication otherwise main motor may over heat and it may damage after some runs without proper care.
  • 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 gear box motor for 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

Articles You May Like :

Field Instruments Interview Questions

PLC Water filling and Discharging Process

Sequential Motor Control using PLC

PLC Interview Questions and Answers

Overview of SCADA System

Similar Articles:

Related Articles

Programmable Logic Controller (PLC) Application for Stamping Operation

S Bharadwaj Reddy

PLC Level Control of Two Tanks

S Bharadwaj Reddy

How PLC Controls ON/OFF Valve ?

S Bharadwaj Reddy

How to Reduce Relay Noise in PLC Systems

S Bharadwaj Reddy

How PLC Controls a Motor ?

S Bharadwaj Reddy

SCADA Interview Questions and Answers

S Bharadwaj Reddy

3 comments

D.N.Sharma 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 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 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

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

WordPress Image Lightbox