FUNCTION_BLOCK E_F_DIV
This function block performs event-driven frequency division; that is, one event occurs at the EO output for every N events at the EI input. The count cycle can be reset by an event at the R input.
The behavior of an instance of this type is defined by the ECC and algorithms shown below.

ALGORITHM COUNT_UP IN ST: COUNT := COUNT+1; END_ALGORITHM
ALGORITHM RESET IN ST : COUNT := 0; END_ALGORITHM

Test Procedure
  1. Open and run events/E_F_DIV in the FBDK.
  2. Enter data for the N input variable.
  3. Exercise the FB by clicking on the event inputs.
Last updated: 2016-04-18.
©2016 Holobloc Inc.
Reuse is permitted under the Academic Free License version 3.0
with attribution to http://www.holobloc.com/doc/navigator.htm