Internet PLC Forum

General => Technical support => Topic started by: cch1955 on November 07, 2013, 04:27:26 PM

Title: new question on old board
Post by: cch1955 on November 07, 2013, 04:27:26 PM
I have a T100MD2424+ that has been in use reliably for about 8 years. I am looking at changing a portion of the machine. I am wanting to know if the 4 HSC counters on inputs 3-6 can be used independantly to to count pulse 4 streams ? I know that 3&4 make a pair for quadrature decoding as do 5&6 I just want to verify they can be split having no count interaction.
Title: Re:new question on old board
Post by: support on November 07, 2013, 05:32:12 PM
Unfortunately the HSCs cannot be split into four separate channels since they are organized as two channels of quadrature decoder.

If the incoming pulse speed is not too high (< 200Hz) you may be able to define them as interrupt inputs and each of their associated ISR can be programmed to increment or decrement a variable, which serves as a counter for your program.

E.g.  ISR for interrupt input #1 (rising edge) A = A + 1
        ISR for interrupt input #2 (rising edge) B = B  - 1

etc.