<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Pulse Counter with Pulse Duration]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm struggling to think of a way to combine a pulse count with a pulse duration.</p>
<p dir="auto">I need to log/count the total amount of times a door is opened, I'm using a reed switch as the input/trigger for this, circuit open when door is open. The COUNT block would work fine for this I think. But what I'd also like to do though is count the duration of each door opening. So basically counting a pulse and it's duration. Then logging the duration against each door open count.</p>
<p dir="auto">Any help would be appreciated.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/topic/123/pulse-counter-with-pulse-duration</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 13:18:54 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/123.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jul 2020 02:38:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pulse Counter with Pulse Duration on Mon, 03 Aug 2020 05:14:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/17">@RexPeter</a> thank you for that, that is actually very useful.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/461</link><guid isPermaLink="true">https://forum.rexygen.com/post/461</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Mon, 03 Aug 2020 05:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to Pulse Counter with Pulse Duration on Wed, 29 Jul 2020 22:15:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@MikeyH</a></p>
<p dir="auto">Hi Mike,<br />
I'm using the Total Hours counter with formatting to number of digits, and preset to a specific counter value.<br />
Please find attached the subsystem used.<br />
<a href="/assets/uploads/files/1596060903092-totalhours_counter_with_preset.mdl">TotalHours_counter_with_preset.mdl</a></p>
<p dir="auto">Regards,<br />
Peter</p>
]]></description><link>https://forum.rexygen.com/post/459</link><guid isPermaLink="true">https://forum.rexygen.com/post/459</guid><dc:creator><![CDATA[RexPeter]]></dc:creator><pubDate>Wed, 29 Jul 2020 22:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to Pulse Counter with Pulse Duration on Wed, 29 Jul 2020 03:13:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jan,</p>
<p dir="auto">Thank you very much for the help. I will let you know how I get on. I think with what I need to do I'll create a sub system so will share it once I'm done in case it's useful to anyone.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/458</link><guid isPermaLink="true">https://forum.rexygen.com/post/458</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Wed, 29 Jul 2020 03:13:12 GMT</pubDate></item><item><title><![CDATA[Reply to Pulse Counter with Pulse Duration on Tue, 28 Jul 2020 14:06:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mikey,<br />
you can use the INTE block (documentation here: <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/INTE.html#x81-800005">https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/INTE.html#x81-800005</a> ). The basic principle is on the attached picture.<br />
<img src="/assets/uploads/files/1595944686740-inte.png" alt="inte.PNG" class=" img-fluid img-markdown" /><br />
If you set value of the running period of your task into <em>CNR1</em> (this is 0.5 sec for me), the output <em>y</em> of the <em>INTE</em> block will be computing duration of "open door" time. You can easily reset this value by logic ON value on input R1.</p>
<p dir="auto">Hope this will be helpful,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/456</link><guid isPermaLink="true">https://forum.rexygen.com/post/456</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Tue, 28 Jul 2020 14:06:29 GMT</pubDate></item></channel></rss>