Activities Manual for Programmable Logic Controllers
Activities Manual for Programmable Logic Controllers
5th Edition
ISBN: 9781259679568
Author: Petruzella, Frank
Publisher: MCGRAW-HILL HIGHER EDUCATION
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
A piece of wire is to be bent in the form of a rectangle to put around a picture frame. The length of the picture frame is 1.5 times the width. Write a program that prompts the user to input the length of the wire and outputs the length and width of the picture frame.
Write a program that turns on an LED attached to pin 3 for 5 seconds then turns it off. The light should stay off for 3 seconds and then the LED should blink 10 times at a rate of 1 Hz (on and off each second). in TinkerCAD with Code
We have three push button, When the first push button is pressed, the LED is on continuously and when the second push button is pressed, the LED turns on and off, and the last switch turns off the LED program by use arduino
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++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage