EBK LOGIXPRO PLC LAB MANUAL FOR PROGRAM
5th Edition
ISBN: 8220102803503
Author: Petruzella
Publisher: YUZU
expand_more
expand_more
format_list_bulleted
Question
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...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Take two float numbers from the user and perform all arithmetic operations.
in MIPS Language, using cin and court from the user and also main function with $f0 to store the numbers
PROBLEM 2: Print the first five even numbers where: ctr = 0.
Computer Science
The computer science department would like to create an analog clock with the numbers for the hours shown in binary. Due to space concerns, each hour should show the same number of digits with preceding zeros. What is the max number of digits per hour that they would need to show all the binary numbers on the clock? How did you come up with the solution?
Chapter 11 Solutions
EBK LOGIXPRO PLC LAB MANUAL FOR PROGRAM
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
Similar questions
- if (x-33) х++; y++;arrow_forward6. Given single-character codes for the colored bands that mark a resistor, compute its resistance. The color codes are as follows: Color Code Character Code Black 'B' Brown 'N' 1 bandı Red 2 | banda bands Orange Yellow 3 4 band4 Green Blue 6 Violet Gray White 7 'V' 'A' 9 "W' Figure 1: Resistor Color Bands Table 1: Resistor Color Codes The resistance (2) value of a resistor can be found using the integer value for each color band as follows: R = (bandl * 10 + band2) * 10band3 Write C++ program that finds the resistor value from its color code and output the answer as a numerical format. Remember to use function(s)! P.S.: Use the character code in shown in Table 1 order to represent each color. Sample output Input three color codes: YVO Resistance is: 47000 Ohms.arrow_forward3. Convert the infix expression: X+Y - Z * R – F / M into postfix notation taking into account correct evaluation order for each arithmetic operation.arrow_forward
- In the following expression, the values of a, b, and c are integers b (a/10) min (a,b,c) 6 5 3 2 4 1 Drag and drop the precedence order (1,2, 3, 4, 5, 6) of the mathematical operation in pythonarrow_forward9. What is the result of the following operation: 1010 1101 & 1011 1011arrow_forwardoperator gives the value 7 when 56 and 8 are given as inputsarrow_forward
- Problem: Read one integer number. If the input is between 2 and 10 print multiplication table as shown in sample output. Otherwise print 'Input shall be from 2 to 10 only'. Two Sample Outputs: [For reference only] Enter one number 7 Required Output is 7 1 7 Enter one number l2 7 3 21 - **** Input shall be from 2 to 10 only ** 7 5 - 35 * 7 * 7 = 49 * 9 - 63 * 11 = 77 7 13 91 = 7 15 * = 105 7 17 = 119 7 19 133 *arrow_forwardIf x=10 and y=In(x)+log10(x2), then :the MATLB code for y isarrow_forwardWhich of the following statements is not correct: Select one: of a. A second-order PLL can track a frequency step with zero steady-state error. O b. A first-order PLL can track a frequency step with a zero steady-state error. O C.A third-order PLL can track a frequency step with zero steady-state error. O d. A first-order PLL can track a phase step with a zero steady-state error.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning