Micro 1400 High Speed Counter Setup - Please help!

TimD

Lifetime Supporting Member
Join Date
Aug 2007
Location
New Hampshire
Posts
235
Hello,

I have used counters to totalize flow before, but never the high speed counter.

I have a flowmeter, which has a pulse range of say, 0 - 10,000 pulses per second. I am using the dedicated high-speed pulse inputs (not 4-20ma) in the controller.

Fortunately, the Micro 1400 has 6 available 100 khz counters, which easily cover the above range.

I have the Micro 1400 Reference manual, but after dozens of pages explaining the Function File for HSCn, it only lists two instructions. One is HSL, the other is RAC. RAC is very self-explanatory, it resets the accumulator. HSL is a bit worrisome to me, since it's listed as an output.

My question is, How do I set up the HSC for proper reading, and TOTALIZATION? I will be totalizing gallons of liquid used, and I can figure out the scaling OK, but never set this kind of thing up.

Please help!!! I'm using Logix 500. Many Thanks!

Tim
 
Last edited:
TimD - your application will be very similar to the one shown except that, in the STI program, you will be adding the HSC total (or more likely a scaled version of it) to a grand accumulated total before resetting the HSC.
 
First, Thanks for the replies!

So you guys are saying, that I will be resetting the accumulator every interval, I'll call it every second. Before I do the reset, I am storing the totalizer value somewhere (probably a float?) since I want to 'extend the life' of the totalized value.

I see the STI function file, but there is only one, does this matter that I have six hsc inputs?

I'll check into the docs on STI and get back to you. I'm hopeful now! hope to talk more tomorrow.

Thanks Again,

Tim
 
OK, got everything set up exactly as described, then math overflow every time.

The flowmeter isn't even moving and I get an accumulated total greater than LONG after 1000msec. (2,147,483,647)

I set up both HSC2 (input currently wired to) and STI:0, as well as an additional LAD file (3) for the STI instructions.

I'll keep looking...
 
Knew it was something dumb.

OK, now pgm runs, but I do not see flowmeter action, i.e. no totalization.

I'll re-check wiring. Is there any other instructions to read the input? Or should I see an accumulated value in mou HSC input file (while in RUN) that resets every second?

Thanks!!
 
Last edited:
In the I/O config (while offline) check the CPU - Adv Config - Embedded I/O Configuration (I'm hoping this is similar to the 1100 since I don't have update RSLogix) - Input Filter. Make sure it is a short enough time to allow the pulses. You'll ahve to re-download if changed.
 
Hi Bernie, thanks, I changed the filter to 5us (lowest I could).

I verified that I have a current sinking device wired appropriately. I do not see any blinking on the controller's input LCD display under the input number. I'll go with the manual wire trick to see if I can energize the input and get the acc to increase that way. If so, then I have to look harder at these flowmeters...

Thanks!
 
Got It!

Need a 2.2k ohm pull up resistor for current sourcing, even though I can wire the controller for sourcing or sinking.

It appears my enclosure was wired for sourcing, so I don't know why the resistor is needed. Oh well, it works accumulating now!

Now I have to figure out how to scale these inputs...
 
Dear All:

I need to measure encoder pulses, I have mIcrologix 1400 + Analog i/p card 1762,
my first question is, I need to put my encoder wire in Micrologix 1400
or in Aalog i/p card 1762 !!

regards,
hem
 

Similar Topics

Does the 1100 only have 1 high speed counter, but it can have multiple inputs? And so then the 1400 has 6 HSC and you have a choice of multiple...
Replies
1
Views
1,718
Hi! Last few I've been trying to send message from MicroLogix 1400 to Micro 850. Unfortunately every time I failed :banghead:. Did someone tried...
Replies
6
Views
3,192
Hello, There was a mix up in information on some redeployed equipment and two of the micro 1400's that came in were hooked to 120v when they...
Replies
9
Views
1,961
I am trying to exchange data (N registers) to and from a Control Logix PLC. I am programming the messages in the Control Logix program, to...
Replies
7
Views
2,171
Error: "Program in processor has changed causing offline state. Do you want to upload?" RSLogix500 V8.10 Micrologix 1400 Customer wants to add...
Replies
8
Views
2,289
Back
Top Bottom