Author Topic: minimum pulse duration  (Read 10644 times)

jon

  • Newbie
  • *
  • Posts: 2
  • I'm a llama!
    • View Profile
minimum pulse duration
« on: May 07, 2006, 12:14:43 AM »
i need to record to a counter a number of pulses at a frequency of approx. 100hz, how long does the pulse need to be either "on" or "off" (in this case the decoder only produce a quick low state of 100us for each pulse) to be recorded by the PLC? by the way the 2 high speed counters are already used by 2 encoders...

thanks in advance!

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:minimum pulse duration
« Reply #1 on: May 08, 2006, 12:03:21 PM »
If you have already used up the two channels of high speed counter then there isn't any more high speed channel left. You can only use the normal counter which require that the pulse width be greater than the worst case ladder logic scan time. The ladder logic scan time starts from a minimum of 2ms upward and can become quite long if you have custom function takes a long time to execute (such as communication or EEPROM save or load). There is no way the PLC can capture 100us pulse width. You'll need some circuit that will extend the pulse width or use a second PLC' High Speed Counter to capture this fast transition.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

plc_user

  • Guest
Re:minimum pulse duration
« Reply #2 on: May 08, 2006, 02:38:14 PM »
Is it possible to achieve this with an interrupt?  Since the encoder channels are used up, could you not write alittle routine that would accumulate a count?

When interrupt occurs make a variable increase like
A=A+1

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:minimum pulse duration
« Reply #3 on: May 08, 2006, 04:05:53 PM »
Unfortunately in the case of T100MD+, the 4 interrupt inputs are shared with the High Speed Counter (HSC) inputs, so since he has used up both channels of HSC there isn't any interrupt inputs left for implementing an interrupt-based counter.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS