beautypg.com

Micromod MOD: 30ML Display Script Guide User Manual

Page 95

background image

MOD 30ML Display Guide

Application Examples

A connection is then made from input STOP in each of the Display Blocks to an Expression
block that controls the scrolling, as shown in the next figure.

Figure 5 .37.

Block connections,
auto scrolling
displays

In this example the Expression Block uses inputs 1 through 3, configured as Count inputs, to
detect the “stop scroll” command from the Display Blocks named TAG1, TAG2 and TAG3.
“DISPLAYS” is a count input with an initial value of 1, that increments the display index
number by 1 until it reaches 3, then resets to 1 and starts again, as long as none of the “stop
scroll” inputs is present. The result of the Expression must be connected back around to the
input DISPLAYS.

Figure 5 .38.

Expression Block
Inputs


The expression for the Expression Block is:

Figure 5 .39.

Expression to
control scrolling

IF (TAG1 == 0 || TAG2 == 0 || TAG3 == 0) THEN

DISPLAYS

ELSE IF DISPLAYS =< 2 THEN

DISPLAYS + 1

ELSE 1


5 - 41