Counters

First, thanks again to everyone who has helped me so far. I have another problem. I have a photo-eye input which has to be detected during the scan. I understand that I need to use the IIM instruction but how do I get the counter to count up by only 1 for each sensor input. This is how I have it set up now.

code.jpg
 
Why do you need the IIM instruction?

The CTU will only increment on each false to true transition of the input conditions. If you are getting too many counts, then the input condition is changing more than you expect.

Look closely at the scan time of the program, and figure out the ON and OFF pulse during of your input.

Paul
 
Okie,
Thanks! This is in a subroutine and when I had the input hooked directly to the counter, I would not get a count until the second pulse of the input. When I tried the IIM it worked (except for the non-stop counting) so I probably led myself astray. This trial and error learning method is growing old! I'll keep plugging away. Thanks again.
 

Similar Topics

Hello, This is not precisely about PLCs, but pretty close, and I'm sure the combined knowledge on here can point me in some helpful directions. I...
15
Replies
1,350
Views
Hi - can anybody give me a sample to reset the KWH counters in an AB PM 1000 via MSG instructions in the PLC (or however it's done) I don't have...
1
Replies
347
Views
I want to trigger the cutter on each count. I have tried multiple ways but didn’t reached to a solution.
18
Replies
1,790
Views
Hello, I have a problem figuring out the counters in Mitsubishi FX1N-10MT (Chinese clone). I want to handle two single-phase channels of a fast...
0
Replies
504
Views
I need help with Eaton easySoft programming software on a EasyE4. I have 2 Counters. One needs to be reset at midnight, time 00:00 of each day...
0
Replies
807
Views
Top