MicroLogix 1400 HSC

roxusa

Lifetime Supporting Member
Join Date
Nov 2008
Location
NJ
Posts
994
Is it possible to set up the HSC in the 1766-L32BXB as a ring counter.
So it will roll over to 0 counting up and continue to count up that direction,
and roll back to that number when counting down and 0 is reached.
This would simplify my programming. Thanks
 
It looks like I need to use the OVF & UNF in conjunction with some of the other settings
to accomplish this, I am not That familiar with the HSC I have only set them up a few times
for standard encoder up/down counting
 
I don't think you can change the counting direction on the fly - those bits are read only and would be set in the function file directly.

A few ideas:
Split the encoder signal to another input and set up two high speed counters. In your case you could set the 2nd counter to always count down. You'll have to set your logic to enable/disable the counters based on events, presets reached, etc.

If you can't do two counters you might have to add some other logic that interprets the high speed accumulator differently based on your count direction. Use the logic to create some high or low targets and then compare the high speed counter's accumulated value against those targets.

If you need it a bit faster than the normal scan time, set a 1ms STI to do the comparisons.
 

Similar Topics

Hi, everyone I’m working on a registration project where I’m counting encoder pulses between registration marks. I’m expecting to see around 1800...
Replies
2
Views
446
I am trying to program a Micrologix 1400 to control a beer keg filler using an IFM SM6001 flow meter. The meter will be set up for a pulse...
Replies
5
Views
1,854
Hi everyone first of all. This is first question in the forum. I am using HSC application. I'm reading A and B pulse count. 1 round of the motor...
Replies
12
Views
4,390
Is it possible to add a HSC onto a MicroLogix 1400 processor? I am using RSLogix500 and the toolbar has the HSC button greyed out. Is there any...
Replies
5
Views
4,174
I am testing a program using a 1766-L32BXB I have a single ended Encoder attached to I:0/0 with a HSC:0 set up. the Encoder is on a 6" Diameter...
Replies
10
Views
2,371
Back
Top Bottom