# Another counter

**URL:** <https://forum.xod.io/t/another-counter/2040>\
**Category:** Look What I’ve Done\
**Created:** [March 19, 2019, 2:15am UTC](https://forum.xod.io/t/another-counter/2040 "2019-03-19T02:15:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [March 19, 2019, 2:15am UTC](https://forum.xod.io/t/another-counter/2040/1 "2019-03-19T02:15:54Z")

</div>

Counter with start, min, step, max, time, reset, output, pulse divide and limit.

![AssuredEquatorialHoopoe-small%5B1%5D](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/8/8e3d04dadba37cfdd95c3d74103f5996d37d1c8e.gif)

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/067be1fff5dc6215ddeb5a63e8f1ae177056df94.png)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [March 20, 2019, 3:53am UTC](https://forum.xod.io/t/another-counter/2040/2 "2019-03-20T03:53:37Z")

</div>

Add a gate to `Pulse` output, to avoid pulses when it is not activated (`ACT` false). I think there are no mistakes, but …

[for-count.xodball](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/cf1ad8d25029ebfe7c34f24320e8b8b5cccb4e92.xodball) (29.9 KB)

I tried to include a for in C ++, but I got unwanted results. In the end I decided to do something similar and I remain name in the node.

- If receive a pulse and `ACT` is true, start.

- If `ACT` is false stops, it becomes active with ACT and pulse `START`

- If by the `STEP` size exceeds the `Max` stops, and activates the `limit`.

- It works with whole numbers or with decimals.

- `Time` for increase speed.

- VAL counter output, will be equal to or less than MAX

- `Pulse` output for each increment.

- Resetting with RST
