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

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 4, Problem 4P

Explanation of Solution

a.

Data stored in the destination address of AND operation:

  • In AND operation, the output is always HIGH when all the inputs are HIGH and the output is LOW when any of the inputs are LOW.
  • The AND operation of two inputs “Source A” and “Source B” is given below. Here, the result is stored in destination address.
  • If both the inputs “Source A” and “Source B” are 1, then the output 1 will be displayed on the destination.
  • Otherwise, if either of the inputs “Source A” or “Source B” is 0, then the output 0 will be displayed on the destination.

Source A:

00000000101010

Explanation of Solution

b.

Data stored in the destination address of OR operation:

  • In OR operation, the output is always HIGH when any of the inputs are HIGH and the output is LOW when all the inputs are LOW.
  • The OR operation of two inputs Source A and Source B is given below. Here, the result is stored in destination address.
  • If either of the inputs “Source A” or “Source B” are 1, then the output 1 will be displayed on the destination.
  • Otherwise, if both the inputs “Source A” and “Source B” are 0, then the output 0 will be displayed on the destination.

Source A:

00000000101010

Explanation of Solution

c.

Data stored in the destination address of XOR operation:

  • In Exclusive-OR (XOR) operation, the output is always HIGH when either of the inputs is HIGH and the output is LOW when all the inputs are either HIGH or LOW.
  • The XOR operation of two inputs Source A and Source B is given below. Here, the result is stored in destination address.
  • If either of the inputs “Source A” or “Source B” are 1, then the output 1 will be displayed on the destination.
  • Otherwise, if both the inputs “Source A” and “Source B” are 0 or 1, then the output 0 will be displayed on the destination.

Source A:

00000000101010

Blurred answer
Students have asked these similar questions
Convert the above code to three address code   do   x = x + 2;   while (a[x] < t);
destination register after each of the following instructions executes in sequence, given that CL, DX, and AL are initialized to 3, 1001111010111100, and 01010111 respectively? Leave your answer in binary form for this question   rol dx, cl
Evaluate the following expression using three, two and one address machine format.X= (A-BX C)/(D+EXF)
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
Text book image
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,
Text book image
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning
Text book image
Comptia A+ Core 1 Exam: Guide To Computing Infras...
Computer Science
ISBN:9780357108376
Author:Jean Andrews, Joy Dark, Jill West
Publisher:Cengage Learning