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 3RQ
Explanation of Solution
ControlLogix ladder rung with a math instruction:
The ControlLogix ladder rung for multiplying the value of “Cases” with constant value “24” is given below:
Explanation:
From the above diagram, the math instruction is used for the given ControlLogix ladder rung is “MUL” instruction.
- When the “Push_Button_1” or “Push_Button_2” is true, the “MUL” instruction is executed...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Example
· Using AVR microcontroller, write a code for a servomotor.
V The servomotor (PCO) is cohtrolled via three pushbuttons of
the User Interface module.
V By pressing down S1 (PD0) the servomotor moves one step
to the right.
V By pressing down S3 (PD3) , the servo motor moves one
step to the left and S2 (PD2) makes the servo motor to
move to the initial (middle) position.
V The position of the servomotor is displayed live on the 7-
segment display (port B) as each number corresponds to
10 degrees of the turn: middle position equals 5.
O degrees
90 degrees
135 degrees
180 degrees
45 degrees
1ms
1.25ms
1.5ms
1.75ms
2ms
Angle positioning depends on the length of the pulse
"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=1
C 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…
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
- Write / write a two-motor control program so that when the ignition is closed, the first motor runs and when the ignition is opened The second engine is running?arrow_forwardS-O-S is an internationally recognized distress signal. It consists of a sequence of 3 short signals, followed by 3 long signals, followed by 3 short signals, and then a pause. This pattern is then repeated over and over (indefinitely). Write an Arduino program that blinks the onboard LED in this manner. Your challenge is to turn the LED on no more than 3 times in the loop function.arrow_forwardCreate a VBA program that computes for the Computes for the Areaand Perimeter of a Rhombus. The output will be displayed in a message box.arrow_forward
- Given the following code, draw the circuit that will be inferred. always @ (negedge clk) begin out <= in1 &in2; out <= in1|in2; out <= in1^in2; endarrow_forwardImplement the statement if ((a==b) && (c==d)) a++ ; using ARM instructionsarrow_forwardusing c++ language, please use just ( while ) instruction.arrow_forward
- 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.arrow_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_forwardThus, without the RET instruction, a procedure:arrow_forward
- Write a C program that will display the number of pushbutton on the rightmost 7-segment display digit when the pushbutton is pressed. USE C PROGRAMINGarrow_forwardQuestion Write ONE (1) program and execute it to the simulator according to the information given below: -. (a) Make a main program to count down to seven segments from 99-00. (b) If the RST5.5 button pressed, the seven segment will show “HELLO". (c) If the TRAP button pressed, the counter on seven segments will reset to 00. Your answerarrow_forwardWrite a Verilog code with testbench for 16-bit up/down counter with synchronous reset and synchronous up/down.If up/down is set the counter is up counter and if it is not set, the counter is a down counter. Execute the module code, testbench code, and the simulation results. PLEASE EXECUTE CODE IN VERILOGarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L