Example 1: basic pid display, 1 example 1: basic pid display – Micromod MOD: 30ML Display Script Guide User Manual

Page 56

Advertising
background image

MOD 30ML Display Guide

Application Examples

5.1 Example 1: Basic PID Display

This display definition is contained in the pre-defined compound ML-PID (see Chapter
2). The script defines the functions of the Auto, Manual and Scroll keys. All other keys
(Tag, Alarm, Up/Down Arrows) retain their standard functions as described in Chapter 4.
Holding down the Scroll key calls up the Tune List parameters on Lines 5 and 6. Most of
this script is discussed in detail in Chapter 3.

All other display elements are assigned using the fill-in-the-blank menus as shown. The
State Tables required for this application are already included in the default State Table
file which is supplied with Visual Application Designer.

Figure 5 .1.

Defaults display
state script

DEFAULTS:

{

MANUAL_PRESSED:

{

IF OPMS != 3 THEN

{

OPMS = 0;

#LINE5 = " OP";

#LINE6.SRC = OP;

}

}

AUTO_PRESSED:

{

IF OPMS != 3 THEN

{

OPMS = 1;

#LINE5 = " OP";

#LINE6.SRC = OP;

}

}

SCROLL_PRESSED:

{

IF SCRLCNT >= 1 THEN

SCRLCNT = 0;

ELSE SCRLCNT=SCRLCNT + 1;

CASE SCRLCNT OF

{

0:

#LINE5 ="OP";

#LINE6.SRC= OP;

BREAK;

1:

#LINE5 = "SP";

#LINE6.SRC = SP;

BREAK;

}

}

SCROLL_HELD:

{

TUNE;

}

}

Display state
name

Causes the control mode to change to
manual (0) when the MAN key is
pressed unless current mode is TRACK
(3). Displays OP on Line 5 and shows
PID block output value on Line 6.

Causes the control mode to
change to automatic (1) when the
AUTO key is pressed unless
current mode is TRACK (3).

Toggles line 5 and 6
displays between Output
and Setpoint

Calls the Tune List
associated with this
display and makes the
parameters available
to the front face

5 - 2

Advertising