beautypg.com

Display block configuration for single pid example – Micromod MOD: 30ML Functions Data Base Reference User Manual

Page 126

background image

MOD 30ML Functions

CONFIGURATION EXAMPLES

Display Block Configuration for Single PID Example
The following is a listing of the display script used to execute the PID display. The scroll key
moves you through the output, setpoint and tune request displays. The R/L key is not used.
The auto key changes the output mode status to auto. The manual key changes the output
mode status to manual and the line 6 display to the output source. The state variable
TUNE_REQ, when active, allows selection of the control or alarm tune list.

/*Single PID with Display template
User is prompted to select one of the tune lists
through the use of a state variable.*/

DEFAULTS:
{
MANUAL_PRESSED:
{
IF OPMS != 3 THEN
{
OPMS = 0;
#LINE5 = " OP";
#LINE6.SRC = OP;
}
}

AUTO_PRESSED:
{
IF OPMS != 3 THEN
OPMS = 1;
}


SCROLL_PRESSED:

{
IF SCRLCNT >= 3 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;
}
}

3-32