PROGRAMMABLE LOGIC CONTROLLERS-ACCESS
PROGRAMMABLE LOGIC CONTROLLERS-ACCESS
5th Edition
ISBN: 9781259680915
Author: Petruzella
Publisher: MCG
bartleby

Concept explainers

Question
Book Icon
Chapter 1, Problem 3P
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
Program a circuit where a yellow LED light will turn on when a button is pressed 4 times and remain on for 4 seconds. Then, a red light will flash at 2 Hz for 8 seconds.
write a C program that utilizes the RTC alarm to toggle an LED every five seconds
Write an Arduino program to turn the LED on when the pushbutton is pressed once and turn it off when pressed twice.
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
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education