Micromod MOD: 30MLTraining Manual User Manual
Page 235

Training Manual
Sequence Display Lab
DEFAULTS:
{
ACTIVE:
{
CASE Step OF
{
1:
#LINE5 = "RUN";
#LINE6.SRC = StartPB;
BREAK;
2:
#LINE5 = "";
#LINE6 = "";
BREAK;
3:
#LINE5 = "";
#LINE6.SRC = Temp;
BREAK;
4:
#LINE5 = "";
#LINE6.SRC = Temp;
BREAK;
5:
#LINE5 = "";
#LINE6.SRC = Temp;
BREAK;
6:
#LINE5 = "";
#LINE6 = "";
BREAK;
DEFAULT:
#LINE5 = "";
#LINE6.SRC = blank;
}
}
}
This script consists of a Case statement,
which is a list of labels and associated
statements. The value of the expression is
compared with these labels. If a match is
found, the associated statements are
executed.
When the input called Step assumes any of
the values 1 through 6, the display block
compares that value to the script and
displays lines 5 and 6 accordingly.
For example, if the value of Step is 1, Line
5 displays the word RUN and Line 6
shows the state of the StartPB input.
But if the value of Step is 3, there is no
text on Line 5 and Line 6 displays the
value of the Temp input (product
temperature).
If the value of Step is something other
than 1 through 6, the DEFAULT case is
used (both lines will be blank).
For more information on the syntax of
display scripts, and other ways to use
them, refer to the instruction manual
IB-1800R-SCR
19. You can check your script by clicking on the checkmark icon at
the top of the dialog box
Any errors will be reported in the bottom
panel of the main ViZapp window.
20. Click OK to close the dialog box.
17 - 9