LogixPro PLC Lab Manual for Programmable Logic Controllers
5th Edition
ISBN: 9781259680847
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
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
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
Chapter 11 Solutions
LogixPro PLC Lab Manual for 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
Similar questions
- PROBLEM 2: Print the first five even numbers where: ctr = 0.arrow_forward1| Rev 001 Eff Date: 09-08-2023 QP-ASR-001 | Rev 001 Eff Date (b) Draw a logic circuit diagram of the following Boolean expression: i. AB+C+ACB+B ii. ABC + ABC + AC (c) Convert the following expression to sum-of-product form F(A, B, C) AB + BC + AC Question 3: [Total Marks: 10] [5 marks] [5 marks] [5 marks] (a) Draw the logic circuit diagram for the following Boolean expressions using only NAND Gates X= AB (b) Draw the logic circuit diagram for the following Boolean expressions using only NOR Gates X=AB Question 4: [Total Marks: 10] (a) What is the Control word for the following micro-operations? [6 marks] i. R1 <- R2 + R3 ii. R2 <- SHR R2 Page 2 of 3 iii. R7 <- R2-R3 (b) The following instructions are performed in a processor based on general register organization. If R1 = 1001 and R2 = 1101, what will be the value of register R2 in the following operations: i. R2 <- SHR R2 ii. R2 <- R2 + R1 [4 marks] Question 5: [Total Marks: 15] Given the expression (A+B)*(C-D)+(E/F*G) (a) Find the…arrow_forwardusing matlabarrow_forward
- Which of the following expressions can accurately be applied to this expression: (x² + x)(100 + 5 log(x)) ○N(x² log x) (x² log x) □o(x³) o(100 x²)arrow_forwardMATLAB CODE COMPUTER APPLICATIONS In Electrical Engineeringarrow_forwardGive solution of Question 2 (part d, e, f, g, h required solution) . Subject: Digital Logic Designarrow_forward
- LaTeX must be used to write all boolean expressions and equations. A. Formulation: input: D3:0D3:0, output: VV, X1X1, X0X0 B. Write down the boolean expressions for the 4-to-2 Priority Encoderarrow_forward9. What is the result of the following operation: 1010 1101 & 1011 1011arrow_forwardGive solution of Question 1 (part d and e solution are required) Subject: Digital Logic Designarrow_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