PLC Lab #4 Event Sequencing
PLC Lab #4 Event Sequencing
PLC Fundamentals
LABORATORY MANUAL
Lab # 4
Event Sequencing
1
Objective 1: Introduction to event sequencing
Most automatic machines perform a number of actions in order to accomplish the task for
which they have been designed. The specific order in which these actions is performed is
called a sequence and each action is called a sequence step or event.
One method that can be used to create the sequence of steps is an event-driven sequence.
This method uses an input device of some type to sense that one step has been completed and
signal the next step to begin. Logic is then used in the PLC to cause each step to occur by
turning output devices either ON or OFF, as shown in Figure 4-1-1.
Each step of the sequence follows this same pattern:
* An input is activated.
* The program logic decides what actions to take.
* The action for that step is performed.
2
Figure 4-1-1. Graphical Logic Process of Reciprocating Cylinder Sequence
Procedure Overview
In this procedure, you will enter and run the program just described that performs
a single-cycle cylinder reciprocation sequence. To do this, you will set up and use
the 17200 Electro-pneumatic Application Panel.
1. Perform the following sub-steps to prepare the PLC trainer for use.
1.1 Make sure that all power to the PLC and its components is OFF at this time.
1.2 Mount the 17200 Electro-pneumatic Application Panel on the top of the PLC
Console and Connect the 17203 Interface Cable Assembly.
1.3 Turn ON switch 2 of the I/O Simulator Panel. All other switches should be OFF
at this time. Switch 2 will simulate a N.C. stop pushbutton.
7. Enter and then verify the ladder logic of program file MAINPROG so that it appears as
shown in Figure 4-1-2 (next page).
3
Figure 4-1-2. Single-Cycle Single Cylinder Reciprocating Program
NOTE
Switch 1 and switch 2 are I/O simulator switches that will take the place of PB1 and
PB2
in this program. To test this program, you will use the I/O Simulator Panel and
the Electro-pneumatic Application Panel.
8. Save your PLC project to diskette as file name and processor name ACT51.
10. Place the PLC program into the REMOTE RUN mode.
11. Perform the following sub steps to test your new PLC program.
11.1 Examine the PLC program on the computer monitor. You should observe that XIC
instructions O:2/0 and I:1/0 are false and all other instructions are true.
These causes output O:2/0 to be OFF.
11.2 Turn I/O simulator switch 1 ON/OFF (this simulates a momentary pushbutton)
to start the sequence. Output O:2/0 should turn ON and cylinder 1 should begin
to extend. Also, notice that seal-in instruction O:2/0 is now closed.
As the cylinder leaves 1LS, input I:1/2 should turn OFF.
When the cylinder reaches 2LS, input I:1/3 should turn ON and output O:2/0
should turn OFF. The cylinder should begin to retract.
12. Repeat step 11 several times to become more familiar with the operation of the program.
During one of the cycles, try turning switch 2 OFF/ON (this simulates a momentary
stop pushbutton). You should observe that the cylinder immediately retracts and stops.
14. Print out a copy of your PLC program and place it in your portfolio.
4
Skill 1: Design a reciprocating actuator sequence PLC program.
Procedure Overview:
In this procedure, you will design a PLC program that uses a double-solenoid DCV to
control a cylinder. This is a variation of the program you used in Activity 1.
The general sequence, I/O diagram and power diagram (Figure 4-1-3) are as follows:
General Sequence:
* When switch 1 is turned ON/OFF, the cylinder will extend.
* When the cylinder is fully extended, actuating 5LS, it will retract.
* A double-solenoid valve was selected for the application so that the punch will
immediately stop if the valve loses its electrical control signal.
* When the cylinder is fully retracted, it will stop.
* Turning switch 2 off at any time will cause the cylinder to immediately retract
and then stop.
5
2. Use the information from step 1 to develop your PLC program.
Hint: This program is similar to the single solenoid program you just tested except that
you will need to turn on Sol 2B as well as turn OFF Sol 2A to retract the cylinder.
3. Perform the following sub steps to prepare the PLC trainer for use.
9. Enter the PLC program that you developed in step 2 into program file 2 (MAINPROG).
10. Verify your PLC project to check for errors. If any errors exist, correct them.
11. Save your PLC project to your diskette as file name and processor name AP51
.
12. Download your PLC project to the processor and go online.
13. Use the PLC programming software to place the PLC into the REMOTE RUN mode.
15. Repeat step 14 several times to become more familiar with the operation of the program.
During one of the cycles, try turning switch 2 OFF/ON. You should observe that
the cylinder immediately retracts and stops.
16. Use the PLC programming software to place the PLC in REMOTE PROGram
mode and go offline from the processor.
17. Print out a copy of your ladder diagram and place this in your portfolio. It will be
6
used in your assessment.
SELF REVIEW
1. Each action in a sequence is called a __________ or __________ .
2. An event-driven sequence uses _________ to determine when each step has been
completed.
7
Objective 2: Continues Cycle Logic
Procedure Overview:
Function of an internal output instruction:
Internal output instructions look and operate just like the OTE instructions that you have
already been using. They can control XIC and XIO instructions with the same address.
They do not, however, directly control the outputs of a PLC. Instead, internal output
instructions are used to provide additional control logic to the PLC program.
Two applications of internal output instructions include:
* Program Memory Logic
* Program Interlocks
The addressing of the internal output instruction starts with a B, as shown in the example
of Figure 4-2-1.
For the A-B SLC 500, the available addresses for internal output instructions (default setup)
are B3:0/0-B3:255/15. This means that there are 4096 internal bits available for you to use.
8
are directly turned on by the instruction.
In the procedure, you will enter and run the PLC program just described that continuously
cycles a single actuator.
1. Turn ON switch 2 on the Simulator Panel. All other switches should be OFF at this time.
7. Enter the ladder logic of program file MAINPROG so that is appears as shown in
Figure 4-2-3.
8. Verify your PLC project to check for errors. If any errors exist, correct them
9. Save your PLC project to diskette as file name and processor name ACT52.
9
10. Download your PLC project to the processor and go online.
11. Use the PLC programming software to place the PLC in the REMOTE RUN mode.
12. Perform the following sub steps to test your new PLC program.
12.1 Take a moment to look at the condition of the program on the computer monitor.
Only XIC instructions I:1/1 and I:1/2, should be true (highlighted).
12.2 Turn switch 1 ON and then OFF again. The cylinder should extend and retract
continuously.
12.3 Turn switch 2 OFF and then ON again. The cylinder should retract completely
and then stop.
13. Repeat step 12 several times to become familiar with the operation of a PLC continuous
cycle program.
14. Use the PLC programming software to place the PLC into REMOTE PROGram mode
and go offline from the processor.
15. Print out a copy of the ladder program and place this in your portfolio.
SELF REVIEW
2. A continuous cycle sequence program uses a _______________ to make the program start
another cycle.
10
Objective 3: Multiple Actuator Event Sequencing.
The program technique, which controls a single actuator event-driven sequence, can also be
applied to machines with multiple actuators. A common example is the clamp and drill
application, shown in Figure 4-3-1. In this application, a clamp cylinder holds the part in
place while the drill cylinder extends to drill the part.
Procedure Overview
In this procedure, you will enter and run the PLC program just described that performs
the clamp and drill operation sequence.
1. Make sure that all of the I/O Simulator Switches are OFF at this time.
11
4. Create a new PLC project.
7. Enter the ladder logic of program file MAINPROG so that it appears as shown in
Figure 4-3-2.
8. Verify your PLC project to check for errors. If any errors exist, correct them.
9. Save your PLC project to diskette as file name and processor name ACT53.
11. Use the PLC programming software to place the PLC in REMOTE RUN mode.
12. Perform the following sub steps to test your new PLC program.
12.1 Look at the condition of the program on the computer monitor. Only input I:1/2
should be ON.
12.2 Turn switch 1 ON and then OFF again to start the sequence.
Observe the operation of the program. It should perform the following sequence:
12
13. Repeat step 12 several times to become familiar with the operation of a clamp and drill
program.
14. Use the PLC software to place the PLC into REMOTE PROGram mode and go offline
from the processor.
15. Print out a copy of the ladder program and place this in your portfolio.
Skill 1: Design a continuous cycle clamp and drill sequence PLC program.
Procedure Overview:
In this procedure, you will modify the PLC clamp and drill program used in Activity 1
to make the sequence cycle continuously after pressing the start pushbutton.
The general sequence (Figure 4-3-3) and I/O diagram (Figure 4-3-4) are as follows:
13
Figure 4-3-4. I/O Diagram
3. Turn ON switch 2 on the Simulator Panel. All other switches should be OFF at this lime.
9. Enter the PLC program that you developed in step 2 into program file 2 (MAINPROG).
10. Verify your PLC project to check for errors. If any errors exist, correct them.
11. Save your PLC project to your diskette as file name and processor name AP52.
13. Use the PLC programming software to place the PLC into the REMOTE RUN mode.
14
14. Perform the following sub steps to test the operation of your program.
14.1 Turn switch 1 ON and then OFF . The system should perform the clamp and drill
operation, except that it should repeat continuously.
14.2 Turn switch 2 OFF and then ON again. The sequence should stop after it has
completed its current cycle.
15. Use the PLC programming software to place the PLC in the REMOTE PROGram mode
and go offline from the processor.
16. Print out a copy of your ladder diagram and place this in your portfolio. It will be used in
your assessment.
SELF REVIEW
3. The __________ diagram shows how the machine will react if control power is lost.
4. The drill cylinder is retracted by turning _____________ (ON/OFF) the solenoid valve
using a _____________ instruction.
15