Publication 1762-RM001C-EN-P
5-18 Using the High-Speed Counter
HSC Mode 2 - Counter with External Direction
Blank cells = don’t care,
⇑
= rising edge,
⇓
= falling edge
HSC Mode 3 - Counter with External Direction, Reset, and Hold
Blank cells = don’t care, ⇑ = rising edge, ⇓ = falling edge
Table 5.6 HSC Mode 2 Examples
(1)
Input Terminals I1:0.0/0 (HSC0)
I1:0.0/4 (HSC1)
I1:0.0/1 (HSC0)
I1:0.0/5 (HSC1)
I1:0.0/2 (HSC0)
I1:0.0/6 (HSC1)
I1:0.0/3 (HSC0)
I1:0.0/7 (HSC1)
CE Bit Comments
Function Count Direction Not Used Not Used
Example 1
⇑
off
(0)
on (1) HSC Accumulator + 1 count
Example 2
⇑
on
(1)
on (1) HSC Accumulator - 1 count
Example3 off (0) Hold accumulator value
(1) HSC1 only applies to the MicroLogix 1500.
NOTE
Inputs I1:0.0/0 through I1:0.0/7 are available for use as
inputs to other functions regardless of the HSC being
used.
Table 5.7 HSC Mode 3 Examples
(1)
Input Terminals I1:0.0/0 (HSC0)
I1:0.0/4 (HSC1)
I1:0.0/1 (HSC0)
I1:0.0/5 (HSC1)
I1:0.0/2 (HSC0)
I1:0.0/6 (HSC1)
I1:0.0/3 (HSC0)
I1:0.0/7 (HSC1)
CE Bit Comments
Function Count Direction Reset Hold
Example 1
⇑
off
(0)
on
(1)
⇓
off
(0)
off
(0)
on (1) HSC Accumulator + 1 count
Example 2
⇑
on
(1)
on
(1)
⇓
off
(0)
off
(0)
on (1) HSC Accumulator - 1 count
Example3 on
(1)
⇓
off
(0)
on
(1)
Hold accumulator value
Example 4 on
(1)
⇓
off
(0)
off (0) Hold accumulator value
Example 5 on
(1)
⇓
off
(0)
on
(1)
⇓
off
(0)
Hold accumulator value
Example 6
⇑
Clear accumulator (=0)
(1) HSC1 only applies to the MicroLogix 1500.
NOTE
Inputs I1:0.0/0 through I1:0.0/7 are available for use as
inputs to other functions regardless of the HSC being
used.