# Universal voting logic MooN

**URL:** <https://forumautomation.com/t/universal-voting-logic-moon/12102>\
**Category:** DCS (Distributed Control Systems)\
**Created:** [May 26, 2024, 5:37pm UTC](https://forumautomation.com/t/universal-voting-logic-moon/12102 "2024-05-26T17:37:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kairat](https://forumautomation.com/user_avatar/forumautomation.com/kairat/32/5945_2.png) [@Kairat](https://forumautomation.com/u/Kairat)\
**Post date:** [May 26, 2024, 5:37pm UTC](https://forumautomation.com/t/universal-voting-logic-moon/12102/1 "2024-05-26T17:37:36Z")

</div>

Good evening!

I want to share with you universal version of voting logic MooN. It’s based on simple boolean logic and easy to scale for any dimension.

For example see version for 6 inputs.

 ![Picsart_24-05-26_22-27-08-935](https://cdn.forumautomation.com/original/2X/e/ece94c23d724585c0ca3b2b7d95d124c3eb1e939.jpeg)

You can use any of MooN output as per your voting need (also you can use output 4oo6 as indication of that inputs with 1 state more than 0 state).

AR is user Function Block. It swipes signals when 1 and 0 must change order.

Basic idea is sort signals with state 1 to “bottom”, i.e. seperate 1 and 0 into two groups.

For example, when input is [1,1,0,1,0,0] output of MooN should be [0,0,0,1,1,1].

Best regards Kairat Abdukarimov.
