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 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
Home Work: Execute the following instruction using all previous instruction format types: 1- X = (A + B)* (C + D) 2- S = F-(C*B)+M 3- N= (A+B*C)/ (F*E)
Given a memory load instruction, "mov R0; [R1+1000]," please give the input that should be selectedat each multiplexer. You can write "none" for the multiplexers that are not used for this instruction.(a) MUX1:(b) MUX2:(c) MUX3:(d) MUX4:
) State whether the following instructions are valid or invalid? Define the valid instructions. In case any instruction is invalid then state the reason of their invalidity. ADD BX, [1234H] AND 23H, AL CMP AL, SP JCXZ Telecom IMUL BL
Knowledge Booster
Background pattern image
Similar 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