Activities Manual For Programmable Logic Controllers
Activities Manual For Programmable Logic Controllers
5th Edition
ISBN: 9781259682476
Author: Frank Petruzella
Publisher: Mcgraw-hill Higher Education (us)
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
I need help to resolve the case, thank you
In 32-bit MSAM, You were given the following negative array. write a program that converts each array element to its positive representation. Then add all these array elements and assign them to the dl register. .data    myarr sbyte -5, -6, -7, -4.code     ; Write the rest of the program and paste the fully working code in the space below.   the dl register should have the value 22 after summing up all elements in the array.
Microprocessor 8085 Lab Experiment Experiment No. 3 Logical Instructions Write programs with effects 1. B=(2Dh XOR D/2) - (E AND 2Eh+1) when E=53, D=1Dh 2. HL= (BC+HL) XOR DE (use register pair when necessary), when BC=247, HL 516, DE 12Ach 3. Reset bits 1,4,6 of A and set bits 3,5 when A=03BH Write all as table (address line.hexacode,opcede,operant.comment with flags)
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 Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage