CONNECT PROGRAMMABLE LOGIC CONTROLLERS
CONNECT PROGRAMMABLE LOGIC CONTROLLERS
2017th Edition
ISBN: 9781264228836
Author: Petruzella
Publisher: MCG
Question
Book Icon
Chapter 11, Problem 4P
Program Plan Intro

Math instruction:

  • Math instructions refer to all output instructions that uses the data of two words or registers and perform the desired function.
  • Math instructions are programmed based on the type of processor used.
  • The data manipulation instructions are almost similar to math instructions.
  • Math instructions are normally used to perform arithmetic functions on the values stored in memory words or registers.

Math functions:

The basic math functions performed by PLCs are as follows:

  • Addition
    • This function is used to add one piece of data to another.
    • It is also called as ADD.
  • Subtraction
    • This function is used to subtract one piece of data from another.
    • It is also called as SUB.
  • Multiplication
    • This function is used to multiply one piece of data by another.
    • It is also called as MUL.
  • Division
    • This function is used to divide one piece of data from another.
    • It is also called as DIV.

Terms used:

The following terms are used in the instruction.

  • Source A
    • Source A refers to the address of the first piece of data that is used in the instruction.
  • Source B:
    • Source B refers to the address of the second piece of data that is used in the instruction.
  • Destination
    • Destination refers to the address where the results of the instruction are stored.

Explanation of Solution

b.

Value stored in “N7:0”:

  • Consider the given word “N7:0”.
  • In the given program, the word “N7:0” addresses the destination of the “MUL” instruction.
  • Here, “Source A” and “Source B” of “MUL...

Explanation of Solution

c.

Value stored in “N7:1”:

  • Consider the given word “N7:1”.
  • In the given program, the word “N7:1” addresses the destination of the “DIV” instruction.
  • Here, “Source A” and “Source B” of “DIV...

Explanation of Solution

d.

Value stored in “O:013”:

  • Consider the given word “O:013”.
  • In the given program, the word “O:013” addresses the destination of the “ADD” instruction.
  • Here, “Source A” and “Source B” of “AD...

Blurred answer
Students have asked these similar questions
A potentiometer had been used as ADC to read analog values (0-1023).write the codes for programing arduino UNO ?
Design a circuit that takes three bits, X2, X1, X0 as input and produces one output, F. F is 1 if and only if 2<=X<=5 when X = (X2, X1, X0) is read as an unsigned integer. For example, if X2=1, X1=0, and X0=0, then the unsigned binary value is 100, which is 4, so the output would be 1.   Your Assignment For This Problem Includes the Following Design the necessary circuit using Logisim to implement the situation described above. Use Kmaps for simplification. Be VERY careful to get the correct functions for your output before simplifying and designing the circuit with Logisim. You should minimize the circuit. Your circuit should have three inputs and one LED output. All inputs (X2, X1, X0) and output (F) should be labeled (in Logisim, not by hand). Please use these names to indicate the inputs and output so all projects are consistent. You should also include your name as a label on the circuit. Test your circuit to be sure it is working correctly.
Question: Choose the correct answer.     Which one of the following expressions represents the DeMorgan theorem?  Select one: a. none of the given options b. (A+B)'=A'B' c. (X')'=X d. X+X=X 2. The parity bit that is added to a binary number is equal to 1 if the number of ones is more than the number of zeros. Select one: True False   3.(754)10 is equal to (111101100)BCD.   Select one: True False   4. In a 4 by 2 standard encoder, if the input is 1001, then the output should be Select one: a. Invalid input b. 10 c. 01 d. none of the given choices   5. The 2’s complement of the binary number (1100100)2 is: Select one: a. (0011100)2 b. (0010011)2 c. (1101100)2 d. None of the given options   6. What will be the output of the 4-to-1 Multiplexer if the input is 0110 and the Selector is 10? Select one: a. none of the given options b. 0 c. 1 d. 10   7.  The Term C'B'D in the simplified boolean expression for F(D, C, B, A) = ∑ (0, 2, 5, 7, 8, 9, 10, 13, 15) is…
Knowledge Booster
Background pattern image
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
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning