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
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 > 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 Conveyor Motor Ladder Logic
Studio 5000: Programming Three Motors with Fixed Priorities
Steps in PLC System Design
PLC Level Control of Two Tanks
Vijeo Designer software – Import and Export
Safety PLC Coding Practices – Programming Recommendations
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

PLC Program Example on Multiple LEDs using Set Coil
#12 PLC Best Practices – Validate Inputs based on Physical Plausibility
Siemens PLC Course for Beginners: Problems and Solutions
Top 5 Advantages of Human-Machine Interface (HMI)
PLC Simulator using Excel
PLC Programming Example on Multi-Motor Control for Beginners
Value Assignments in SCL Language – Single, Multiple, Combined
Basic PLC Ladder Programming Example

Keep Learning

Top Free PLC Software

Top Free PLC Software

How CPU Execute Program in Siemens PLC?

How CPU Execute Program in Siemens PLC?

What is an Electromechanical Relay

Difference Between Solid State Relay and Electromechanical Relay

memory types in siemens plc

Memory Structure of Siemens PLC

Parking Garage Indicator PLC Automation

Parking Garage Indicator: PLC Automation System

Types of PLC

Types of PLC

Tanks Draining Control in PLC using Functional Block Diagram

Tanks Draining Control in PLC using Functional Block Diagram

PLC Multiple Choice Questions

PLC Multiple Choice Questions

Learn More

Control valve sizing

Basics of Control Valve Sizing

OMRON PLC program for waste-burning automation

Waste-Burning System OMRON PLC Program Example

Polyvinyl Alcohol in Oil Field

Polyvinyl Alcohol in Oil Field

Save and BR Memory in Siemens PLC Programming

SAVE and BR Memory Instructions in Siemens PLC Programming

Basic Principles of Solar Technology

Basic Principles of Solar Technology

Transmitter Indicators

What is Indicator ?

IEC 61508

What is IEC 61508 ?

Two Wattmeters to Measure 3 Phase Power

Three Phase Wattmeter

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?