Counter to 1769-IQ16f

TLK1980

Member
Join Date
Feb 2017
Location
Minnesota
Posts
10
Hello,

I'm trying to program a counter with a 15ms duty cycle to a 1769-IQ16F and I'm not getting all of the counts. Can someone explain to me how this should be done?

Egg Counter.PNG
 
Where is this logic being executed? In a periodic task? (recommended) on in the main task? Your scan time may be longer than the cycle rate. Plus, I think it takes one scan to reset the CTU, so you loose that one scan of input.
 
Both methods you programmed should work just fine, provided your scan time of the routine AND the RPI of the IQ16 module are less than half the period between input pulses, and the pulses stay high long enough for the scan to see them, but not so long that they're still on during the next scan.

Are you saying the period between pulses is 15ms?

Can you verify any of those settings?
 
Last edited:
This logic is in a periodic task that is called every 10ms and the RPI is set to every 2ms. The max count should be 40 eggs a second. It still is missing counts, I can see them on the input card indication light but they are not adding to my egg count array.

Egg Counter.PNG
 

Similar Topics

Hi Guys, I have a 1769-L24-QBFCB1 that has the OK light flashing on the embedded counter module. The manual states it is a resettable fault, but...
Replies
0
Views
37
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,665
Hi I'm newish to the PLC world and have a little test/learning rig put together at work. I have a micrologix 1100 and a 1769-L24ER-QBFC1B, I also...
Replies
1
Views
1,558
i need some help with this configuration .1769 l24er qbfc1b I benn try configurated this counter for my encoder but i cant see nothing
Replies
1
Views
1,640
We have some Pines Benders that we want to upgrade to a digital bend angle, one of them has a CompactLogix PLC with a 1769-HSC module, but I was...
Replies
0
Views
1,804
Back
Top Bottom