News:

  • April 17, 2026, 01:28:48 AM

Login with username, password and session length

Author Topic: What about interrupts and fast response modules?  (Read 13384 times)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
What about interrupts and fast response modules?
« on: January 07, 2014, 12:18:37 PM »
As part of our new platform effort we are evaluating things like interrupt routines that could be triggered by hardware timers, inputs, and presets associated with hardware counters. It is very straightforward how to do this on the new hardware, but we also see how it might be done on DL205 and Terminator. Which then begs the question: 'Should we?'

So...thoughts please? Do you use interrupts on existing controllers? If so, how fast a response time on inputs and outputs is required? What kinds of applications do you do?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: What about interrupts and fast response modules?
« Reply #1 on: January 07, 2014, 05:26:29 PM »
I haven't done it a lot, but when I have done so, it's been divided about equally between two applications:

(1) what you'd normally picture using interrupts to do, catching a fleeting input or reacting to one at faster-than-scan speeds, and

(2) high-ish speed counting, like in the sub-kHz but faster than scan range (using either interrupt I/O or generic but fast discrete inputs read on an interrupt timer), when I was too cheap to buy an HSC module.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: What about interrupts and fast response modules?
« Reply #2 on: January 08, 2014, 02:45:32 PM »
OK...I confess, I expected more response to this. I guess I am learning a very valuable lesson about PLCs, and that is that most folks just do basic scan bound stuff, and despite our tendency to focus on 'gee whiz' features, most aren't required.

Until they are... ;)
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: What about interrupts and fast response modules?
« Reply #3 on: January 09, 2014, 02:17:09 PM »
For cyclical machines, interrupts are quite handy. Especially if you could tie them into the high speed counter to create a PLS in the controller. An interrupt task would be perfect for that.
« Last Edit: January 09, 2014, 02:18:51 PM by ATU »

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: What about interrupts and fast response modules?
« Reply #4 on: January 09, 2014, 05:25:33 PM »
Current thought is to have 4 channels of high speed counting with preset tables that could fire interrupts, as well as set, reset, and toggle outputs directly, and to reset the counter. All of that would be hardware based...very fast. I would also have inputs be capable of firing interrupts directly, as well as microsecond timers for precision intervals. Hopefully, taken together, that would provide a pretty good bang for not much hardware cost.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: What about interrupts and fast response modules?
« Reply #5 on: January 09, 2014, 06:32:59 PM »
Will you be able to access and change the preset tables on the fly?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: What about interrupts and fast response modules?
« Reply #6 on: January 09, 2014, 06:35:56 PM »
Will you be able to access and change the preset tables on the fly?

Yes. It would all be instruction based. The system config would only be used to define the basic I/O setup...what inputs assigned to what functions, etc.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: What about interrupts and fast response modules?
« Reply #7 on: January 09, 2014, 11:42:42 PM »
Adjustable filters on the HS counters?  That worked well on the 205 modules.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: What about interrupts and fast response modules?
« Reply #8 on: January 10, 2014, 09:21:44 AM »
Adjustable filters on the HS counters?  That worked well on the 205 modules.

Yep.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO