"Your post appears to contain code that is not properly formatted as code".

There is no code in my post, only text and links.


Here is a link to my question - https://codereview.stackexchange.com/questions/175496/limit-drive-starts-with-function-block-diagram?noredirect=1#comment333054_175496

The following is a copy-paste of the edit I am trying to apply.

I have a drive (modulating fan) which needs to be interlocked and prevented from starting. The requirement is that:

> The drive is limited to 3 starts per hour with a minimum of 10 minutes between starts.

I am programming using function blocks diagrams.
Some information to aid in your understanding of the function block diagram I created:

 - Program flow follows the execution numbers on the function blocks.
 - Cyan lines show values of the integer short data type.
 - Black lines show binary values (0/1)
 - References (small rounded rectangles with an alphanumeric identifier and no execution number) are used to *move* data without the need for connecting lines.

Many of the blocks used are self-explanatory, however, the following information may be of use:

 - "diss" function block - routes either "in1" or "in2" to "out" depending on "bse". When "bse" equals 0 "in1" is used.
 - "ccob"/"ccos" depends on the "mode". 1=rising edge, 2=falling edge.
 - "dvss" function block - outputs the min/max of the two inputs.

EDIT: I have broken the Function Block Diagram into three views:

Here is the function block diagram, I am interested in alternate or more efficient methods to achieve the requirement. Criticism and help is desired.

I have exported my loop diagram as an SVG: http://svgshare.com/s/306

[view1]: https://i.sstatic.net/ve6d2.png
[view2]: https://i.sstatic.net/vH57S.png
[view3]: https://i.sstatic.net/rK3bH.png

  [1]: https://i.sstatic.net/xdRi1.png