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

MOD 30ML Display Guide
Application Examples
The script for this display is shown in the next figure:
Sequence Display
Script
DEFAULTS:
{
MANUAL_PRESSED:
{
MODE = 0;
#LINE2.SRC = STATUS;
#LINE3 = "MAN";
#LINE5 = "STP";
#LINE6.SRC = STEP;
}
AUTO_PRESSED:
{
MODE = 1;
#LINE2.SRC = STATUS;
#LINE3 = "AUT";
#LINE5 = "CMD";
#LINE6.SRC = STEP;
}
RL_PRESSED:
{
START = 1;
CMD = 1;
#LINE5 = "CMD";
#LINE6.SRC = STEP;
}
RL_RELEASED:
{
START = 0;
}
SCROLL_PRESSED:
{
IF SCRLCNT >= 1 THEN
SCRLCNT = 0;
ELSE
SCRLCNT = SCRLCNT + 1;
CASE SCRLCNT OF
{
0:
#LINE5 = "CMD";
#LINE6.SRC = STEP;
BREAK;
1:
#LINE5 = "CMD";
#LINE6.SRC = CMDSET;
BREAK;
}
}
ACTIVE:
{
IF CMDSET && !DELTA THEN
Pressing MAN key changes sequence block
mode to Manual. Line 2 displays status, Line 3
displays MAN, Line 5 displays STP (step) and
Line 6 shows the active step that may now be
manually changed.
Pressing the AUTO key puts the Sequence
block in automatic. Line 3 shows AUT and
Line 6 shows the active step. Because the
STEP input format requires the Sequence
block to be in manual to manually change
steps, the UP/DOWN arrows will not be lit.
The R/L key is used to start the sequence. The
input named START will be set to 1. Pressing
the R/L key also resets the Sequence block
status to RUN.
Resets the START input back to 0, ready for the
next time the start command is issued. Otherwise
the sequence would continue to cycle indefinitely.
Scroll key alternates between
forcing the step and setting the
sequence block status.
The ACTIVE event script sends the
selected status command to the Sequence
block’s Command input. This is necessary
because the Command input of the
Sequence block always returns a 0 after it
receives a command value. The display
would not show the actual status command
properly if this command was sent directly
from the local input CMDSET (selected
status).
5 - 36