Ctu acc rslogix micro

Jtrebble

Member
Join Date
Oct 2013
Location
Ontario
Posts
5
Can someone please explain how the ACC bit of a CTU counter works.

For example if my counter reads

Counter:C5:0
Preset:100
Accum:8 or 6

And if I have a XIC addressed as C5:0.ACC/2

Will the XIC be true?

Thanks
 
Think binary. C5:0.ACC is a 16 bit integer/word.

C5:0.ACC/0 is the LSB (far right)

C5:0.ACC/2 is the third bit from the right.

6 = 0000 0000 0000 0110 Bit C5:0.ACC/2 is true

8 = 0000 0000 0000 1000 Bit C5:0.ACC/2 is False.

See picture for first four bits. You can use all 16 if you like.

numbers.png
 
Last edited:

Similar Topics

Hi, I need to use my CV value from my CTU. if CV = 1 : Red light turns ons if CV = 2 : Green light turns ons, but red goed out if CV = 3 ...
Replies
2
Views
291
Hi, I am confused regarding TIA portal and counters. I use CTU. I wish to have one counter counting 0-10. When it reaches 10 is shall increase...
Replies
23
Views
3,176
I haven't come across this before. I am trying to understand why the counter doesn't reset to 0, when the .dn is true? It immediately puts a 1 in...
Replies
18
Views
4,569
This counter is counting when bits_from_traypacker is true (messaging from other machine, this is the servo cycle). After counting 3 it should...
Replies
8
Views
3,282
For a week now, my coworker and I have been troubleshooting a machine which has been displaying some crazy behavior. HMI values were changing on...
Replies
19
Views
4,255
Back
Top Bottom