Reference no: EM132371761
PLC LAB 5: TIMERS PART 2
PROGRAM 1: Write a program that will make a RTO behave like a TON. Use NO1 to start your timer, and NC1 to stop it. When the timer is enabled, the RED lamp is on. While the timer is timing, the AMBER lamp should flash. When the timer is done, the GREEN lamp should be on solid.
PROGRAM 2: Sequential start your two CONTACTORS. Use a set of buttons for each contactor (N01/NC1 for CONTACTOR 1; NO2/NC2 for CONTACTOR 2).
Use two lights to show if the contactors are running (one light for each). If the E-STOP is pressed, all contactors should turn off and there should be a 5 second delay before they can be turned on again. During the delay The red lamp should flash. Red lamp should be solid when both Contactors are off.
PROGRAM 3:
While on SELECTOR A, pressing NO-1 should immediately start CONTACTOR 1. After 2 seconds, CONTACTOR 2 should start and CONTACTOR 1 should stop. After 2 more seconds, CONTACTOR 1 should re-start and CONTACTOR 2 should stop. BOTH CONTACTORS SHOULD ALTERNATE ON/OFF CONTINUOUSLY. GREEN lamp should be on solid while CONTACTOR 1 is running. RED LAMP should be on solid while CONTACTOR 2 is running. Switching to SELECTOR B should reset the sequence, allowing a restart once on SELECTOR A again.
PROGRAM 4:
Pressing NOPB 1 will simultaneously energize both contactors. Pressing NCPB 1 will instantly de-energize contactor 2. There should be 5 sec delay before contactor 1 goes off. When both contactors are off, Red light will be on. Amber light will be solid when contactor 1 is on and Green Light will be solid when contactor 2 is on. However, during the 5 sec delay, amber light will be flashing.
PROGRAM 5:
If you press NO-1, CONTACTOR 1 starts immediately and CONTACTOR 2 turns on after 3 seconds. When you press NC-1, CONTACTOR 2 turns off immediately, then CONTACTOR 1 turns off after 3 secs. If you press NO 2, CONTACTOR 1 starts immediately then CONTACTOR 2 turns on after 5 secs. By pressing NC-2 CONTACTOR 2 turns off immediately. Then CONTACTOR 1 turns off after 5 secs.
When both contactors are off, Red lamp should be on. When contactor 1 is energized using NO 1 Amber lamp is solid, after 3 secs green lamp is solid when contactor 2 is energized.
When contactor 1 is energized using NO 2 Amber lamp will be flashing, then 5 secs later green will be flashing when contactor 2 is energized.
Note: You should never have any two lamps on at the same time. Both programs that is, the 3sec and 5 sec should not run at the same time.
PLC LAB 6: COUNTERS
Program 1: An introduction to the CTU - Count Up Instruction
- Pushing NOPB-1 will increment Counter C5:0
-Every increment of Counter C5:0 will momentarily energize Amber light
-When Counter C5:0 reaches the count of 5, Green light will be energized.
- Pushing NOPB-3 will reset Counter C5:0.
While running the program, open your C5 COUNTER data file and pay attention to
when C5:0/CU (count-up bit) and C5:0/DN (counter done bit) close.
Program 2: Using a CTU
- Every press of NO-1 increments a CTU counter (C5:0) while on SELECTOR A
- When C5:0 is below the count of 4, RED lamp is solid
- As soon as C5:0 reaches a count of 4 and above, RED goes off, GREEN lamp is solid
- Turning to SELECTOR B resets C5:0 and starts AMBER lamp flashing, Red is off.
- Every press of NO-2 increments a CTU counter (C5:1) while on SELECTOR B
- When C5:1 is below the count of 4, AMBER lamp remains flashing
- As soon as C5:1 reaches a count of 4 and above, AMBER lamp goes solid
- Pressing NC-2 should reset counter C5:1.
Program 3: Creating and Using an Up-Down Counter
- Program 2 stays intact and should work AS - IS
- A CTD counter is added to decrement Counter C5:0
- Another CTD counter is added to decrement Counter C5:1
- NO-3 decrements C5:0 while on SELECTOR A
- NO-3 decrements C5:1 while on SELECTOR B
- Pressing either NC-1 or NC-2 should reset ALL counters
Program 4: Cascading Counters.
- While on selector A, after pushing NOPB 1 three times Contactor 1 will be energized. While Contactor 1 is energized, amber light will be flashing
- When Contactor 1 is on, pushing NOPB 2 twice will energize Contactor 2
- When Both Contactors are on, Amber and Green lights will flash alternately
- Pushing NOPB 3 Once while Contactor 1 and Contactor 2 are energized, will cause Both Contactors to turn off and Amber light and Green light will flash at the same rate while the Red lamp remains Off.
- By pushing any NCPB will de- energize any device that is energized and will also reset all the Counters.
- Red light should be on only when all other devices, including Amber lamp and Green lamp are off.
PLC LAB 7: (DAY-7) COMPARISON / MATH / OSR / JSR
Program 1: COMPARISON INSTRUCTION
- A TON Timer (T4:0) is timing on a continuous cycle of 9-seconds while on SELECTOR A
- From 0 - 2 seconds, RED is on
- From 3 - 5 seconds, Amber is on
- From 6 - 8 seconds, Green is on
- The cycle continues until the selector switch is turned to SELECTOR B
- Turning to SELECTOR B does steps 1-4 above, but now the lamps are FLASHING
Program 2: MATH AND COMPARISON INSTRUCTIONS
- Pressing NO - 1 increments a CTU counter C5:0
- Pressing NO - 2 increments a CTU counter C5:1
- On the incrementing counts of C5:0 OR C5:1, CONTACTOR 1 energizes
- NC - 1 decrements C5:0; NC - 2 decrements C5:1
- On the decrementing counts of C5:0 OR C5:1 CONTACTOR 2 energizes
- When C5:0 and C5:1 combine for a count of 6, RED lamp goes on solid
- When the difference between C5:0 and C5:1 is 2, the AMBER lamp flashes
- When C5:0 is twice as much as C5:1, GREEN lamp flashes
- NO -3 resets both counters
Program 3: TIMING AND COUNTING
- Pressing NO - 1 will begin flashing ALL lamps at the same rate
- After 5 seconds, ALL lamps will flash at a FASTER RATE
- Counter C5:0 monitors the flashing of GREEN
- Counter C5:1 monitors the flashing of AMBER
- Counter C5:2 monitors the flashing of RED
- When GREEN has flashed 15 times, GREEN goes solid and CONTACTOR 1 energizes
- When AMBER has flashed 25 times, AMBER goes solid and CONTACTOR 2 energizes
- When RED has flashed 35 times, RED goes solid and both contactors turn off
- NC-1 resets ALL counters and turns off ALL lamps
Program 4: COUNTING, COMPARISON AND One-Shot Rising (OSR)
- Program a latching motor starter on rung 1, using NOPB 1 and NCPB 1
- Rung 2 is to count pulses from the S4:3 status bit only if the motor is running.
- When the counter is between 25 and 50, the YELLOW light should be solid.
- The RED light should be on if the motor is off.
- The GREEN light should flash if the motor is running.
- When the counter is between 50 and 99, the YELLOW should flash, alternating with the GREEN light.
- When the counter reaches 100, the motor should stop.
- Pressing start should reset the counter and run the motor again.
- If the operator is holding down the start button, the counter will constantly be resetting, and you need to fix that.