EBK LOGIXPRO PLC LAB MANUAL FOR PROGRAM
EBK LOGIXPRO PLC LAB MANUAL FOR PROGRAM
5th Edition
ISBN: 8220102803503
Author: Petruzella
Publisher: YUZU
bartleby

Concept explainers

Question
Book Icon
Chapter 9, Problem 1RQ
Program Plan Intro

a.

Master Control Reset (MCR) instructions:

  • The MCR instruction is used to clear all set outputs within the fenced zone.
  • In other words, it turns off all the non-retentive outputs in the fenced zone.
  • Non-retentive outputs cannot retain their memory when they are de-energized.
  • The MCR instruction within the zone are still scanned, but the scan time is reduced due to the false state of non-retentive outputs.

Expert Solution
Check Mark

Explanation of Solution

Programming procedure:

  • In order to control a program section, two MCR output instructions are programmed.
  • The fenced zone which needs to be controlled begins with one MCR instruction and the other MCR instruction at the end.
  • An MCR rung with conditional inputs is placed at the beginning of the program section to be controlled.
  • An MCR rung with no conditional inputs is placed at the end of the program section to be controlled.
  • If the first MCR instruction becomes true, then all the outputs present in between the two MCR instructions will act according to the logic.
  • If the MCR instruction becomes false, then all the non-retentive outputs will be de-energized and all the retentive outputs will retain their previous state.

Explanation of Solution

b.

False-to-true transition:

  • When the MCR instruction makes a false-to-true transition, all rung outputs within the program section will be controlled by their respective input conditions.
  • Initially, when the MCR instruction in the rung is false, all the rungs within the zone are made inactive and de-energizes all non-retentive outputs.
  • Hence, all retentive devices such as latches will remain in their previous state.

Explanation of Solution

c.

True-to-false transition:

  • When the MCR instruction makes a true-to-false transition, all non-retentive outputs within the program section will be de-energized.
  • At the same time, all the retentive outputs within the fenced zone will remain in their previous state.
  • Initially, when the MCR instruction in the rung is true, all the rungs within the zone are scanned and the outputs are energized and updated based on their logic.
  • When the MCR instruction undergoes a transition from true-to-false, the scan ignores the input and de-energizes all the non-retentive outputs.
  • Hence, all the retentive devices like latches, timers will remain in their previous state.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
The 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' situation
Computer Science A circuit for two output ports (A&C) of the AVR ATmega16 microcontroller each connected to 8 LEDs. Write a program to control the LEDs in a sequence shown by stepping to lit on the LED sequentially as in the figure by toggling the LED at the same time for both ports (500mS) ending at the last state of the figure and looping back inversely to the start. This s done for 3 times back and forth.
(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.
Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning