Jtrebble Member J Join Date Oct 2013 Location Ontario Posts 5 Oct 8, 2013 #1 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
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
Mickey Lifetime Supporting Member Join Date May 2003 Location Palmdale,Ca Posts 10,659 Oct 8, 2013 #2 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. Last edited: Oct 8, 2013
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.