Proximity Sensors and PLC Introduction
Proximity Sensors and PLC Introduction
Proximity Sensors and PLC Introduction
Lab 9-1
Proximity Switch
Spring 11
Lab 9-2
As you bring different targets to close proximity (a relative term) to the different switches, the output voltage Vout should change from about 12V (not activated) to about 0V (activated). Some of the switches may operate in the opposite manner where the voltage changes from about 0V (not activated) to about 12V (activated). For each of the switches, determine the effective sensing distance with each different target. There will be 6 to 8 target objects to be detected for each of the switches. Targets will be made of a variety of materials, such as steel, aluminum, plastic, wood, Styrofoam, etc.
Sensing distance
For each switch and object combination, 1. Record the approximate distance at which the object is sensed, i.e., when the output voltage changes from the not activated state to the activated state. 2. Record the activated output voltage and the not activated output voltage from the proximity switch for each target. Outside of Lab: 3. Create a table that clearly presents the information requested above. 4. For each switch, write a brief sentence or two that describes your observations of the strengths and weaknesses of each switch. (There will not necessarily be a great difference between some of the switches.) 9.2 PLC Wiring Diagram 1. Use the PLC program (ME360_Test_Stand) to verify the solenoid and limit switch assignments shown in Figure 3. Pushbutton and indicator light assignments are shown in Figure 4. Note that the red LED light X0 on the PLC is on when the horizontal cylinder controlled by Y1 is retracted. Note that the red LED light X1 on the PLC is off when the horizontal cylinder controlled by Y1 is retracted. Press and hold C41 to turn on output Y1 and extend the horizontal cylinder. Note that the red LED light X0 goes off when the horizontal cylinder first moves and that the red LED light X1 goes on when the horizontal cylinder is fully extended.
Spring 11
Lab 9-3
Observe the operation of the remaining limit switches and red LED lights as the other solenoid valves connected to Y2 and Y3 are activated. Notice the operation of the fan as output Y11 is activated.
2. Make a rough sketch of the PLC wiring diagram (connection of limit switches, pushbuttons, solenoids, etc. to the PLC), including pushbuttons and limit switches, for the components used on the PLC test stand. Outside of Lab: 3. Use the PowerPoint files provided on the ME 360 website to create a PLC wiring diagram for the report, draw one by hand neatly with a ruler or straight edge, or draw one in AutoCAD. Include all of the components used on the PLC test stand.
X0 (NO) Controlled by Y1
X7 (NC)
X6 (NC)
X3 (NO) Controlled by Y2
Controlled by Y3
X2 (NO)
Spring 11
Lab 9-4
Read from internal contacts C40 - C50 to read status of the pushbuttons
Figure 4. Pushbutton and Indicator Light Assignments 9.3 Pneumatic System Schematic 1. Make a rough sketch of the pneumatic system schematic diagram for the PLC test stands. Include all of the components mounted to the test stand, including the ones mounted on the back. Be sure to include the flow control valves (shown in Figure 5) mounted to each of the four cylinders. Draw the rodless cylinder (mounted on the lower left side) as a double-acting, double-ended cylinder. Note that the schematic symbol for many of the components is given on the component itself. Figure 5. Pneumatic Valves
Outside of Lab: 2. Use the PowerPoint file provided on the ME 360 website to create a pneumatic system schematic diagram for the report, draw one by hand neatly with a ruler or straight edge, or draw one in AutoCAD. For each of the remaining 4 assignments (#9.4 - #9.7): Draw the ladder logic diagram for the exercise (or make screenshots) and give a thorough description of the operation of each configuration of the program. Be sure to give a functional description of what is happening to the pneumatic cylinder as well as a description of the operation of the PLC ladder logic program. Answer all questions asked for each assignment.
Spring 11
Lab 9-5
9.4 PLC Program - Sample1 Goal: Create the program shown below and name it Sample1. Page references in bold refer to the DirectSoft 5 User Manual Quick Start guide.
Steps: 1. Start a new ladder diagram (called a project in DirectSoft) (p. 2-12) 2. Enter the Edit Mode for the ladder diagram (2-15) 3. Insert and edit the individual elements in rung #1 of the ladder diagram (2-16) a. N.O and N.C. contacts (2-17) b. Output coils (timers and counters go here as well) (2-18) 4. Create the parallel row below rung #1 (OR constructs) (5-13) 5. Insert and edit the individual elements in rung #1b of the ladder diagram 6. Add the End rung below the two rungs already created (2-19) (Note that a Fatal Error occurs if program does not have the End rung!) 7. Accept and save the program (2-20) 8. DirectSoft 5 will compare the program you have just written and are saving to the one currently stored on the PLC, so the Online/Offline Differences dialog box will appear. Select Use Disk to continue. (2-25) 9. Read the top of p. 2-26 and download the program to the PLC by clicking on the (Write Program to PLC) icon. (2-26) 10. Place the PLC in the Run mode (2-26, 2-27) 11. Check for Run mode status at the bottom of the screen (2-27) 12. Monitor the status of the inputs and outputs on the PLC screen (2-28)
Spring 11
Lab 9-6
13. Execute the program several times (by pressing the C40 pushbutton to start the program and C41 to stop it on the operator interface panel). 14. Describe what the PLC program and the pneumatic system do when you press the buttons this goes in your report! 15. Review the procedure for drawing and/or deleting connecting lines (5-19) 16. Review the procedure for selecting rungs for deleting, cutting, or copying (5-19) 17. Return to the Edit mode (step #2) and modify your Sample1 program by changing the location of the NO contacts X0 as shown below. Accept your edits (step #4), then download the program to the PLC (step #6) and execute the modified program several times.
18. Describe what the modified PLC program and the pneumatic system do when you press the buttons this goes in your report! 19. Hold the NO pushbutton C40 down for 3 seconds. How does program Sample1 work now? Complete the DirectSoft 5 User Manual Quick Start guide by reviewing the remaining items. 20. Summary of offline toolbar components (4-2) 21. Summary of online toolbar components (4-5) 22. Print ladder diagrams (8-3) (Note that printing to an Adobe PDF file is the only option)
Spring 11
Lab 9-7
Timers (TMR) and Counters (CNT) can be found by selecting the Box icon in the lower right-hand corner of the screen when in the Edit mode.
9.5 PLC Program Sample2 Create the program shown below and name it Sample2.
Accept your edits, save your PLC program to disk and download the program to the PLC Execute the program several times and adjust the flow controls on the Y2 cylinder such that it takes about 1 to 1.5 seconds to fully extend and 1 to 1.5 seconds to fully retract. If you are not sure about how to adjust the flow controls ask the lab monitor. Describe what the PLC program and the pneumatic system do when you press the buttons - this goes in your report! Execute the program several times and adjust the speed of the Y2 cylinder such that it takes about 4 seconds to fully extend and 4 seconds to fully retract. What does the program do? Change the NO contacts X3 to a N.O. contact Y2. How does program Sample2 work now? this goes in your report!
Spring 11
Lab 9-8
9.6 PLC Program Sample3 Create the program shown below and name it Sample3.
Download the program to the PLC and execute several times. Describe what the PLC program and the pneumatic system do when you press the buttons - this goes in your report! Does it matter when in the cycle you press the NC pushbutton C45? Change the NC contacts X1 to NO contacts. How does program Sample3 work now? this goes in your report!
9.7 PLC Program Sample4 Create the program shown below and name it Sample4.
Download the program to the PLC and execute several times. Describe what the PLC program and the pneumatic system do when you press the buttons - this goes in your report!