10dulkar,
You probably will want the resolution to stay high. Instead of changing your encoder resolution, simply make the length of the BSR's greater, until you have a space in PLC memory equal to the number of encoder pulses between the sensor and the dispenser, up to 4096. If you can set your encoder to give 1 pulse = 1" of conveyor travel, you will be able to achieve excellent control. For example if it is 4096, then set the BSR Length = 4096, and set File B3 Properties to have 256 words, which means that the next BSR will need to skip over to another B File. If you run out of memory in one Binary file, then add as many Binary type Files as you need to get enough space for the BSRs. For esample in one program for a shipping conveyor routing boxes to different branch lines, I used Files B9 up to B24 as space for the Bit Shift Registers. Each BSR used TWO Binary Files, each with maximum size of 256 words.
You probably will want the resolution to stay high. Instead of changing your encoder resolution, simply make the length of the BSR's greater, until you have a space in PLC memory equal to the number of encoder pulses between the sensor and the dispenser, up to 4096. If you can set your encoder to give 1 pulse = 1" of conveyor travel, you will be able to achieve excellent control. For example if it is 4096, then set the BSR Length = 4096, and set File B3 Properties to have 256 words, which means that the next BSR will need to skip over to another B File. If you run out of memory in one Binary file, then add as many Binary type Files as you need to get enough space for the BSRs. For esample in one program for a shipping conveyor routing boxes to different branch lines, I used Files B9 up to B24 as space for the Bit Shift Registers. Each BSR used TWO Binary Files, each with maximum size of 256 words.
Last edited: