Micromod MOD: 30ML Display Script Guide User Manual
Page 64

MOD 30ML Display Guide
Application Examples
{
IF SCRLCNT == 2 THEN
#LINE6.SRC = ACTION;
#UPDN = 7;
}
ACTIVE:
{
IF ACTION && !DELTA THEN
{
CMDINP = ACTION;
DELTA = 1;
}
IF DELTA THEN
{
ACTION = 0;
DELTA = 0;
#LINE5 = "TOT";
#LINE6.SRC = TOTAL;
#UPDN = 1;
}
}
SCROLL_HELD :
{
TUNE;
}
}
Arrow keys returned to “system”
control after operation
If the value of SCRLCNT is 2 then
assign a count input called ACTION to
line 6. This count is displayed as a state
value and shows the totalizer
commands of RESET, STOP, RUN,
HOLD and EXIT.
If value of ACTION is not 0 (EXIT), and
value of DELTA is 0, then set CMDINP
equal to ACTION. CMDINP is
connected to the Command input of the
TOT block. Set input DELTA to 1.
Causes “UP” arrow to appear
The next figure shows the two State Tables that must be added to the State Tables file in
the State Block. 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.
Figure 5 .10.
State Tables added
to ST Block – PID
and Totalizer
ACTIOND, 8, "????????"
{
0, "EXIT";
}
ACTIONE, 8, "????????"
{
5, "EXIT";
1, "RESET";
2, "STOP";
3, "RUN";
4, "HOLD";
}
Display state table. “D” designates Display.
State table for operator entry. “E” designates Entry.
5 - 10