Inst ToolsInst ToolsInst Tools
  • 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: PLC Program for Boolean Expression
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • 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 > PLC Program for Boolean Expression

PLC Program for Boolean Expression

In this article, you will learn the PLC program for Boolean expression and learn the plc automation with basic logic.

Last updated: March 25, 2024 2:35 pm
Editorial Staff
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

In this article, you will learn the PLC program for Boolean expression and learn the plc automation with basic logic.

Contents
PLC ProgramBoolean to PLC ConversionInputsOutputsBoolean Expression Ladder LogicLogic DescriptionTest Results

Please note: The logic diagram example provided here is designed for educational use for students and engineers to learn PLC fundamentals.

PLC Program

Problem Statement

Design a PLC ladder logic for the following Boolean Expression.

We are using toggle Inputs to control the output.

Convert the given boolean logic to PLC ladder logic.

Y = A(BC+D)

Boolean to PLC Conversion

Watch the below PLC tutorial video to learn the basics.

Inputs

Digital Inputs:

The list of inputs are listed.

A: I0.0

B: I0.1

C: I0.2

D: I0.3

Outputs

Digital Outputs:

The list of outputs are listed.

Y: Q0.0

Boolean Expression Ladder Logic

PLC Program for Boolean Expression

Logic Description

  • We used the EcoStruxure Machine Expert Basic software for PLC programming.
  • In the above program, Normally Open Contacts are used for inputs A, B, C, and D.
  • Input B and Input C are connected in series, thus implementing AND Logic Gate.
  • The Input D is connected in parallel with the output of BC, thus implementing OR Logic Gate.
  • Then there is again the implementation of AND Logic Gate as the Input A is connected in series with the output of BC+D.
  • For output Y (Q0.0) to be ON, either Input B, Input C, and Input A should be ON, or Input D and Input A should be ON.
  • Turning OFF Input A will turn OFF  Y (Q0.0), even if all remaining Inputs are turned ON.

Test Results

Now we simulate the program with different input statuses.

When Input B, Input C, and Input A are ON

Boolean Expression Ladder Logic

When  Input B, Input C and Input A are turned ON, the output Y (Q0.0) will turn ON. If one of  these Inputs are turned OFF, Y(Q0.0) is turned OFF. These inputs are used as Normally Open Contacts and are connected in series.

Therefore, all the inputs should be ON so that the output Y (Q0.0) will turn ON. The output Y (Q0.0) will not turn ON, if all the inputs i.e., B, C and D are not turned ON.

When both Input D and Input A are ON

PLC Boolean Conversion

Y (Q0.0) will turn ON When Input D and Input A are turned ON. As the input D is connected in parallel with the output of BC, instead of turning ON the inputs B and C, the input D will also allow the signal to pass when turned ON.

The inputs D and A are connected in series. Therefore, turning ON the inputs D and A will also turn ON the output Y (Q0.0). If only one input is turned ON, the output Y (Q0.0) will not turn ON.

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:

  • Programmable Logic Controller Test
  • Memory Bits and Set Coils in Ladder Logic
  • PLC with 2 Toggle Switches and 4 Motors
  • PLC based Door Open and Closing System
  • DeMorgans Theorems using Ladder Diagram
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 !

Recommended Articles

Automatic Box Filling System using PLC Programming
Advanced PLC Programming for Defective Parts Sorting
Door Locking System – PLC Applications Examples
Distributed IO Sharing Between PLC Systems – Technical Insights
Drive Multiple Speeds with Different Reference using PLC
Conveyor Speed Logic using Structured Text 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

  • William Snyder on Top Non-PLC Certification Courses for Automation Professionals
  • 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

Related Articles

Demo of a SCADA Software – Level Control System

PLC Boxes Sorting Based on Height

PLC Programming: Sorting and Distribution of Boxes by Height

21 CFR in SCADA and HMI Systems

What is 21 CFR in SCADA and HMI Systems?

Scaling in PLC

PLC Ladder Logic for Sensor Scaling with Offset

Causes of PLC Stop Mode

Various Causes for PLC Going in Stop Mode

intouch Basics

How to Create Project in Wonderware Intouch?

Control 3 Motors with Toggle Switch

PLC Ladder Logic Design: Control 3 Motors with Toggle Switch

PLC Program using Timers

PLC Timers Program

More Articles

Emerson ASCO Solenoid valve references

SIS Solenoid Valves – Safety PLC

Shaper Machine Hydraulic Circuit Design

Hydraulic Shaper Machine – Components, Circuit, Principle

Electric-driven Air Compressor Troubleshooting

Electric-driven Air Compressor Troubleshooting

Simple PLC example Hardware configurations

Muting Functions of Safety Control Circuits – PLC Example

Convert-Percentage-to-current

Convert Percentage (0-100%) to current (4-20mA)

dispersive gas analyzer

Dispersive Spectroscopy

Schneider PLC Programming Example

Schneider PLC Programming Example for Beginners

Electrical Machines Questions and Answers

Non-Salient Pole Machines Quiz

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?