klm
  •  klm
  • 70.75848% (Friendly)
  • Advanced Member Topic Starter
2020-04-29T21:52:48Z


I want to count the number of each bit that enters the BSR element (#N10:0).
I can't get the counter to see each consecutive bits in a row.
The counter counts; for example, 5 bits in a row as "1".


How can I get the counter to "see" each bit; even if they(bits)
are in a row ?

Thanks-
klm
Guest
2020-04-29T22:11:56Z
KLM,

Ok , think I understand what you are asking, but just ask differently if I miss. You emailed in a pdf of your program and I see you are using the seconds bit of the clock to enable your BSR. You use your unload bit to go to a counter. I assume that you want to count the bits that are On or 1 that are shifted out of the shift register. The UL or unload bit contains the bit that is shifted off of the data being worked on with the shift register. So if you have a bunch of 1's comming off of the shift register, the first bit gets counted by your counter, but the rest are not counted because the counter never sees a low to high or 0 to 1 transition. I think if you put a normally open contact with your done bit in series with your UL bit enabling your counter you will solve your problem. The done bit will go high or 1 when the instruction is complete and whatever is in the UL bit will determine whether or not the counter receives an enable. When the BSR is next enabled, the DN bit should go low until the shift is complete giving you a low to high transition even if the next UL bit is a 1. Try this out and let me know if this works for you.

Russell
klm
  •  klm
  • 70.75848% (Friendly)
  • Advanced Member Topic Starter
2020-04-29T22:23:19Z
Russell,

Your suggestion worked great. This finally cleared-up some things for me. I have a better understanding now, about the 'R6" control data file.

Greatly appreciate it!

Thanks-

klm
Similar Topics
Users browsing this topic
RSLogix500 Introduction
RSLogix500 Inserting Instructions
RSLogix500 Opening a File
RSLogix500 Creating a Project
RSLogix500 Instruction Comments
RSLogix500 Rung Comments Page Titles
RSLogix500 Inserting Branches
RSLogix500 Program Organization, Part 1 - Overview
RSLogix500 Program Organization, Part 2 - Examples
RSLogix500 Using Symbols
RSLogix500 View Properties
RSLinx
RSLogix500 Online Offline
RSLogix500 Dowloading and Uploading
RSLogix500 Processor Modes
RSLogix500 Processor and Cards
RSLogix500 Introduction to Faults
RSLogix500 Indirect Addressing
RSLogix500 Indirect Addressing Faults
RSLogix500 Handling Faults
RSLogix500 Forcing I/O
RSLogix500  Custom Data Monitor
RSLogix500 I/O Configuration
RSLogix500 Advanced Diagnostics
RSLogix500 Instructions OTL OTU, Part 1
RSLogix500 Instructions OTL OTU, Part 2
RSLogix500 Instructions OTL OTU, Part 3
RSLogix500 Instructions, OTE
RSLogix500 Instructions, XIC XIO
RSLogix500 Instructions, ADD
RSLogix500 Instructions, COP
RSLogix500 Instructions, CPT - Part 2
RSLogix500 Instructions, CTU CTD - Part 1
RSLogix500 Instructions, CTU CTD - Part 2
RSLogix500 Instructions, CTU CTD - Part 3
RSLogix500 Instructions, CPT - Part 1
RSLogix500 - Comparison - Part1
RSLogix500 - Comparison - Part 2
RSLogix500 Instructions, DIV
RSLogix500 - FIFO - FFL and FFU - Part 1
RSLogix500 - FIFO - FFL and FFU - Part 2
RSLogix500 Instructions, FLL
RSLogix500 Instructions, JMP and LBL
RSLogix500 Instructions, Masking and MEQ
RSLogix500 Instructions, MUL
RSLogix500 Instructions, MOV
RSLogix500 Instructions, LIM
RSLogix500 Instructions, NEG
RSLogix500 Instructions, OSR
RSLogix500 Instructions, RTO
RSLogix500 Instructions, SQO sequencer - Part 1 of 3
RSLogix500 Instructions, SQO sequencer - Part 2 of 3
RSLogix500 Instructions, SQO sequencer - Part 3 of 3
RSLogix500 Instructions, SUB
RSLogix500 Instructions, TOF
RSLogix500 Instructions, JSR and RET
RSLogix500 Shift registers
RSLogix500 Instructions, SQR
RSLogix500 Instructions, TON - Part 1
RSLogix500 Instructions, TON - Part 2
RSLogix500 Instructions, TON - Part 3
Introduction to Ladder Logic