Micromod MOD: 30ML and Modcell Totalization Application Guide User Manual
Page 13
![background image](/manuals/337722/13/background.png)
Using The Totalizer Block
Building the Strategy
11
Table 2. Edit Display Format Date
Format
Name
Display
Format
Low
Limit
High limit
Entry
Method
Display
State
Table
Entry
State
Table
TotalL
Float0
0
1000000.0
None
ActionL
State
Ent. Req.
ActionD
ActionE
11. Click on the red diamond in the upper left corner of the Edit Display Formats menu to close it.
12. Select
.
13. Modify the existing Display block script to appear as that in Figure 3. Script comments are
not required but can be useful during future trouble shooting. Script comments are identified
with a prefix of /* and suffix of */.
DEFAULTS:
{
MANUAL_PRESSED:
{
IF OPMS != 3 THEN
{
OPMS = 0;
#LINE5 = " OP";
#LINE6.SRC = OP;
}
}
AUTO_PRESSED:
{
IF OPMS != 3 THEN
OPMS = 1;
}
SCROLL_PRESSED:
{
#UPDN = 7; /* display up, /, and down */
IF SCRLCNT >= 2 THEN
SCRLCNT = 0;
ELSE SCRLCNT = SCRLCNT + 1;
CASE SCRLCNT OF
{
0:
#LINE5 = " OP";
#LINE6.SRC = OP;
BREAK;
1:
#LINE5 = " SP";
#LINE6.SRC = SP;
BREAK;
2:
#LINE5 = "TOT";
#UPDN = 1; /* display only up symbol */
#LINE6.SRC = TOTAL;
BREAK;
}
}
UP_PRESSED:
{ /* changes function of up key */
IF SCRLCNT == 2 THEN /* when line 5 is displaying TOT */
#LINE6.SRC = ACTION;
#UPDN = 7;
}
ACTIVE:
{
IF ACTION && !DELTA THEN
{
CMDINP = ACTION; /* sends ACTION value to totalizer CMD */
DELTA = 1; /* input then resets it to zero */