LogixPro PLC Lab Manual for Programmable Logic Controllers
LogixPro PLC Lab Manual for Programmable Logic Controllers
5th Edition
ISBN: 9781259680847
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
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
6. Write a simplified expression for the Boolean function defined by each of the following Kmaps: a) b) C) WX 00 WX 01 00 11 01 WX 00 10 11 01 10 11 10 yz yz yz 00 00 1 1 00 1 0 0 0 1 0 1 1 1 1 01 0 0 0 0 01 1 0 01 1 0 1 1 1 1 11 0 0 1 1 11 1 1 1 0 11 0 1 0 0 10 1 1 0 0 10 1 1 1 1 10 1 1 0 1
Enter a formula in Cell D3 for the average of only the data points given, and calculate the average in Cell D4. A 1 2 3 4 5 сл 6 7 8 9 10 Copy sheet 1 B Data 88 16 94 53 77 61 76 26 C D =F1+G1 82 E
hELPPPPP
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
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning