Search the Community
Showing results for tags 'Input Interrupt routine'.
Can any body help me in how to create a input interrupt routine in unitronics plc. Other PLC like AB , Siemens , Omron , Delta, has this type of routine. The input subroutine is immediately triggers on the rising edge of the input. Application. I am using a encoder with marker pulse. I am using this marker pulse to reset the encoder counts, but at the same time i need to reset some other MI's of the plc. I am also using the HSC reload option to generate _HSC interrrupt. At every HSC interrupt i am storing the current valve of the encoder to a series of MI. E.g 1st interrupt MI0 , 2nd Interrupt MI1 and it goes on till it reaches to a certain point. When i get the marker pulse i want to reset the encoder value and at same time all other value store in the series of MI, MI0, MI1, till may be MI10. i am using a 36000 ppr encoder so i cannot depend on scan time to reset these MI. I tried it but then i miss the 1st two MI readings. The marker pulse is so small that sometimes its doesn't come in the scan time. Encoder speed is 5-10 RPM. If i get the option of input interrupt routine then i will configure the marker pulse as input interrupt and reset all MI when marker triggers.