Micromod MOD: 30MLTraining Manual User Manual
Page 218

Training Manual
Totalizer Display Lab
19.
Add a format for the clear variable:
clearL is the format name
The format type is a State variable. The
State Table to show the operator command
will be added in the next section.
Entry method – the operator will be
required to press ENT to clear the total.
Note that there must always be a Display
state table; it can be the same as the Entry
state table.
20.
Click OK to close the DISP block
21.
Connect the totalizer block output TC to the display
block input Total
This allows the totalized count to be
shown on the display.
22.
Connect the display block Clear to the totalizer block
input RESINP
This allows the user to clear the totalized
count from the display.
D - ADD NEW STATE TABLE
Step Procedure
Comments
23.
At the top level of your database, double-click on the
ST (State Table) block to open it.
The State Table is required to provide text
representation of the reset command
(which in the instrument is “1” or
“0”…not very meaningful to an operator).
24.
Select the Tables tab and scroll to the bottom of the
list of tables.
It does not matter where the tables are
added; however, be sure not to embed
them within an existing State Table. It is
usually best to add State Tables to the end
of the file.
25.
Add the following script to the BOTTOM of the list
of State Tables:
Clear, 3, “???”
{
1, “YES”;
0, “NO”;
}
Clear is the table name
3 is the maximum number of characters to
be displayed for the field in this table.
The question marks will be shown on the
display in the event the value is neither 1
nor 0.
15 - 4