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: From Boolean Algebra to PLC 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 > PLC Tutorials > From Boolean Algebra to PLC Logic

From Boolean Algebra to PLC Logic

In this article, a simple example will teach you the conversion from Boolean algebra to PLC logic.

Last updated: March 28, 2024 5:28 am
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

In this article, a simple example will teach you the conversion from Boolean algebra to PLC logic.

Contents
Boolean Algebra to PLC LogicVideoDigital InputsDigital OutputsPLC ProgrammingPLC Program DescriptionTest Results

Note: The PLC logic shown here is for educational use only for students and technicians to learn the basics.

Boolean Algebra to PLC Logic

Problem Statement

Design a PLC ladder logic for the following Boolean Expression.

We are using toggle Inputs to control the output.

Y = (A+B) (C+D)

Video

Watch the video to learn this PLC program example.

PLC Ladder Diagram for the given Boolean Expression

Digital Inputs

The inputs listed below.

A: I0.0

B: I0.1

C: I0.2

D: I0.3

Digital Outputs

The outputs listed below.

Y: Q0.0

PLC Programming

Find the equivalent plc program for the given Boolean expression.

Boolean Algebra to PLC Logic

PLC Program Description

  • In this program, we used Schneider Electric PLC software. You can use any brand of PLC software.
  • In the above PLC program, Normally Open Contacts are used for input A, input B, input C, and input D.
  • Input A and Input B are connected in parallel, thus implementing OR Logic Gate.
  • There is again the implementation of OR Logic Gate as Input C and Input D are connected in parallel.
  • There is also implementation of AND Logic Gate as A+B is connected in series with C+D.
  • For the output Y (Q0.0) to be ON, either Input A or Input B should be ON and either Input C or Input D should be ON.
  • If input A and input C are ON or If input A and input D are ON or If input B and input C are ON or input B and input D are ON, then the output Y (Q0.0) will be ON.

Test Results

Now check the PLC program simulation results.

When Input A and Input C are ON

Boolean Algebra for PLC

When Input A and Input C are turned ON, the output Y (Q0.0) will turn ON. The inputs are taken as Normally Open Contacts and when in true state, the signal will pass through these contacts.

As a result, the output Y (Q0.0) will turn ON. If only one input is turned ON i.e., either input A or input C is turned ON, then the output Y Q(0.0) will not turn ON.

When Input A and Input D are ON

PLC Logic design with boolean expression

Y (Q0.0) will turn ON when Input A and Input D are turned ON. These inputs are used as Normally Open Contacts and when in true states, the signal will flow through these contacts which results in turning ON the output Y (Q0.0).

For the output Y (Q0.0) to turn ON, both the inputs should be ON. If only one input i.e., if input A or Input D is turned ON, then the output Y (Q0.0) will not turn ON.

When Input B and Input C are ON

Boolean to Ladder Logic Converter

The signal will flow through Input B and Input C as these inputs are taken as Normally Open Contacts. When the input B and input C are in true state, the output Y (Q0.0) will turn ON.

So, both the inputs i.e., input B and input C should be ON and then only the output Y (Q0.0) will turn ON. Turning ON only one input will not turn ON the output Y (Q0.0).

When Input B and Input D are ON

Boolean expression for the given PLC ladder program

As Normally Open Contacts used for Input A and Input B are in the true state, the signal will pass through these two Inputs and Y(Q0.0) will turn ON.

The output Y (Q0.0) will turn ON only if both these inputs are turned ON otherwise it will remain OFF.

If you liked this article, 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:

  • Basic PLC Alarm Programming Example
  • Project System Architecture Documents
  • Boolean Logic to PLC Programming
  • Compare CompactLogix and ControlLogix
  • Standard 4 to 20 mA Conversion Formula
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

PLC 1 Push Button to Turn ON or OFF 1 Output
Introduction to PLC – Advantages of PLC
PLC Data Comparison Instructions
Step by Step Guidelines to Download Free Robotics Software
Siemens Tia Portal PLC Training Course
#7 PLC Best Practices – Validate and Alert for Paired Inputs/Outputs
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

Parallel Tanks Level Control using PLC Ladder Diagram Tutorial
Allen Bradley Math Functions
Allen Bradley RSLogix 500 PLC Programming
PLC based Drink Dispenser System
Getting to Know the LED Indications on GE Make PLC
Statement List (STL) to Find Highest Value
Scheduled Daily Plant Watering PLC Program
How a 4-20mA Transmitter Works?

Keep Learning

PLC Programming Course Online Free

PLC Programming Course Online Free

PLC Latched Circuit Example

PLC Latching Function

How to Upload PLC Program in Siemens PLC if Upload Icon is Disabled

Upload Option Disabled in Siemens PLC

PLC Motor Logic with START, STOP, TEST Push buttons

PLC Motor Logic with START, STOP, TEST Push buttons

PLC Program Example on Multiple LEDs using Set Coil

PLC Program Example on Multiple LEDs using Set Coil

PLC Timer Programming Examples on Coffee Machine

PLC Timer Practice Exercise: Coffee Machine Programming

Read Temperature in PLC

PLC Program to Read Temperature in PLC

PLC Logic Example on Multiple Switches and Motors

PLC Logic Example on Multiple Switches and Motors

Learn More

DC Circuit Node Equations

DC Circuit Analysis Node Equations

Electricity Magnetism

optical fibers terminations

Fiber Optic Data Communication

Masked Move Instructions

How to use Masked Move Instruction in PLC

Types of Digital Outputs in PLC

Types of Digital Outputs in PLC

Count the Number of Cartons in a Storage Area PLC Logic

Count the Number of Cartons in a Storage Area PLC Logic

Capacitance Level Switch Working Principle

Capacitance Level Switch Working Principle

Digital Electronics Multiple Choice Questions

Programmable Array Logic Objective Questions

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?