Posted 18 Dec 2005 (edited) hi, i'm having a value in HR08 on my C20K; i have to have a number of pulses, that matches the value in HR08. after the pulses are given, the HR value has to be resetted.. For example, suppose that HR08 = 4(decimal), than i want a contact that opens four times in a row. 0-->1 -->0-->1-->0-->1-->0-->1-->0. When the four pulses are given, the HR08 value has to reset, HR08 = 0(decimal) i've been trying all kinds of constructions with counters, compares, ... but none of them wreally worked well, one time the value didnt reset another time the pulses didnt stop, ... is there an easier way to do this than with counters etc? Edited 18 Dec 2005 by J-D Share this post Link to post Share on other sites
Posted 18 Dec 2005 Maybe this will meet your needs: Share this post Link to post Share on other sites
Posted 19 Dec 2005 Whew! That's a good thing. I didn't test it. Share this post Link to post Share on other sites
Posted 20 Dec 2005 (edited) after adapting your piece of software by adding some extra conditons that were needed for my program, it worked very well... Edited 20 Dec 2005 by J-D Share this post Link to post Share on other sites