Paul351W
Member
I've been trying to measure shaft speed with a 120 tooth speed wheel, a bi-directional powered pickup, and a 1756-HSC/B counter card.
I am driving an eddy current coupling with a AC drive system, and trying to control the eddy current coupling output shaft speed by measuring the speed wheel and changing the drive speed command. There is a brake on the output of the eddy coupling that applies load, and the customer wants to maintain brake speed within 5rpm while the brake is applied.
I first tried the encoder x4 mode using the Totalizer field to give me frequency, but the signal only updates roughly every 1000ms.
Currently I am using encoder x4 mode on Channel 0 for direction, and Period/Rate mode on Channel 1 to measure frequency. I am getting much quicker updates in Period/Rate mode, but as I increase in speed the reported frequency starts reporting spikes of lower value.
I tried using encoder x4 mode to calculate a difference in the number of pulses over 100ms, but must have had something wrong because it never seemed to work properly.
Does anyone have any suggestions or some sample code to give me some direction on how this is usually done?
I am driving an eddy current coupling with a AC drive system, and trying to control the eddy current coupling output shaft speed by measuring the speed wheel and changing the drive speed command. There is a brake on the output of the eddy coupling that applies load, and the customer wants to maintain brake speed within 5rpm while the brake is applied.
I first tried the encoder x4 mode using the Totalizer field to give me frequency, but the signal only updates roughly every 1000ms.
Currently I am using encoder x4 mode on Channel 0 for direction, and Period/Rate mode on Channel 1 to measure frequency. I am getting much quicker updates in Period/Rate mode, but as I increase in speed the reported frequency starts reporting spikes of lower value.
I tried using encoder x4 mode to calculate a difference in the number of pulses over 100ms, but must have had something wrong because it never seemed to work properly.
Does anyone have any suggestions or some sample code to give me some direction on how this is usually done?