Micrologix Lab 4
Micrologix Lab 4
1100
RSLogix 500 LAB#4
• We are going to configure and program a High Speed Counter for Mode 2-
Counter with external direction
• The HSCNT will control immediate outputs when the presets are reached.
• Timing Diagram:
low
Speed high
2.Select Controller
– Enter Processor Name “M-LAB4”
– “Click” on “Bul.1763 MicroLogix 1100 Series A
– (Either double click, or select and then click
OK)
1,3
3.Save Program Files
– Select “File > Save As”
– Type MicroEconomix LAB 4 in the “File name”
–
box
Click “Save”
2
– Click “Yes” when asked to change the
processor name
– Click “Ok” for revision note box
4. Function Files
– Double click on the Function File
in the Project tree
4
5.HSC Function File
– Enlarge the HSC0 Function File
to see all the appropriate
Parameters
5
6.HSC Parameters
– Enterthe following Values to
define the HSC0 signals.
– Program File Number: 10, this
defines the subroutine that will be
called (executed) when the HSC0
counts to High/Low preset or
Over/underflow
– Auto start: 1, This defines if the
HSC function automatically starts 6
whenever the controller enters the
run mode
– Counting Enabled: 1, Used to
enable or disable HSC
– HSC Mode: 2, sets mode to counter
w/external direction
– Output Mask: 48h, defines the
HSC control of outputs 5 and 6
– High/Low presets values
– High preset = 17
– Low preset = 0
– Over/Under flow values
– Overflow = 21
– Underflow= -21
7
8
16
19.Functional Test
With input I:0/1(external direction) off, Push
button I:0/0 (high speed input) on. Verify the
HSC accumulator is counting up.
At 17 --> output O/4 turns ON
At 20 --> output O/5 turns ON, output O/4
turns OFF
Push on I:0/1(external direction), with I:0/0
(high speed input) off. Verify the HSC
accumulator is counting down.
At 3 --> output O/4 and O/5 turns ON
At 0 --> output O/4 and O/5 turns OFF