Programmable Logic Controllers
5th Edition
ISBN: 9781259680885
Author: Petruzella
Publisher: MCG
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 11, Problem 8RQ
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 program based on the type of processor used.
- The data manipulation instructions are almost similar to math instructions.
- The math instruction allows the PLC to take more of conventional computer qualities.
- 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.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Determine the missing instruction from line 1 to 10
What would cause the current instruction to be reset if there was a problem?
Which instruction causes each bit in an operand to be shifted to the left by one position, with the highest bit in each operand also being copied into the Carry flag?
Chapter 11 Solutions
Programmable Logic Controllers
Ch. 11 - Explain the function of math instructions as...Ch. 11 - Prob. 2RQCh. 11 - What standard format is used for PLC math...Ch. 11 - Prob. 4RQCh. 11 - Prob. 5RQCh. 11 - Prob. 6RQCh. 11 - Prob. 7RQCh. 11 - Prob. 8RQCh. 11 - Prob. 9RQCh. 11 - Prob. 10RQ
Ch. 11 - With reference to the instruction of Figure 11-34,...Ch. 11 - With reference to the instruction of Figure 11-35,...Ch. 11 - Prob. 1PCh. 11 - Prob. 4PCh. 11 - Prob. 5PCh. 11 - Prob. 7PCh. 11 - Prob. 8PCh. 11 - With reference to math instruction program shown...Ch. 11 - With reference to the math instruction program...Ch. 11 - Prob. 11PCh. 11 - Prob. 12P
Knowledge Booster
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
- Two 1-bit values generate a 1 result value when a(n) _____ instruction is executed. All other input pairs generate a 0 result value.arrow_forwardA(n) ____________________ instruction copies data from one memory location to another.arrow_forwardA branch instruction changes the flow of information by changing the PC.True or False with explanation.arrow_forward
- Please look at the question properly, it is asking for the machine code for the MIPS instruction below. Please write thorougly so I am able to understand it.arrow_forwardThis R format instruction adds the four bytes that the source register holds and puts the sum into the lower two bytes of the destination register.arrow_forwardDo you know what would happen if an instruction was rejected? TLBs controlled by software are quicker than those controlled by hardware in the following situations:arrow_forward
- Which instruction duplicates the most significant bit of each operand into the Carry indicator and the least significant bit into the Least Significant Bit position?arrow_forwardThe JNA instruction's corresponding conditional jump instruction is which one?arrow_forwardWhich conditional jump instruction is equivalent to JNAE?arrow_forward
- What is the value of DX after the instruction (subtraction)? DX = 35F3H BX = 7235HSUB DL, BHSelect the correct response:A.129 B. 3581C. 3581HD. 128arrow_forwardIs there any room for interpretation with regard to the CMPS instruction?arrow_forwardIf an instruction is not accepted and it writes to VA page 30, what will happen? A TLB that is handled by software would perform better than a TLB that is controlled by hardware in the following situations:arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning