Author Topic: digital input too fast to be registered?  (Read 5772 times)

Blur

  • Guest
digital input too fast to be registered?
« on: October 22, 2005, 05:02:04 AM »
Guys,

ever encountered a problem where the digital input is on for such a short time that the 888 did not register it? is currently working on a servo motor project. The omron proximity switch connected to the digital input failed to register occasionally when the bed driven by a servo motor went past it. The indicative light on the sensor went on and off as normal but the program fails to register. Any suggestions?

Regards

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:digital input too fast to be registered?
« Reply #1 on: October 22, 2005, 11:07:38 AM »
It depend on the scan time of your program. If during a certain scan the program spend lots of time at a custom function (such as executing large loops) then the scan time may stretch beyond the pulse width and the signal may be lost. Input signal that may come on only briefly should be connected to an interrupt signal which will run a custom function when triggered regardless of the scan time of the program.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Blur

  • Guest
Re:digital input too fast to be registered?
« Reply #2 on: October 22, 2005, 09:29:34 PM »
How to connect to interurrupt signal? what's that? how to do? sorry for the question but I'm still learning.

Regards



Blur

  • Guest
Re:digital input too fast to be registered?
« Reply #3 on: October 22, 2005, 09:52:07 PM »
Sorry but is it done by introducing INTRDEF ch, fn,edge at first scan? what does edge means?

Regards

Blur

  • Guest
Re:digital input too fast to be registered?
« Reply #4 on: October 23, 2005, 01:07:11 AM »
If my PLC is in the midst of sending pulses out to a stepper and encounter the interrupt input, will the PLC carry on sending pulse? Or will the stepper stop in the motion and carry on only whem the interupt input is off?

Regards

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:digital input too fast to be registered?
« Reply #5 on: October 25, 2005, 11:53:04 PM »
Sorry about the late reply. Our server was down on Oct 24 due to power failure caused by hurricane Wilma hitting Florida. The server came back on briefly on Oct 25 after the backup generator was repaired but at 1:10pm EST the backup generator failed again so the server is down whole day.

Anyway, regarding your questions, the interrupt edge means whether it is from OFF  to ON (rising edge)  or from ON to OFF (falling edge).

While the interrupt service custom function is run, the stepper output generator will continue to generate pulses. It will not be hindered by the interrupt custom function.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS