Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Chapter 10, Problem 1P
Program Plan Intro
a.
“MOV” Command:
- “MOV” instruction or command is used to copy the contents from source to destination address.
- The original content remains unchanged in the source location and the duplicate contents are stored in the destination address.
- “MOV” command copies the files or data from source to destination address as long as rung is true.
“N7:13”:
- “N7:13” is an integer word address.
- “N7:13” represents a single word and word number 13 in an integer file 7 where N represents an integer type of file.
Program Plan Intro
b.
“N7:112”:
- N7:112 is an integer word address.
- N7:112 represent a single word and word number 112 in an integer file 7 where N represents an integer type of file.
“MOV” Command:
- “MOV” instruction or command is used to copy the contents from source to destination address.
- The original content remains unchanged in the source location and the duplicate contents are stored in the destination address.
- “MOV” command copies the files or data from source to destination address as long as rung is true.
Program Plan Intro
c.
Light Emitting Diode (LED):
- LED is an output interface.
- LED is defined as a panel display which uses an array of light-emitting diodes as pixels for video display.
- In public transport vehicles, LEDs are used to display destination signs.
Program Plan Intro
d.
Light Emitting Diode (LED):
- LED is an output interface.
- LED is defined as a panel display which uses an array of light-emitting diodes as pixels for video display.
- In public transport vehicles, LEDs are used to display destination signs.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
6) Study the data transfer program of the figure below and answer the following questions:
a. When S1 is open, what decimal number will be stored in integer word address N7:13 of
the MOV instruction?
b. When S1 is on, what decimal number will be stored in integer word address N7:112 of the
MOV instruction?
c. When S1 is on, what decimal number will appear in the LED display?
d. What is required for the decimal number 216 to appear in the LED display?
Inputs
Ladder logic program
Output
L1
L2
S1
-MOV-
HH MOVE
oS1
Source
N7:112
Destination
N7:13
N7:13
LED display
-N7:112
Thumbwheel switch
Consider the following MIPS instruction: beq $t1, $t1, label
What is the ALUSrc control signal value: top or bottom?
What is the MemtoReg control signal value: top or bottom?
What is the PCSrc control signal value: top or bottom?
Using the mov.w instruction we copy the 16-bit word 0xB612 to the address 0x1C20. You do not need to know any details of the instruction here, all you care is that the word is stored at the given address. (a) What is the byte that is stored in location 0x1C20? (b) What is the byte that is stored in location 0x1C21?
Chapter 10 Solutions
Programmable Logic Controllers
Ch. 10 - In general, what do data manipulation instructions...Ch. 10 - Prob. 2RQCh. 10 - Prob. 3RQCh. 10 - Prob. 4RQCh. 10 - Prob. 5RQCh. 10 - Prob. 6RQCh. 10 - Prob. 7RQCh. 10 - Prob. 8RQCh. 10 - Prob. 9RQCh. 10 - Prob. 10RQ
Ch. 10 - Prob. 11RQCh. 10 - Prob. 12RQCh. 10 - Prob. 13RQCh. 10 - Prob. 14RQCh. 10 - Prob. 15RQCh. 10 - Prob. 16RQCh. 10 - Prob. 17RQCh. 10 - Prob. 18RQCh. 10 - Prob. 19RQCh. 10 - Prob. 20RQCh. 10 - Prob. 21RQCh. 10 - Prob. 22RQCh. 10 - Prob. 1PCh. 10 - Prob. 2PCh. 10 - Prob. 3PCh. 10 - Prob. 4PCh. 10 - Prob. 7PCh. 10 - Prob. 8PCh. 10 - Prob. 9PCh. 10 - Prob. 10PCh. 10 - Write a program that will cause a light to come on...Ch. 10 - Write a program that will cause a light to come on...
Knowledge Booster
Similar questions
- The time it takes to perform the fetch instruction and decode instruction steps is called the execution time. True or false?arrow_forwardA(n) ____________________ instruction copies data from one memory location to another.arrow_forwardConsider the below instructions and write the datapath components that each of these instructions use for completing the instruction: 1. AND $t0, $t1, $t22. SW $t1, 44 ($t2)3. BNE $t1,$t2, ELSEarrow_forward
- Consider the following MIPS instruction: add $t1, $t2, $t3 (Refer to the figure) a. What is the ALUSrc control signal value: top or bottom? b. What is the MemtoReg control signal value: top or bottom? c. What is the PCSrc control signal value: top or bottom?arrow_forwardThe control signal 'ALUSrc' controls the multiplexor whose output goes into the ALU. The inputs to this multiplexor are the 'Read Data 2' from the 'Register' block and the 32-bit wide sign-extended offset from the instruction. If the instruction is a 'load word' (Iw), which of these two inputs will this control signal propagate to the multiplexor output and hence to the ALU input? Choose the best answer. Since the command is a lw, the 'Read Data 2' needs to be propagated to the ALU Since the command is a lw, the offset needs to be propagated to the ALU O This is a trick question. There is no need for the sign-extended offset to be input to the ALU as it only gets data from the registers Since this is a lw instruction, the ALU does not come into the picture at all as this datapath goes directly to the Data Memory bypassing the ALU. This is a 'dont-care' situationarrow_forwardQuestion 2 Consider the below instructions and write the datapath components that each of these instructions use for completing the instruction: 1. AND $t0, $t1, $t2 2. SW $t1, 44 ($t2) 3. BNE $t1,$t2, ELSE ur response (required)arrow_forward
- (d) The table below shows the ALUcontrol signal of the datapath we discussed in class. Instruction Funct ALU Орсode ALUop ALU action operation field control Iw 00 load word XXXXXX add 0010 Sw 00 store word XXXXXX add 0010 beq 01 branch equal subtract 0110 XXXXXX R-type 10 add 100000 add 0010 R-type 10 subtract 100010 subtract 0110 R-type 10 AND 100100 AND 0000 R-type 10 OR 100101 OR 0001 R-type 10 set on less than 101010 set on less than 0111 You want to add the bne instruction into the datapath, which already includes the required hardware for the instruction. Write out the ALUop for bne and how you can determine whether the bne results in the branch to be taken.arrow_forwardIn the event an instruction is refused, what would be the result? In the following cases, a software-managed TLB is faster than a hardware-managed TLB:arrow_forwardWhat would happen if an instruction was disobeyed, and why would that be the case? In the following scenarios, a TLB that is maintained by software is more efficient than one that is handled by hardware:arrow_forward
- What logic values will the following signals have during an instruction fetch?arrow_forwardInstruction : SUB Rd, Rs, Rt a. What are the values of control signals generated by the control in Figure I for the above instruction? b. Which resources (blocks) perform a useful function for this instruction? c. Which resources (blocks) produce outputs, but their outputs are not used for this instruction? d. Which resources produce no outputs for this instruction Branch Add Add ALU operation Data MemWrite Register PC Address Instruction Address Zero Registers ALU Register Data Instruction memory Register Regwrite memory Data MemRead Contrel Figlarrow_forwardQuestion2: Assume that the physical address of the instruction is (D6A92H) and the code 2 Bandwidth segment (CS) contain (B079H) what are the offset of this segment .and what are the upper and lower address of this segment ?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning