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.
S-O-S is an internationally recognized distress signal. It consists of a sequence of 3 short signals, followed by 3 long signals, followed by 3 short signals, and then a pause. This pattern is then repeated over and over (indefinitely). Write an Arduino program that blinks the onboard LED in this manner. Your challenge is to turn the LED on no more than 3 times in the loop function.
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