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
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: Examples of PLC Programming using Boolean Functions
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
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Examples of PLC Programming using Boolean Functions

Examples of PLC Programming using Boolean Functions

Learn the examples of PLC programming using Boolean functions and implement the equivalent ladder logic.

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

Learn the examples of PLC programming using Boolean functions and implement the equivalent ladder logic.

Contents
Examples of PLC ProgrammingLearn the PLC Example with the VideoInputsOutputsLadder Logic for Boolean FunctionsProgram ExplainedSimulation Result

Disclaimer: The following logic diagram example is intended for educational purposes, targeting students and engineering graduates to understand PLC basics.

Examples of PLC Programming

Problem Statement

Design a PLC ladder logic for the following Boolean Expression.

We are using toggle Inputs to control the output.

Convert the below boolean expression into equivalent ladder logic.

Y = AB+C

Learn the PLC Example with the Video

Try the video tutorial to learn the PLC example from the start.

PLC Logic - Boolean Expression Based Example

Inputs

Digital Inputs:

The required inputs is listed here:

A: I0.0

B: I0.1

C: I0.2

Outputs

Digital Outputs:

The required outputs is listed here:

Y: Q0.0

Ladder Logic for Boolean Functions

Examples of PLC Programming using Boolean Functions

Program Explained

  • Here we used EcoStruxure Machine Expert Basic v1.2 software for programming.
  • In the above program, Normally Open Contacts are used for inputs A, B, and C.
  • Input A and Input B are connected in series, thus implementing AND Logic Gate.
  • For Y (Q0.0) to be ON, either both Input A and Input B should be ON or only Input C should be ON.
  • When Input A and B are turned ON, Y (Q0.0) will turn ON because the signal will pass through Input A and Input B as these are Normally Open Contacts.
  • Input C is connected in parallel to the output of AB, thus implementing OR Logic Gate.
  • The signal will flow through Input C when it is turned ON and pass the signal to turn ON Y(Q0.0).

Simulation Result

Now test the ladder logic and simulate the inputs.

When both Input A and Input B are ON

PLC ladder logic for the Boolean Expression

When both Input A and Input B are turned ON, Y (Q0.0) will turn ON. If one of these Inputs is turned OFF, Y (Q0.0) will turn OFF as these are in series implementing AND Logic Gate.

The inputs are used as Normally Open contacts and when in true state, the signal will pass through these inputs and the output will turn ON.

When Input C is ON

implement the equivalent ladder logic

The output Y (Q0.0) will turn ON when Input C is turned ON because the signal will flow through Input C.

The input C is taken as Normally open contact as is connected in parallel. Therefore, turning ON this input only will also turn On the output Y (Q0.0).

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:

  • Latching and Unlatching in PLC Program
  • Memory Bits and Set Coils in Ladder Logic
  • PLC with 2 Toggle Switches and 4 Motors
  • Rockwell CompactLogix and ControlLogix
  • PLC Project Examples EcoStruxure Machine
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 based Automatic Bell System for a School
Normally-open and Normally-closed Switch Contacts
Types of Failures in Industrial Automation Systems
Ladder Logic for Stair-Case wiring using Toggle Switches
Cybersecurity in PLC
Why Are Charcoal and Salt Added to an Earthing Pit?
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

Explore More

#18 PLC Best Practices – Store PLC Hard Stop Events from Faults
What is a GSD File and Why it is required?
Rockwell PLCs for Large Scale Applications
PLC Timers Program
What is Motor Jogging ?
Types of CPU Communication Ports in Siemens PLC
PLC Program for Controlling a Water Pump with 3 Power Sources
How to Read an Electrical Wiring Diagram?

Keep Learning

Why 4-20 mA Current Signal is used instead of Voltage Signal

Troubleshooting a 4-20mA Current loop

Safety interlock for motor starters in Siemens PLC

Motor Starter Logic using Siemens PLC Tia Portal

Siemens CPU Clock Memory

Alarm Acknowledge using PLC

Free Download PLC Simulator using Excel

PLC Simulator using Excel

Wet Contacts and Dry Contacts in PLC Systems

Wet Contacts and Dry Contacts in PLC Systems

How to Design a Motor Faceplate in Graphics - SCADA Tutorials

How to Design a Motor Faceplate in Graphics? – SCADA Tutorials

Light Tower in Industrial Automation

What is a Tower Lamp? – Light Tower in Industrial Automation

HMI book

HMI Handbook

Learn More

General Streams in Electronics Engineering

General Streams in Electronics Engineering for Students

HMI book

HMI Handbook

Industrial Internet of Things

Introduction to the Industrial Internet of Things (IIoT)

Battery Hazard

Battery Hazards

Electrical Machines Questions and Answers

Non-Salient Pole Machines Quiz

Tubing ACCURATE BENDING

Instrument Tube Fitting Installation – Part 1

Basics of Valves Interview Questions & Answers

Basics of Valves Interview Questions & Answers

Ideal Diode Characteristics Curve

Difference between ideal diode & conventional diode

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?