EBK ACTIVITIES MANUAL FOR PROGRAMMABLE
EBK ACTIVITIES MANUAL FOR PROGRAMMABLE
5th Edition
ISBN: 8220102795983
Author: Petruzella
Publisher: YUZU
Question
Book Icon
Chapter 11, Problem 7P
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.

MOV instruction:

  • Move (MOV) instruction is used to copy the data of the source register into destination register.
  • Here, the contents of the source register will not be altered.
  • In other words, it is used to copy the value in one word or register to another word or register.

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.

Blurred answer
Students have asked these similar questions
Each instruction in this situation is given its own data, separate from the data used by any other instructions. To do this, we use a: A Multiple Input/Output B Data or Instruction Repeatedly C Distinct Information Difficulty Level: Single Inst, Single Inst, Multiple
The instruction that pushes the contents of the specified register/memory location on to the stack is PUSHF O POPF O PUSH O POP O This flag is used by the instructions that perform BCD .(binary coded decimal) arithmetic Carry Flag O Parity Flag O Auxiliary Carry Flag the Direction Flag O
Write the machine code of the instruction: subwf Ox53, 1 How to write answer: Write 4-digits hexadecimal value starting without '0x'. Example: if answer is 0X245F, then write 245F Example: if answer is 0X005F, then write 005F Answer:
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning