5 how logic sequences are executed by the dvc710, How logic sequences are executed by the dvc710 – High Country Tek emc-3L User Manual

Page 52

Advertising
background image

4.5 How Logic Sequences are executed by the DVC710

A logic sequence is executed at a typical or default rate of 100 times per second or once every 10ms. The
maximum rate is 1000 times a second. Within each execution cycle, the processor updates the system
input/output values and communicates with other modules over the CAN Bus then the Always code is executed
followed by the active logic bubble in a logic sequence and its out bound transition expressions. Note that this
implies that an individual logic sequence will be executed typically every 10ms * the number of logic sequences.
For example, an application with three sequences would execute a particular logic sequence once every 30ms.
Grouping of logic sequences can be used to change the frequency of execution of a particular logic sequence.
For instance, assigning 2 logic sequences out of a total of 3 to a group would mean that logic sequence 3
executes every 20ms while logic sequences 1 and 2 execute every 30ms. Multiple groups of logic sequences
can be defined. Logic sequences not assigned to a group can be considered to be in their own group for
purposes of this discussion. Only one bubble within a logic sequence of a single group will be executed each
10ms. After one pass through all of the groups then the process is repeated with a new logic sequence in each
group being executed. If no more logic sequences are defined in a particular group then the first logic sequence
in the group is executed again, so on and so forth. This execution pattern may be thought of as a main loop
with mini loops in each group.

Each time the active bubble of a logic sequence is executed the execution starts at the top of the repeat bubble
code and proceeds to the end of the code after which time the DVC710 BIOS checks the transition conditions
and executes any true transition conditions. A true transition condition for a bubble causes the pointed to
bubble’s entry code to be executed during the next execution cycle followed by the repeat code.

Application Code Order of Execution

P/N: 021-00163, Rev. A.0 - for V5.2 Tools

Page | 52

Advertising
This manual is related to the following products: