beautypg.com

Micromod MOD: 30ML Display Script Guide User Manual

Page 68

background image

MOD 30ML Display Guide

Application Examples

Figure 5 .13.

Script for Two-Key
Ramping

DEFAULTS:

{

MANUAL_PRESSED:

{

IF OPMS != 3 THEN

{

OPMS = 0;

#LINE5 = " OP";

#LINE6.SRC = OP;

SCRLCNT = 0;

}

}

AUTO_PRESSED:

{

IF OPMS != 3 THEN

OPMS = 1;

IF SCRLCNT == 0 THEN

#UPDN = 0;

}

SCROLL_PRESSED:

{

IF SCRLCNT >= 1 THEN

SCRLCNT = 0;

ELSE SCRLCNT = SCRLCNT + 1;

CASE SCRLCNT OF

{

0:

#LINE5 ="OP";

#LINE6.SRC= OP;

IF OPMS == 0 THEN

#UPDN = 7;

BREAK;

1:

#LINE5 = "SP";

#LINE6.SRC = SP;

#UPDN = 7;

BREAK;

}

}

SCROLL_HELD:

{

TUNE;

}

/* Execute every 50 ms: */

ACTIVE:

{

IF OPMS == 1 && SCRLCNT == 0 THEN

#UPDN = 0;

IF OPMS == 0 && SCRLCNT == 0 THEN

#UPDN = 7;

Change controller mode to manual when MAN
key is pressed unless mode is TRACK. Force
Line 6 to display Output value.

Change controller mode to automatic when
AUT key is pressed, unless mode is TRACK.

Do not display the UP or
DOWN arrows

Controls Line 5
and 6 display

Return UP / DOWN arrow
functions to default (system)

Display Tuning variables when
Scroll Key held

Turn off UP/DOWN arrows if
control mode is AUTO and
SCRLCNT is 0

Turn the up/down arrows over to
the system if the control mode is
MAN and SCRLCNT is 0

5 - 14