Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
18 views

Lesson 3 Worksheet - Programming Foundation

Studio 5000

Uploaded by

Nathan Ombui
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Lesson 3 Worksheet - Programming Foundation

Studio 5000

Uploaded by

Nathan Ombui
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Programming Foundation

Lesson 3 Worksheet

Introduction
The milestone for Lesson 3 is to add timer and counter logic to your generator start/stop
program from Lesson 2. The timer and counter logic will be used to trigger lights related to the
generator.

Failure to Start/Engine Maintenance Alarm Logic


We will be using a TON timer and a CTU counter in this milestone to create our alarm logic. We
will use the TON timer to detect when the generator has failed to start and we will use the CTU
counter to detect when the engine has run 50 times so that we can illuminate a light that
indicates that the generator needs maintenance. We will then add rung that will allow you reset
the maintenance light when a reset button is pushed.

Note: It is not common to see a generator application with a maintenance light for a certain
amount of runs, however, this type of logic is useful for other machines on which periodic
maintenance is required.

Start Failure Alarm Logic


1. Open RSLogix Micro
2. Expand the window
3. Open the program you created for Lesson 2’s milestone
4. Open ‘LAD 3’ and add 2 new rungs
5. Add a XIC, XIO and a TON (Timer/Counter tab) to the first rung
6. Address the XIC to input O:0/0, the ‘Start Gen Relay’ output
7. Address the XIO to input I:0/2, the ‘Engine Running’ input
8. Address the timer to T4:0
9. Label it ‘Start Failure Timer’
10. Choose whichever timebase you prefer but make sure that preset is set such that
the timer will time for 30 seconds
11. On the second rung you added, add a XIC and an OTE
12. Address the XIC to T4:0/DN (the done bit of the ‘Start Failure Timer’)
13. Address the OTE to O:0/3
14. Label it ‘Start Failure Alarm Light’
15. Download to emulator
16. Go to run mode
17. Test logic by toggling the ‘Stop Push-button’ to ensure the XIO is closed, ‘Start
Push-button’ to start the gen, then toggling the ‘Start Push-button’ back to off. Be
sure that the ‘Engine Running’ input is off and that the ‘Start Gen Relay’ is on

1
Programming Foundation

such that the rung-in condition to the timer is true. The timer should time for 30
seconds and then turn on the ‘Start Failure Alarm Light’ output. Toggle the ‘Stop
Push Button’ to reset the alarm.

Engine Running Indication Logic


1. Take the program offline to make additions to logic
2. Add three more new rungs
3. Add a XIC and a CTU (Timer/Counter tab) to the first rung
4. Address the XIC to I:0/2 ‘Engine Running’ input
5. Address the counter to C5:0
6. Label it ‘Engine Run Maintenance Counter’
7. Set the preset value to 50 (or 5 for quicker testing)
8. On the second rung you added, add a XIC and an OTE
9. Address the XIC to C5:0/DN (the done bit of the ‘Engine Run Maintenance
Counter’
10. Address the OTE to O:0/4
11. Label it ‘Engine Run Maintenance Light’
12. On the third rung you added, add a XIC and a RES (Timer/Counter tab)
13. Address the XIC to I:0/3
14. Label it ‘Maintenance Reset Button’
15. Address the RES to C5:0, the ‘Engine Run Maintenance Counter’
16. Download to emulator
17. Test logic by toggling the ‘Engine Running’ input on and off to increment the
counter. When the accumulator reaches 5 the ‘Engine Run Maintenance Light’
should turn on. To reset the counter and the maintenance light, toggle the
‘Maintenance Reset Button’ on

Important Simulating Note: Please note that since we are emulating a PLC with the emulator
software, we do not have any way to simulate inputs turning on and off EXCEPT to toggle the
bits manually. Therefore, when we want to see what happens in our program when an input
changes state, we will have to simulate it by manually toggling the bit on or off.

2
Programming Foundation

Useful Hints:

● Common error seen 'The processor is not supported by RSLogix Micro Starter Lite'. If
you see this. It means it has not seen the Emulator. So I would recommend you save
your program and go through the step by step start-up again in accordance with
Worksheet 1
(https://www.myplctraining.com/products/the-confident-plc-programmer-method-rockwell/
categories/1986972/posts/7530066) From page 11 onwards. This should resolve this
issue.

You might also like