Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 15.5, Problem 2RQ
Explanation of Solution
ControlLogix ladder rung with a math instruction:
The ControlLogix ladder rung for subtracting the value of “Count_1” from the value of “Count_2” is given below:
Explanation:
From the above diagram, the math instruction is used for the given ControlLogix ladder rung is “SUB” instruction.
- When the “Limit_Switch_1” and “Limit_Switch_2” is true, then the “SUB” instruction is executed...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The following instruction is used for:
GPIO PORTA_DIR_R 6= -0x20;
Select one:
a. direction PAS output
O
b. direction PFS input
c. direction PA4 input
d. direction PAS input
e. direction PFS output
In Assembly using INCLUDE irvine32.inc
Write a procedure called add3, which takes three parameters from the stack and returns the sum, leaving it in the EAX registers.
Also, you will need to write a main program, which pushes the three parameters on the stack, finds the sum in the EAX register and prints the value.
At the end of your program, output a message box that displays the text “Success!”
After the ROL instruction is executed in the code sequence below, the final value for AL determines the values for the FLAGS. What is the value for the FLAGS?
MOV AL, 1001_1100b
ROL AL, 3
a. CF= 0, ZF= 0, SF= 1, AF= 1, OF= 0, PF= 1.
b. CF= 1, ZF= 0, SF= 0, AF= 0, OF= 0, PF= 1.
O C. CF= 1, ZF= 1, SF= 0, AF= 0, OF= 0, PF= 1.
O d. CF= 0, ZF= 0, SF= 0, AF= 0, OF= 1, PF= 0.
Chapter 15 Solutions
Programmable Logic Controllers
Ch. 15.1 - Prob. 1RQCh. 15.1 - Prob. 2RQCh. 15.1 - Prob. 3RQCh. 15.1 - Prob. 4RQCh. 15.1 - Prob. 5RQCh. 15.1 - Prob. 6RQCh. 15.1 - Prob. 7RQCh. 15.1 - Prob. 8RQCh. 15.1 - Prob. 9RQCh. 15.1 - Prob. 10RQ
Ch. 15.1 - Prob. 11RQCh. 15.1 - Compare the accessibility of program scope and...Ch. 15.1 - Prob. 13RQCh. 15.1 - What is the difference between a produced tag and...Ch. 15.1 - Prob. 15RQCh. 15.1 - State the data type used for each of the...Ch. 15.1 - Describe the make-up of a predefined structure.Ch. 15.1 - Describe the make-up of a module-defined...Ch. 15.1 - Describe the make-up of a user-defined structure.Ch. 15.1 - Prob. 20RQCh. 15.1 - Prob. 21RQCh. 15.1 - Prob. 22RQCh. 15.1 - Prob. 23RQCh. 15.2 - Prob. 1RQCh. 15.2 - Prob. 2RQCh. 15.2 - Prob. 3RQCh. 15.2 - Prob. 4RQCh. 15.2 - Prob. 5RQCh. 15.2 - Prob. 6RQCh. 15.2 - Prob. 7RQCh. 15.2 - Prob. 8RQCh. 15.2 - Prob. 9RQCh. 15.2 - Prob. 10RQCh. 15.2 - Prob. 11RQCh. 15.2 - Extend control of the original ControlLogix...Ch. 15.2 - Prob. 3PCh. 15.3 - Prob. 1RQCh. 15.3 - Prob. 2RQCh. 15.3 - Prob. 3RQCh. 15.3 - Prob. 4RQCh. 15.3 - Prob. 5RQCh. 15.3 - Prob. 6RQCh. 15.3 - Prob. 7RQCh. 15.3 - Prob. 8RQCh. 15.3 - Prob. 9RQCh. 15.3 - Prob. 10RQCh. 15.3 - Prob. 11RQCh. 15.3 - Prob. 12RQCh. 15.3 - Modify the original CLX ten-second TON timer...Ch. 15.3 - Prob. 2PCh. 15.3 - Prob. 3PCh. 15.3 - Prob. 4PCh. 15.3 - Prob. 5PCh. 15.3 - Prob. 6PCh. 15.4 - Prob. 1RQCh. 15.4 - Prob. 2RQCh. 15.4 - Prob. 3RQCh. 15.4 - Prob. 4RQCh. 15.4 - Prob. 5RQCh. 15.4 - Prob. 6RQCh. 15.4 - Prob. 7RQCh. 15.4 - Prob. 1PCh. 15.4 - Prob. 2PCh. 15.5 - Prob. 1RQCh. 15.5 - Prob. 2RQCh. 15.5 - Prob. 3RQCh. 15.5 - Prob. 4RQCh. 15.5 - Prob. 5RQCh. 15.5 - Construct a ControlLogix ladder rung with compare...Ch. 15.5 - Prob. 2PCh. 15.5 - A single pole switch is used in place of the two...Ch. 15.6 - Prob. 1RQCh. 15.6 - Name the four basic elements of an FBD.Ch. 15.6 - Prob. 3RQCh. 15.6 - Prob. 4RQCh. 15.6 - Prob. 5RQCh. 15.6 - Prob. 6RQCh. 15.6 - Prob. 7RQCh. 15.6 - Prob. 8RQCh. 15.6 - Prob. 9RQCh. 15.6 - Prob. 10RQCh. 15.6 - Prob. 11RQCh. 15.6 - How is a function block feedback loop created?Ch. 15.6 - Prob. 13RQCh. 15.6 - Prob. 14RQCh. 15.6 - Prob. 1PCh. 15.6 - Prob. 2PCh. 15.6 - Prob. 3PCh. 15.6 - Prob. 4PCh. 15.6 - Prob. 5P
Knowledge Booster
Similar questions
- Computer Science MSP432 Code Composer Studio using ARM-Cortex M4 Assembly. Make a linear congressional generator (Random function generator) as a subroutine, so whenever switch 1 is called (port 6 Bit 0 or P6.0) it outputs a random LED turning on from 6 external LEDS. I just need the "random" Function so I can call it to the subroutine that compares if switch 1 is being pressedarrow_forwardC programming Practice writing programs with nested control structures (i.e. if-else ifelse statements, while loops, for loops, and do-while loops).For this, you will convert your Classwork 6 pseudocode to C code. Your program will write the song introduction using a do-while loop. The dance instruction will use a while loop. Inside the while loop, the program will have a for loop that iterates through the 16 steps of the Cupid Shuffle, using an if-else if-else block to determine what step it is and print out the instruction.Example Compilation and Execution Do you like group/line dances? Well, I do, and my favorite is the CupidShuffle. Please put it on and I’ll show you how to do it!Is the introduction over (y/n)? nDo what you want.Is the introduction over (y/n)? nDo what you want.Is the introduction over (y/n)? yAlright, it’s dance time!Is the song over (y/n)? nAlright, keep on going!Step 1: Step rightStep 2: Step rightStep 3: Step rightStep 4: Step rightStep 5: Step leftStep 6: Step…arrow_forward"Given the initial statuses of FLAGS -- OF = 0; ZF=1; AF=0; PF=1 and CF=0 and that AL=1F and BL=F1. Determine the statuses of the FLAGS after executing the instruction: ADD AL,BL" OF=1; ZF=0; AF=1; PF=0; CF=1 OF=1; ZF=0; AF=1; PF=1; CF=1 OF=1; ZF=1; AF=1; PF=1; CF=1 OF=0; ZF=0; AF=1; PF=1; CF=1arrow_forward
- The ADD and SUB operators affect all the status flags according to the result of the operation. Give the outputs of the following sequential operations in assembly language and determine whether overflow flag (OF) or carry flag (CF) will be signaled. al, al, al, al, al, al, mox OFFh add 1 mox 7Fh add 1 80h mox add 80harrow_forwardJAVASCRIPT description: to make the sum required by the instruction at the top ("Make the number..."), to do this, the players must drag & drop three of the five numbers provided in the yellow circles (two numbers are redundant) into the red circle. The red circle is empty in the beginning and its sum is 0 (not displayed), then each time a number is dropped in the red circle it is added to the sum and the sum is displayed in the red circle. - Randomly generated numbers between 0 and 99 are printed in the yellow circles - The player can drag and drop any number into the red circle. When dropped, this number is removed from the yellow circle- When a number is dropped into the red circle, it is added to the current sum of the numbers dropped in the red circle - Clicking the "Reset" button sets new numbers in the yellow circles and deletes the sum in the red circle - The instructions above the circles ask for the sum of exactly three out of the five random numbers in the yellow…arrow_forwardDesign the logic for a program that allows a user to enter 20 numbers then display them in the reverse order of entry. Modify the reverse display program so that the user can enter any amount of numbers up to 20 until a sentinel value is entered.arrow_forward
- Write an instruction that uses a segment override.arrow_forwardGiven the following code, draw the circuit that will be inferred. always @ (negedge clk) begin out <= in1 &in2; out <= in1|in2; out <= in1^in2; endarrow_forwardBased on the diagram below, what is the carry flag result "CF" after executing the mnemonic opcode/operand instructions? MOV AX, 200h MOV BX, 100h MUL BX AX 200h BX 100h a. The resulted carry flag CF is 11. O b. The resulted carry flag CF is 12. c. The resulted carry flag CF is 1. d. The resulted carry flag CF is 0. DX AX CF OFarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT