CONNECT PROGRAMMABLE LOGIC CONTROLLERS
2017th Edition
ISBN: 9781264228836
Author: Petruzella
Publisher: MCG
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
A potentiometer had been used as ADC to read analog values
(0-1023).write the codes for programing arduino UNO ?
Design a circuit that takes three bits, X2, X1, X0 as input and produces one output, F. F is 1 if and only if 2<=X<=5 when X = (X2, X1, X0) is read as an unsigned integer. For example, if X2=1, X1=0, and X0=0, then the unsigned binary value is 100, which is 4, so the output would be 1.
Your Assignment For This Problem Includes the Following
Design the necessary circuit using Logisim to implement the situation described above. Use Kmaps for simplification. Be VERY careful to get the correct functions for your output before simplifying and designing the circuit with Logisim. You should minimize the circuit.
Your circuit should have three inputs and one LED output.
All inputs (X2, X1, X0) and output (F) should be labeled (in Logisim, not by hand). Please use these names to indicate the inputs and output so all projects are consistent.
You should also include your name as a label on the circuit.
Test your circuit to be sure it is working correctly.
Question: Choose the correct answer.
Which one of the following expressions represents the DeMorgan theorem?
Select one:
a. none of the given options
b. (A+B)'=A'B'
c. (X')'=X
d. X+X=X
2. The parity bit that is added to a binary number is equal to 1 if the number of ones is more than the number of zeros.
Select one:
True
False
3.(754)10 is equal to (111101100)BCD.
Select one:
True
False
4. In a 4 by 2 standard encoder, if the input is 1001, then the output should be
Select one:
a. Invalid input
b. 10
c. 01
d. none of the given choices
5. The 2’s complement of the binary number (1100100)2 is:
Select one:
a. (0011100)2
b. (0010011)2
c. (1101100)2
d. None of the given options
6. What will be the output of the 4-to-1 Multiplexer if the input is 0110 and the Selector is 10?
Select one:
a. none of the given options
b. 0
c. 1
d. 10
7. The Term C'B'D in the simplified boolean expression for F(D, C, B, A) = ∑ (0, 2, 5, 7, 8, 9, 10, 13, 15) is…
Chapter 11 Solutions
CONNECT 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
- Draw timing diagram for the following instructions : Instructions :LHLD 1122 H Corresponding coding:1000 H 3E H1001 H 22 H1002 H 11 Harrow_forwardSolve only if you had knowledge else skip it Question : what are output voltages caused by logic 1 in each bit positionin 8 bit ladder if the input level for 0 is 0v and for 1 is 10v?arrow_forward4, in the fixed-point machine, the following statement is wrong ( ).A. In addition to the complement, the original code and the inverted code cannot indicate that the original code of −1 B. +0 is not equal to −0C. the inverse of +0 is not equal to the negative of −0 D. For the same machine word length, the complement code can represent a negative number more than the original code and the inverted code.arrow_forward
- Data represented in ________ is transmitted accurately between computer equipment from different manufacturers if each computer’s CPU represents real numbers by using an IEEE standard notation.arrow_forward(Practice) Show how the name KINGSLEY is stored in a computer that uses the ASCII code by drawing a diagram similar to Figure 2.7, shown previously.arrow_forwardAssume that IEEE 754 floating point format is used and $f1 and $f2 store the floating numbers as below: $f1: 1000 1010 0110 1110 1001 1000 0000 0000 $f2: 1000 1010 0100 1111 0100 0010 0000 0000 What are the values of each register? What is the result computing for ($f1+$f2)arrow_forward
- 13.a) Design a 4 bit arithmetic unit with two selection variables s0 and s1 and two n-bit data inputs A&B and input carry Cin s1 s2 Cin=0 Cin=10 0 F=A F=A+10 1 F=A+B F=A+B+11 0 F=A+B’ F=A+B’+11 1 F=A-1 F=A b) Explain the design of an accumulator. need complete solution...thanksarrow_forwardQ) Write a program to generate a square wave on arduino digital pin 11, the frequency and duty cycle of this wave, f=5KHz and D=20% respectively.arrow_forwardPlease please don't copy Computer Science for BCH (16,12). when input is (0, 4, 14, 14, 4, 4, 15, 2, 4, 2, 15, 13), what are the check digits?arrow_forward
- Assume x goes to $s0, y goes to $s1, and z goes to $s2. Convert the following MIPS code to C. addi $s1, $s2, -3arrow_forwardPROCEDURE : You are to design a 4-bit arithmetic unit that consists of a 4-bit adder/subtractor circuit. The arithmetic unit takes as inputs two 4-bit numbers (A and B) and one control input (M) add/subtract selector that selects the type of operation the unit will perform. When the input control is ‘0’, the input numbers are added. When it is set to ‘1’, the two input numbers are subtracted (A - B). TASK :: Two 4-bit Adder/Subtractor Circuit: Design and construct a 4-bit adder/subtractor circuit. DRAW THE CORRESPONDING LOGIC DIAGRAM OF THE CIRCUITarrow_forwardUse cyclical coding (A-1,B-2…,Y-25, Z-0) that will shift each given letter 6 positions to code CHE.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 PtrSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning