Programmable Logic Controllers
Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
bartleby

Concept explainers

Question
Book Icon
Chapter 1, Problem 5P
Program Plan Intro

AND Operator:

  • An AND operator accepts two inputs and produces a single output.
  • If both the inputs are CLOSE, then the output is ON. Otherwise, the output is OFF.
  • In Boolean expression, the AND operation is expressed using the “.” dot operator or “*” asterisk operator.

  X= B    or     X=A * B

  where A and B are the inputs and X is the output.

Truth table for AND operator:

INPUTA

INPUT

B

OUTPUT

X

OPENOPENOFF
OPENCLOSEOFF
CLOSEOPENOFF
CLOSECLOSEON

OR Operator:

  • An OR operator accepts two inputs and produces a single output.
  • If both the inputs are OPEN, then the output is OFF. Otherwise, the output is ON.
  • In Boolean expression, the OR operation is expressed using the “+” plus sign.

    X=A+B

  where A and B are the inputs and X is the output.

Truth table for OR operator:

INPUTA

INPUT

B

OUTPUT

X

OPENOPENOFF
OPENCLOSEON
CLOSEOPENON
CLOSECLOSEON

Blurred answer
Students have asked these similar questions
Using flowgorithm only for the following:
Create a VBA program that computes for the Computes for the Areaand Perimeter of a Rhombus. The output will be displayed in a message box.
Ih a given series RLC circuit, write a python program to find the frequency at which voltage across the Resistance will be maximum Take all the requirements from user.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr