Micrologix Lab 2
Micrologix Lab 2
1100
RSLogix 500 LAB#2
I:0/0 O:0/0 • We are going to take your program from Lab #1,
][ ( )
modify two rungs, and create some new program
I:0/1
]/[
I:0/2
][
C5:0/DN
]/[
O:0/1
( ) logic.
O:0/1
][ TIMER ON DELAY
Timer
Time Base
T4:0
1.0
(EN) they can be used to provide unique control
Preset 10 (DN)
Accum 0
capabilities.
O:0/0 CTU
COUNT UP (CU)
• The last thing we will do is program a Limit
][ Counter C5:0
Preset 10
Accum 0 (DN)
I:0/3 C5:0
command. The limit command is one of several
][ ( RES )
O:0/3
powerful comparison instructions available in the
LIM
LIMIT TEST ( )
Low Limit
Test
High Lim
3
T4:0.ACC
7
MicroLogix controller.
I:0/0 O:0/0
][ ( )
O:0/1
][
3. Add XIO O:0/1
T4:0/DN Instruction toO:0/2
][
rung 0001] [ ( )
5
O:0/1 TON
][ TIMER ON DELAY
Timer T4:0
(EN)
Time Base 1.0
5. Create a New Rung Preset 10 (DN)
Accum 0
O:0/1 TON
7b 7a
][ TIMER ON DELAY
Timer T4:0
(EN)
Time Base 1.0
7. Add the Timer Instruction
( )
Preset
Accum
10
0
DN
O:0/0 CTU
][ COUNT UP
Counter C5:0
(CU)
Preset 10
8. Create a New Rung Accum 0 (DN)
– Click on the “User” tab.
– Click, hold and Drag the “New Rung” button over
“0004”. When you see a green box, release the mouse
8
button.
I:0/3 C5:0
11. ][
Create a New Rung
( RES )
– Click on the “User” tab.
– Click, hold and Drag the “New Rung” button
over “0005”. When you see a green box, release
the mouse button.
16b
18
23
24
25
PROGRAM OPERATION
Rung 0- Push button #0, output #0 will
turn ON and the counter will count up
by 1. Push button #0 10 times, watch
the counters accumulator. When the
preset and the accumulator are equal
the counter will enable the done bit
and will disable output #1 as well as
the timer. Reset the counter with input
#3.
Rung 1- Push button #2 (start button),
output #1 will latch ON and the timer
will start timing. Push button #1 (stop
button) will turn OFF output #1 and
will stop & reset the timer.
RUNG 2- The two inputs on rung 2 are
conditions of rungs 1 and 4. The
output (output #2) is a condition of
these two inputs. So each outputs of
rungs 1 and 4 must be true to turn on
output #2. When the timer reaches 10
seconds, output #2 will turn ON. Rung 5- Push button #3 will reset the
Rung 3- The TON input is a condition of counter back to 0 and re-enable
rung 1. output #1 and the timer.
Rung 4- The CTU input is a condition of Rung 6- While the timer accumulator
rung 0. is between 3 and 7 seconds, the LIMit
instruction will turn output #3 ON.