Author Topic: new question on old board  (Read 11316 times)

cch1955

  • Full Member
  • Posts: 198
  • Automated Machine Systems Designer
    • View Profile
new question on old board
« 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.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:new question on old board
« Reply #1 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.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS