1769-HSC to ML1500 help please.

loundeb2

Member
Join Date
Jul 2010
Location
ny
Posts
111
Hi,
I have a Micrologix 1500 AWA PLC and an HSC card in slot 2. I'm using 845H encoders with differential outputs. I've set thes up before with single TTL outs without a problem. The problem I'm having is when te count reaches 32767, it rolls over to -32767 and counts down. This repeats over and is unusable. I've attached a zip of the program. Please help me find what I'm missing so I can get the encoder/module to count to a DINT.
Thank You,
Lou
 
In ladder 3 - Rung 0 you copy the entire count for each counter (32 bits) into L12:4 and L12:0.

Then in rung 1 you start doing math using just the lower half of the count. After 32767 the next count is represented as a minus number if you only look at the lower part of the number as an integer.

Use the entire number as saved in L12:0. Of course at some point a steady up count will roll over. Decide if it will reach a limit first. If not decide what to do.
 

Similar Topics

I am working on a project that is reading the length of a given part to the PLC. Once the trigger if given I need to start counting pulses from a...
Replies
0
Views
1,891
Hi folks...I need some help getting a 1769HSC configured correctly. Here is what I need, in specific: I will need to use a directional counter...
Replies
0
Views
1,532
Hello all. I am having trouble setting up my HSC to count pulses from a prox switch. I have it wired to the prox and I see the .InputStateA0...
Replies
3
Views
1,369
Here is my hail Mary pass I have a wheel that produces 33 pulses per revolution. The RPM of that wheel will be anywhere from 25.21 to 62.7 Pulses...
Replies
14
Views
4,701
Hello all. I have an issue that keeps plaguing me. The system has a 1769-L24ER processor and a 1769 HSC card. I am using CH.0 for tracking...
Replies
0
Views
1,466
Back
Top Bottom