Professional Documents
Culture Documents
b0193df M
b0193df M
REV M
I/A Series®
Display Commands
July 30, 2007
Invensys, Foxboro, Fox, FoxDraw, FoxPanels, FoxSelect, FoxView, and I/A Series are trademarks of
Invensys plc, its subsidiaries, and affiliates.
All other brand names may be trademarks of their respective owners.
Tables.................................................................................................................................. xiii
Preface................................................................................................................................... xv
Purpose ................................................................................................................................... xv
Audience ................................................................................................................................. xv
Revision Information .............................................................................................................. xv
Reference Documents ............................................................................................................. xv
Conventions ........................................................................................................................... xvi
Glossary of Terms .................................................................................................................. xvi
iii
B0193DF – Rev M Contents
iv
Contents B0193DF – Rev M
button ..................................................................................................................................... 40
chng_env ................................................................................................................................. 42
chng_menu_bar ...................................................................................................................... 43
clearpick .................................................................................................................................. 43
close ........................................................................................................................................ 43
clralmpnl ................................................................................................................................. 45
# (comment character) ............................................................................................................ 46
csa ........................................................................................................................................... 46
dbar_button ............................................................................................................................ 47
dbar_tmplt .............................................................................................................................. 49
disable ..................................................................................................................................... 49
display_bar .............................................................................................................................. 50
dmexit ..................................................................................................................................... 50
do_lia ...................................................................................................................................... 51
e .............................................................................................................................................. 51
else .......................................................................................................................................... 51
enable ...................................................................................................................................... 52
== (equality) ............................................................................................................................ 52
execute .................................................................................................................................... 53
exit .......................................................................................................................................... 54
frntsurf .................................................................................................................................... 57
ge (greater than or equal to) .................................................................................................... 58
get_select_pt ........................................................................................................................... 58
getenv ..................................................................................................................................... 59
getstr ....................................................................................................................................... 59
goto alms ................................................................................................................................. 60
gt (greater than) ...................................................................................................................... 60
horns ....................................................................................................................................... 61
incwrap ................................................................................................................................... 62
!= (inequality) .......................................................................................................................... 63
initlog ..................................................................................................................................... 64
input ....................................................................................................................................... 64
kill ........................................................................................................................................... 65
le (less than or equal to) ........................................................................................................... 65
lt (less than) ............................................................................................................................. 66
marker_fill .............................................................................................................................. 67
v
B0193DF – Rev M Contents
marker_size ............................................................................................................................. 67
message_bar ............................................................................................................................ 67
mount ..................................................................................................................................... 68
mruflush ................................................................................................................................. 69
msglin ..................................................................................................................................... 70
next alms ................................................................................................................................. 70
next rdline ............................................................................................................................... 71
nologscr ................................................................................................................................... 72
nostack .................................................................................................................................... 72
ov ............................................................................................................................................ 73
ov_conn .................................................................................................................................. 78
ov_mode ................................................................................................................................. 81
ov_on_top ............................................................................................................................... 81
ov_switch ................................................................................................................................ 82
pageack ................................................................................................................................... 82
passwd ..................................................................................................................................... 83
pick ......................................................................................................................................... 84
plot ......................................................................................................................................... 87
X/Y Plots ....................................................................................................................... 89
Profile Plot Displays ...................................................................................................... 89
dmcmd plot plotname r ................................................................................................. 90
dmcmd plot plotname rw .............................................................................................. 90
dmcmd plot plotname w ............................................................................................... 91
dmcmd plot plotname p ................................................................................................ 91
dmcmd plot plotname d ................................................................................................ 91
prev alms ................................................................................................................................. 91
prev rdline ............................................................................................................................... 92
protect ..................................................................................................................................... 93
prtalmpnl ................................................................................................................................ 95
psc ........................................................................................................................................... 95
quitdm .................................................................................................................................... 96
rcntalms .................................................................................................................................. 96
rdfile ....................................................................................................................................... 97
run .......................................................................................................................................... 98
script ....................................................................................................................................... 99
sdjump .................................................................................................................................. 100
select_pt ................................................................................................................................ 101
set_select_pt .......................................................................................................................... 101
vi
Contents B0193DF – Rev M
vii
B0193DF – Rev M Contents
AOUT_DD
AOUT_FP ............................................................................................................................ 128
APLBUG .............................................................................................................................. 129
CADDD ............................................................................................................................... 129
CADTP ................................................................................................................................ 129
CADUS ................................................................................................................................ 129
CBP_PROT ......................................................................................................................... 129
CLR_OPT ............................................................................................................................ 129
CTLFRST ............................................................................................................................. 130
DBA_PROT ......................................................................................................................... 130
DBL_PROT ......................................................................................................................... 130
DBM_PROT ........................................................................................................................ 131
DBN_PROT ........................................................................................................................ 131
DBS_PROT ......................................................................................................................... 131
DMCMD ............................................................................................................................. 131
DM_DEC ............................................................................................................................ 132
DM_DISPLAY ..................................................................................................................... 132
DM_ITXT ............................................................................................................................ 132
DMINIT .............................................................................................................................. 132
DMLOG .............................................................................................................................. 133
DMNAME ........................................................................................................................... 133
DMPID ................................................................................................................................ 133
DMWINDOW .................................................................................................................... 133
DTMFT ............................................................................................................................... 133
ENV ..................................................................................................................................... 134
ENV1 ................................................................................................................................... 134
FPLIB ................................................................................................................................... 134
FVMENU_COLUMNS ....................................................................................................... 134
FVSEL_ASGN ...................................................................................................................... 135
FV_FPOVL .......................................................................................................................... 135
FV_HCLR ............................................................................................................................ 135
FV_RPCLR .......................................................................................................................... 135
FV_SACLR ........................................................................................................................... 135
FV_UPDAT ......................................................................................................................... 135
FXCURSOR ......................................................................................................................... 136
GCLBUG ............................................................................................................................. 136
viii
Contents B0193DF – Rev M
ix
B0193DF – Rev M Contents
x
Figures
B-1. Network Display (Example) ...................................................................................... 153
B-2. Dependent Sequence Block Code Display (Example) ................................................ 154
xi
B0193DF – Rev M Figures
xii
Tables
2-1. Display Commands ..................................................................................................... 25
xiii
B0193DF – Rev M Tables
xiv
Preface
Purpose
This document provides information about display commands, which are used by the I/A Series®
display managers (FoxView™ and Display Manager).
These topics are described:
♦ Uses for display commands
♦ Display manager scripting language
♦ Read-only and read-write workstation variables
♦ Search paths
♦ Display commands (alphabetical list)
♦ Reserved workstation variables (alphabetical list)
♦ Bit extension acronyms.
This document describes the considerations involved with:
♦ Creating scripts that execute when a display button is picked
♦ Setting up scripts embedded in displays
♦ ExpertSelect functionality.
Audience
This document is intended for process and software engineers who are responsible for developing
process control and application displays.
This document assumes that you are familiar with the I/A Series system and the UNIX® and/or
Windows NT® operating system.
Revision Information
For this revision of the document (B0193DF-M), the following change was made to reflect Fox-
View/FoxDraw Software Version 9.0.3 and Version10.2:
Chapter 2 “Alphabetical List of Display Commands”
♦ Added the display command “clearpick” on page 43.
Reference Documents
Refer to these documents for additional information:
♦ Alarm and Display Manager Configurator (B0700AM)
♦ Display Builder for 50 Series Workstations (B0193MP)
♦ Display Configurator for 50 Series Workstations (B0193NL)
xv
B0193DF – Rev M Preface
Conventions
The following conventions are used in the command descriptions in this document:
♦ The term FoxView/DM means FoxView or Display Manager.
♦ Arguments within square brackets [ ] are optional.
♦ Arguments that appear in italics are replaced by actual string or numerical values.
♦ A vertical line ( | ) indicates “OR”. For example, a | b means “a” or “b”.
♦ Braces { } delimit a set of choices from which the user must choose one.
♦ In all cases, the command syntax is one continuous string (no embedded carriage
returns).
♦ Multiple commands are separated by semicolons.
Glossary of Terms
This document uses the following terms:
display manager The user interface to the process (Display Manager or FoxView)
xvi
1. Display Commands
This chapter provides an overview of display commands, scripts, text substitutions, object
manager data values, built-in commands, global variables, bit extensions, file types, and search
paths.
Display commands are powerful utilities for developing I/A Series displays. In addition, display
commands perform process functions that define the role a particular display serves in the
I/A Series graphical user interface.
Overview
Display commands are part of a scripting language used by Display Manager and FoxView. Use
display commands in displays or script files to provide the functionality associated with operator
actions.
The Alarm Manager also has a scripting language and command interface. You can use Alarm
Manager built-in commands and keywords to utilize alarm tasks and information in other appli-
cations. Built-in commands and keywords extend Alarm Manager functionality and facilitate a
link from the Alarm Manager to your own applications to meet your plant-specific needs.
NOTE
Many concepts apply to both display manager programming and Alarm Manager
programming.
1
B0193DF – Rev M 1. Display Commands
NOTE
Unless otherwise noted, display commands are used by both styles of display man-
agers (Display Manager and FoxView).
Specific Commands
The command portion of the scripting language is made up of two parts: the specific command
and additional arguments.
command <arg1> <arg2> <arg3> ...
Not all commands have arguments.
Invensys Foxboro provides many display commands; refer to “Alphabetical List of Display Com-
mands” on page 25 for a complete list.
Examples
toggle COMPOUND:BLOCK.MA
The specific command is “toggle”, and the argument is “COMPOUND:BLOCK.MA”.
This command toggles the value of the.MA parameter of the COMPOUND:BLOCK block.
= P1 /usr/menus/display
The specific command is “=” and the arguments are P1 and /usr/menus/display. This command
sets the variable P1 to the value /usr/menus/display. The command is logically equivalent to P1 =
/usr/menus/display, where P1 is a local variable used in scripting.
2
1. Display Commands B0193DF – Rev M
NOTE
Due to the scripting language’s required format (command <arg1> <arg2>...), the
command syntax is:
= P1 /usr/menus/display, not P1 = /usr/menus/display.
Variables
The display manager scripting language provides several variables you can use to program com-
mands. Variables fall into two categories: read-only variables, and read-write variables.
Read-only variables contain configuration information for the workstation. The value of a read-
only variable cannot be changed with a DM command.
The value of read-write variables can be read and changed within commands.
Read-Only Variables
Read-only variables cannot be modified from within commands. Read-only variables contain con-
figuration information for the workstation. There is only one copy of each variable for the work-
station as a whole. These variables can be read by any FoxView, Display Manager, or Alarm
Manager on the workstation.
Applications on other workstations cannot access the value of a read-only workstation variable.
Read-only variables are often used to specify configurable behavior for workstation applications.
You can customize read-only variables to change the default behavior of FoxView, Display Man-
ager, and Alarm Manager. Refer to “Modifying Values of Read-Only Variables” on page 6 for
more information.
Read-Write Variables
The value of read-write workstation variables can be modified from within commands. Each
instance of FoxView, Display Manager, and Alarm Manager has its own copy of these variables.
Setting a read-write variable from within one FoxView, for example, does not affect the value of a
variable with the same variable in another FoxView.
Read-write variables are used extensively throughout display button configuration. For example,
when an operator selects the OUTPUT field on a block detail display, the following command
executes:
= PICK1 COMPOUND:BLOCK.OUT
This command sets the PICK1 variable to the value of COMPOUND:BLOCK.OUT,
allowing the PICK1 variable to be used as part of another command.
Read-write variables are implemented as Object Manager (OM) shared string variables. They are
accessible from anywhere in the I/A Series network, similar to other OM variables.
3
B0193DF – Rev M 1. Display Commands
The DM/FV/AM name is appended to the read-write floating or integer type variable name,
creating an OM shared variable:
<variablename><DMNAME>
For example, suppose a workstation is configured for two display managers, a Display Manager
and a FoxView, named DM0001 and DM0002, respectively. Each display manager has its own
copy of the PICK1 variable. As implemented in the Object Manager, the names of the OM vari-
ables are DM0001PICK1 and DM0002PICK1.
When DM0001 executes the command = PICK1 COMPOUND:BLOCK.MA, the DM0001PICK1
string variable is set to the value of COMPOUND:BLOCK.MA. Similarly, when this same com-
mand is executed from within DM0002, the DM0002PICK1 variable is set to the value of
COMPOUND:BLOCK.MA.
These shared variables can be read or set from anywhere on the I/A Series network, as standard
shared variables.
Object Manager shared variable names are limited to a length of 14 characters. Because the six-
character DM/AM/FV name is prepended to the read-write variable name, the read-write vari-
able’s name is limited to eight characters.
! CAUTION
Do not edit these files.
4
1. Display Commands B0193DF – Rev M
where:
XXXXXX is the name of the variable
<value> is the value to be assigned to the variable. <value> can be blank.
Specifying a read-write string variable requires two pieces of information: the size of the variable
and its name.
gctsize=<size>
where:
gctsize is a reserved word, indicating the size (in characters) of the read-write variable.
<size> is the size (in characters) of the next set of read-write variables. The maximum size
is 255.
The syntax of a read-write string variable is:
dmtlist=<variable(s)>
where:
dmtlist is a reserved word, indicating that a list of read-write variables follows
<variable(s)> is a list of read-write variable names. A separate variable is created for each
configured display manager name. The maximum length of the variable name is eight
characters.
Specifying a read-write long integer variable requires one piece of information: its name.
dmllist=<variable(s)>
where:
dmllist is a reserved word, indicating that a list of read-write long integer variables fol-
lows.
<variable(s)> is a list of read-write variable names. A separate variable is created for each
configured display manager name. The maximum length of the variable name is eight
characters.
Specifying a read-write floating variable requires one piece of information: its name.
dmflist=<variable(s)>
where:
dmflist is a reserved word, indicating that a list of read-write floating variables follows.
<variable(s)> is a list of read-write variable names. A separate variable is created for each
configured display manager name. The maximum length of the variable name is eight
characters.
5
B0193DF – Rev M 1. Display Commands
NOTE
Both read-write and read-only variables can be accessed with the $ operator. How-
ever, only read-write variables can be set within commands.
If the same variable name has been defined as both a read-write variable and read-only variable,
the read-write variable is used in the “$” expansion.
6
1. Display Commands B0193DF – Rev M
Use the $$ operator to delay the expansion of the variable until the next time FoxView or Display
Manager processes the command. For example, when you configure the FoxView display bar, the
dbar_button 1 $$ST1 command always calls in the previous display when the button is selected.
FoxView processes the command when it reads the display bar configuration file, and processes
the command again when the button is selected.
Operator Description
$ Value of variable
| Specifies a range
‘ Retrieves contents of control parameter (refer to “Using Object Manager
Data Values” on page 9)
; Separates commands
. References specific bits in control variable (refer to “Bit Extensions” on
page 20)
@ Extracts text from display text object (refer to “Substituting Text from a
Text Object” on page 10)
Using Commands
Display commands are most often used to configure display buttons. You perform display config-
uration by using either FoxDraw or Display Builder; refer to FoxDraw (B0193WG) or Display
Configurator (B0193NL) for information on display configuration.
Commands are also used in script files. Scripts can be invoked from displays or from menu bar
selections.
Scripts and commands are also used in configuring display bar files, environment files, and
annunciator keyboards and FoxPanels software.
Scripts
Display manager script files (scripts), which include one or more DM built-in commands, are exe-
cuted by a display manager. Display manager script files resemble UNIX shell scripts or
MS-DOS® batch files, but contain commands recognized only by display managers.
You can create a script as you would any ASCII file, using a text editor. Each line of a display
manager script file contains a separate command.
7
B0193DF – Rev M 1. Display Commands
Using Scripts
Each display manager script file must begin with the dmcmd prefix. Refer to “dmcmd - the Built-In
Command Prefix” on page 18.
To ensure that commands execute sequentially, write each command on separate lines. Each line is
limited to 80 characters for 20/30 Series workstations and 255 characters (including $ expansion)
for 50/70 Series workstations. The 50/70 Series display manager recognizes a backslash (\) at the
end of a script line to indicate command continuation on the next line.
If a line is too long, the WP20/30 display manager truncates the line; the 50 Series display man-
ager aborts the script and notifies the operator by displaying a message in the message line.
NOTE
The line length limit applies to the length of a command line after the $ has been
expanded.
Example
This is an example of a script:
dmcmd script
subst temp REACTOR12:TIC1000.MEAS
/usr/disp/display
The first line notifies the display manager that this file is a script.
The second line creates a substitution line, requesting the display manager to retrieve Reactor12’s
compound, block, and parameter data and to store it in the substitution name, temp.
The last line is transferred to the /usr/disp directory where a display receives and presents the data
by substituting REACTOR wherever <temp> appears.
The following example 50/70 Series script uses trailing backslashes:
dmcmd script
= P1 COMP1:BLOCK1.
= P2 COMP2:BLOCK2.
# call in one of three overlays, based on the UNACK status of 2 blocks
== ‘$P1 .ALMSTA.UNACK‘ 1 ov /usr/menus/overlay1 1 else \
== ‘$P2 .ALMSTA.UNACK‘ 1 ov /usr/menus/overlay2 1 else \
ov /usr/menus/overlay3 1
Embedded Scripts
NOTE
Only 50 Series and 70 Series workstations support embedded scripts.
An embedded script is comprised of a set of display commands. These commands, which are
embedded in a display file, are executed by the display manager when the display is invoked after
all Object Manager lists are opened and after all other display call-up actions are performed. The
script is processed as the last part of the call-up process.
Embedding a script in a display file provides a convenient means of handling a script associated
with calling a display. This feature is used in implementing ExpertSelect functionality.
You perform embedded script functions using the 50 Series Display Builder or FoxDraw. Use the
appropriate software to create or edit the display-embedded commands.
8
1. Display Commands B0193DF – Rev M
Refer to Display Builder (B0193MP) or FoxDraw (B0193WG) for information on creating and
editing an embedded script.
Examples
These are examples of the use of this syntax:
== `CMP:BLK.MA` 1 /usr/menus/disp1 # if .MA is set, call disp1
!= `CMP:BLK.MA` 1 /usr/menus/disp2 # if .MA is not set, call disp2
Bit extensions are allowed in the backquote (`) expression. The value of a parameter with
bit extension is 0 or 1. This syntax is also used by the display manager to display bit-extension
trend data. By using bit extensions, the previous example can be configured as:
== `CMP:BLK.ALMSTA.MA` 1 /usr/menus/disp1 # if .MA is set, call disp1
!= `CMP:BLK.ALMSTA.MA` 1 /usr/menus/disp2 # if .MA is not set, call disp2
An optional second argument is allowed within the backquote expression to support the $PICK1
functionality. The previous example can also be configured as:
= PICK1 CMP:BLK.OUT # .OUT parameter is picked
== `$PICK1 BLKSTA.MA` 1 /usr/menus/disp1 # if .MA is set, call disp1
!= `$PICK1 BLKSTA.MA` 1 /usr/menus/disp2 # if .MA is not set, call disp2
The evaluation of the backquote expression converts into an ASCII integer. For example, if
CMP:BLK.MEAS is currently 85.538, the expression:
= P8 `CMP:BLK.MEAS`
expands to:
= P8 86
which sets the WP variable P8 to “86”.
When evaluating display command lines, the display manager first expands any “$” expressions,
and then expands the backquote (`) expressions. For example, if:
P8 = CMP1:BLK.P1
P7 = CMP2:BLK.P2
then
setb $P8 `$P7`
expands to:
setb CMP1:BLK.P1 `CMP2:BLK.P2`
which sets CMP1:BLK.P1 to the current value of CMP2:BLK.P2
9
B0193DF – Rev M 1. Display Commands
Rules
♦ Nesting backquote expressions is not supported. For example, the following is not
allowed:
setb CMP1:BLK.P1 ``C:B.P`` # nested backquotes are not valid
♦ Any command line may contain backquote references. The backquote syntax supports
shared variables in addition to Control Processor variables.
♦ If the backquote expression can not be evaluated, the command is aborted and a mes-
sage displays on the top message line; for example:
invalid C:B.P syntax
-or-
point is not found on the network
Rules
Substituting text has the following rules and limitations:
♦ It is available only on display picks.
♦ It cannot be included in scripts, as there is no text object from which to extract text.
♦ Only text objects can substitute text.
♦ The configured function must be:
♦ A display command (FoxView only)
♦ execute (Display Manager only)
♦ open display
♦ open overlay
♦ set relative pick
♦ If the configured function is set relative pick and the text object is subsequently
updated with new text, the text object becomes unpicked; that is, the highlight box is
removed and PICK1 is cleared.
Example 1
If the text object is configured for set relative pick and contains the text
COMP1:BLK1.PNT1, picking this object expands
= PICK1 @
to
= PICK1 COMP1:BLK1.PNT1
PICK1 would then be set to COMP1:BLK1.PNT1, and the text object would be highlighted.
If the actual displayed text was updated (changed in any way), PICK1 would be cleared and the
text object would not be highlighted.
10
1. Display Commands B0193DF – Rev M
Example 2
If the text object contains a multi-word string used as a single argument, surround the @ with quo-
tation characters (“ ”).
For example, if the text object contains the text COMP1 BLK1 PNT1, picking the object
expands the command line from
= PICK1 “@”
to
= PICK1 “COMP1 BLK1 PNT1”
Example 3
If the text object contains a multi-word string intended as separate arguments, do not include
quotation characters (“ ”).
If the text object contains the text COMP1:BLK1 PID, when picked, the command line
stddisp @
expands to
stddisp COMP1:BLK1 PID
Syntax
FoxView and the 50 Series Display Manager (Version 3.3 or later) support individual word selec-
tion during expansion of a @. This syntax allows individual words to be extracted from the dis-
played text.
Syntax:
@[ #num[#] ]
The num argument must be preceded by the pound character (#).
The num argument may optionally be terminated with a # to allow for numbers in the text follow-
ing the @#num sequence.
Here are examples of this feature’s use:
Text Record
Contents Configured Action After Substitution
Hello World = PICK1 @#1 = PICK1 Hello
Comp Block Param = PICK1 @#1:@#2.@#3 = PICK1 Comp:Block.Param
Comp Block Param = PICK1 @#1#9:@#2.@#3 = PICK1 Comp9:Block.Param
Comp Block = P1 @#1 ; = P2 @#2 = P1 Comp ; = P2 Block
Comp Block toggle @#1:@#2.MA toggle Comp:Block.MA
You can use these replacement types in conjunction with a Read-File menu. A Read File might list
a set of recipes with descriptions, with the recipe name as the first word of the text field.
The relative pick function requires only the name of the recipe, and therefore can be assigned as =
PICK1 @#1.
11
B0193DF – Rev M 1. Display Commands
The numbers under the Label heading, one through ten, correspond to ten positions on the menu
bar, from left to right. Menu fields appear on the menu bar only when you associate a path with a
label name. Specifying a path tells Display Manager where to search for a command.
For example, the pickable Select field appears on the right-most position on the menu bar. When
a user chooses it, the built-in stddisp command executes.
12
1. Display Commands B0193DF – Rev M
NOTE
You may find it helpful to see how Invensys Foxboro uses display commands, partic-
ularly in the Initial environment. Use the Workstation Configurator to access and
view default environments.
Command Description
ov This command requires that variables (such as P1 and P2) or substitution lists
be used with the associated overlay display file to specify the COM-
POUND:BLOCK connection. Using the ov command, the same overlay dis-
play file can be opened multiple times, to connect to multiple
COMPOUND:BLOCKs.
ov_conn This command provides call-up of an overlay such that its associated COM-
POUND:BLOCK name is defined when the overlay is opened, not when it is
built. Like the ov command, the same overlay display file can be opened mul-
tiple times to connect to multiple COMPOUND:BLOCKs. However, for
each call-up of the overlay using ov_conn, connection is made only to the
explicitly-specified COMPOUND:BLOCK. Because the COM-
POUND:BLOCK name is defined when the overlay is opened, each time the
overlay displays, it is assured that every connection (every dynamic input and
operator connection) connects to the specified COMPOUND:BLOCK. The
use of ov_conn is the preferred choice when security is an issue.
Using the ov and ov_conn commands is similar, in effect, to configuring a button on a base dis-
play to open an overlay into a specific location on the screen. However, when using ov or
ov_conn, the specified position overrides the overlay position specified in the overlay display file.
This permits scripts to call up overlays without configuring the overlay position in the display file.
13
B0193DF – Rev M 1. Display Commands
Both files share a grouped identifier or keyword, for example, <301> or <reactor>, where the data
and template merge. Executing the subslist built-in command merges the two files, resulting in
a reusable display.
For detailed information on building and configuring displays, refer to:
♦ Display Builder for 50 Series Workstations (B0193MP)
♦ Display Configurator for 50 Series Workstations (B0193NL).
Rules
You can use any of these three pairs of grouping characters: angle brackets (< >), braces ([ ]), or
parentheses.
<,(,[ 6 to 27 characters ],),>
Grouped keywords or identifiers precede the lines where text or data merge into the template.
A line cannot exceed 200 characters.
Use underscore characters to the right of the grouped keywords or identifiers. For example:
<TTT>______________________________
<201>___________ XXXXXXX <401>___________
<202>___________ XXXXXXX <402>___________
NOTE
If <semi> or <port> types of text are on the display, do not configure them for con-
tents < as suggested. Only the xxxxxx type field, not substitution field, should be
configured for contents <.
If the allocated space for substitutions is too short when the data or text merges with the template,
they are truncated to the right.
14
1. Display Commands B0193DF – Rev M
NOTE
The display template and substitutions list’s keywords or identifiers must match
exactly. For example, <abc> is different from (abc).
All substitutions take place before the display appears on the screen. Then subsequent displays
called to the screen clear previous substitutions.
Example
The following substitution list passes its text and connection names (data) to the display template
found in the previous section:
subs:/usr/logs/groups/displayname
<TTT>=FURNACE PRESS
<port>=PT0101
<201>=Furnace Press PT1
<301>=CPO8A01:PT0101.PNT
<401>=PSIG
<semi>=PT0102
<202>=Furnace Press PT2
<203>=CP08A01:PT0102.PNT
<204>=PSIG
The first line of the file must begin with subs: followed by the display template’s file name.
The equal signs (=) define keywords or identifiers with text or data. The keywords or identifiers
on the display template that match the substitution list’s keywords or identifiers receive the
defined text or data.
15
B0193DF – Rev M 1. Display Commands
Display Template
<TTT>_______________
<port>__________<201>__________XXXXX <401>___________
<semi>__________<202>__________XXXXX <402>___________
Merged Display
FURNACE PRESSURE
PT0101 Furnace Press PT1 23.1 PSIG
PT0102 Furnace Press PT2 233.2 PSIG
You can use the same display template with another substitution list. You can create new substitu-
tion lists by copying the original list, editing the new list, and saving it with a different name than
the original list. For example, the following substitution list is called subslist_name2:
16
1. Display Commands B0193DF – Rev M
Example
For example, configure your display object by specifying the default range of the following global
variable P7:
$P7.MEAS|RI1
Then, in the script file, assign P7 the following connection value:
= P7 REACTOR1:FC1000
When you build the display:
♦ The P7 variable expands, creating the connection to REACTOR1:FC1000.MEAS
♦ The RI1 range parameter (high and low scale input ranges) for the
REACTOR1:FC1000 block is requested from the Control Processor
♦ The display object receives the ranges
♦ The REACTOR1:FC1000.MEAS display conforms to the ranges.
17
B0193DF – Rev M 1. Display Commands
Examples
As an example, by assigning the following to the program entry with the annunciator panel con-
figurator,
the System Management subsystem is invoked when the annunciator key is pressed. This elimi-
nates the need for the display manager to read a script file containing this command, thereby
slightly speeding up the access time.
In the following example, when key 2 on panel 3 is pressed, the annunciator light is extinguished
before calling up the assigned display, North_Tower.
Restrictions
Be aware of these restrictions regarding the display commands assigned to annunciator keys.
1. The entire command must fit within 14 characters.
2. The command must contain at least one space, that is, the command cannot be a sin-
gle-word command.
3. The display manager executes the program entry before the display entry.
Display Commands
Display manager built-in commands begin with dmcmd and follow certain rules. Commands fall
into distinct categories.
18
1. Display Commands B0193DF – Rev M
NOTE
The lowercase dmcmd built-in command is entirely different from the uppercase
DMCMD global variable.
Built-In Commands
Before executing most built-in commands, Display Manager requires the dmcmd prefix;
FoxView does not require this prefix. dmcmd is required only in single-word commands. The let-
ters dmcmd direct the display manager to check its list of built-ins. The display manager checks its
command list, recognizes the command, and then executes it.
The dmcmd prefix must be separated from the built-in command with a space. For example,
dmcmd stddisp.
Script Files
Both FoxView and Display Manager require that each script file (script) be identified with dmcmd.
The first letters on the first line of every script must be “dmcmd”. See “DM Commands for
Annunciator Panel Assignments” on page 17.
! CAUTION
Exercise extreme care when defining and re-defining global variables that are used in
generic overlays when more than one of these overlays are to be displayed at the
same time.
An example of this situation is the execution of a display manager script that sets a display man-
ager variable (such as PICK3) to a COMPOUND:BLOCK path that invokes a generic overlay
that has objects configured with a path of “$PICK3.Parameter”.
When a pick invokes a display manager script that sets display manager variables and then calls a
generic overlay, if a second display manager script is called (which also uses the same generic over-
lay and redefines the PICK3 variable), if an operator selects a parameter on the first overlay to
modify, the parameter on the second overlay is modified. This occurs because the PICK3 variable
was redefined to the second overlay’s path.
19
B0193DF – Rev M 1. Display Commands
If multiple overlays are to display at the same time, use a unique variable (such as PICK3 and
PICK4) for each of the overlays. This ensures the use of the intended path when an object on an
overlay is selected.
Do not define the PICK2 display manager variable in a display manager script that invokes a base
display or overlay display, because while loading the graphic, the display manager sets PICK2 to
the null string.
Bit Extensions
Use bit extensions to reference specific bits within packed Boolean and packed long parameter
data types.
Parameter bit extensions contain logical operators and one of the following: a value mask, a list of
Boolean numbers, or a list of bit acronyms.
Symbol Function
~ Inverts the Boolean result.
& result = bitwise AND of source value and mask, then compare whether
the result equals the mask. The result is true if all the bits defined by the
mask are set in the value.
A result = bitwise OR of source value and mask. The result is true if any bit
defined in the mask is set in the value.
Not needed if ORing the bits and bitmask or bit_acronym_1 does not
start with an “A”. For example, to connect to the MA BLKSTA bit, the
expression Comp:Block.BLKSTA.MA is valid and it is identical with
Comp:Block.BLKSTA.AMA. When connecting to the Active BLKSTA
bit, the connection Comp:Block.BLKSTA.ACT is invalid; the valid
expression is Comp:Block.BLKSTA.AACT.
X result = bitwise XOR of defined bits. If all defined bits are the same, the
result is 0; otherwise, the result is 1. For example, the result of the con-
nection Comp:Block.Param.XB3,B6,B7 is:
when Boolean numbers 2, 6, and 7 are all 0 or all 1, the result is 0; oth-
erwise, the result is 1.
bitmask Hexadecimal bitmask; 4 digits if masking a packed boolean, 8 digits if
masking a packed long.
20
1. Display Commands B0193DF – Rev M
Symbol Function
bit_acronym Multiple bit acronyms or Boolean numbers separated by commas. You
can mix bit acronyms and numbers. Boolean numbers have the follow-
ing syntax and range:
Data Type Syntax OM data bit numbers
Packed Long B1,B2,...B32 (bit 31, bit30, ... bit 0)
Packed Bool B1,B2,...B16 (bit 15, bit14, ... bit 0)
B1 represents the most significant bit; B16/B32 represent the least sig-
nificant bit (OM data is bit 0). Refer to “Bit Extension Acronyms” on
page 147 for a list of bit acronyms.
Examples:
Comp:Block.BLKSTA.MA,LR
Comp:Block.BLKSTA.~XMA,LR,ON
SHAREDVAR..B1,B2,B16
Rules
Use a period (.) to separate the parameter name from the bit extension name. Use two periods (..)
to separate a shared variable name from its bit extension. The syntax is as follows:
COMPOUND:BLOCK.PARAMETER.bitextension
shared_variable..bitextension
If you use $ substitution, do not separate bit extensions from the parameter name. For example,
do not use the “$P1.bitextension” connection expression, because utilities such as convdisp2_20
evaluate the bit extension as a parameter name, and a bit extension without a parameter name has
no meaning.
21
B0193DF – Rev M 1. Display Commands
NOTE
WP20s and WP30s recognize an additional file type, an environment file.
On both Windows NT and Solaris® workstations, the display manager recognizes the file type by
checking the file’s first two bytes, called the UNIX magic number.
For display files and environment files, both binary files, the display manager checks the magic
number. For the script and substitution list files, both ASCII files, the display manager searches
the file’s contents for the characters “dm” and “su”, respectively.
Each display manager file has the following magic numbers and display actions:
UNIX Magic
Display File Type Number Display Manager Action
Packed display f0d0 Presents the display on screen.
(20/30 Series)
Packed display f1d0 Presents the display on screen.
(50 Series)
Foxboro Display File f3d0 Presents the display on screen.
FoxView (50 Series)
Foxboro Display File f2d0 Presents the display on screen.
FoxView (70 Series)
Environment f0b0 Changes to named environment.
(20/30 Series)
Script dm Executes the script.
Substitution list su Makes data substitutions and
presents the display on screen.
Each of the above actions is accomplished in a variety of ways, as described in “Display Manager
Search Paths” on page 23.
22
1. Display Commands B0193DF – Rev M
The Display Manager uses the following sequence to open and read files:
1. It attempts to open the desired file on the local (WP) disk.
2. If this attempt fails, it attempts to open the file (of the same name and path) on the
AP that is currently mounted.
3. If this attempt fails, it attempts to open a file of the same name and path, but relative
to the /usr/fox/ia16 directory on the same AP as the previous step.
This sequence is followed for all files that the Display Manager reads explicitly, including display
files, scripts, programs, and directories.
The only exceptions to this sequence are files specifically configured to be called up from remote
locations, for example, if a button is configured to call up a display $REM/usr/custom/
New_Initial_Display. When searching for these files, the Display Manager does not attempt to
open the file on the local disk.
Searching can have an adverse impact on display call-up speed, but it does allow for placing files
in a central location on an AP for access by multiple 50 Series WPs. When call-up speed is critical,
ensure that:
♦ Copies of desired files are on the local disk
♦ Displays are converted and repacked.
This sequence is used only for files that the Display Manager reads. It is not used for programs the
Display Manager may attempt to run, and it does not utilize or change the PATH environment
variable.
FoxView has a search path mechanism that allows displays for both Display Manager and
FoxView to reside on the same disk. Display Manager display files and FoxView display files can
co-exist because FoxView automatically looks for display files in both the /opt and /usr
directories.
When FoxView is passed a filename starting with “/usr”, FoxView automatically replaces the
“/usr” directory with “/opt” and first checks whether the file exists in the /opt directory structure.
If it does, FoxView uses this file. If not, FoxView checks the /usr directory structure.
23
B0193DF – Rev M 1. Display Commands
For example, if an “open display” button pick on a display is configured to open the file
“/usr/menus/display”, FoxView first checks whether the file “/opt/menus/display.fdf ” exists. If it
does, the file in /opt is opened. If not, FoxView checks for the file as specified in the /usr directory
structure, and opens that one if it exists. This allows FoxView display file to reside in the /opt
directory, while Display Manager files are located in the /usr directory structure.
In a similar way, FoxView also has a searching mechanism that is used when accessing standard
Invensys Foxboro delivered files. For example, the library objects that are shipped as part of
FoxView/FoxDraw are delivered in the /opt/fox/displib directory structure. If you modify files in
this directory, these edits are lost when a new software release is installed.
! CAUTION
To prevent this from occurring, place modifications or additions to the standard
Foxboro library objects in the directory structure /opt/customer/displib.
FoxView automatically searches for display library files in the /opt/customer/displib directory
before accessing the files in /opt/fox/displib. In addition to /opt/fox/displib, FoxView also applies
this approach when opening files in the /opt/fox/env directory. First the directory structure
/opt/customer/env is checked for the file. If not found there, the file is located in the /opt/fox/env
directory.
24
2. Alphabetical List of Display
Commands
This chapter alphabetically lists and describes display commands.
NOTE
Some commands listed in this chapter are no longer handled by the display man-
ager, but are instead handled by a different application, such as the Alarm Server
Task (AST). Commands not handled by a display manager are indicated in the
command’s Remarks section.
25
B0193DF – Rev M 2. Alphabetical List of Display Commands
26
2. Alphabetical List of Display Commands B0193DF – Rev M
27
B0193DF – Rev M 2. Alphabetical List of Display Commands
Command Reference
The following information is provided for each command:
Category Contents
Workstations Icons indicating the workstations on which this command can
run.
S/W Release: You can use the command on this version (or later)
Use Purpose and description of the command
Syntax Command syntax, including all arguments
♦ An icon indicates when an argument applies only
to a certain workstation
Remarks Additional information
28
2. Alphabetical List of Display Commands B0193DF – Rev M
The following icons represent workstations on which the particular command can be used.
Icons with a slash indicate that the command can not be used on this workstation.
NOTE
The “30” icon also indicates use on a PW.
addalmpnl
NOTE
On Model 51 workstations and 70 Series workstations, this command is read by the
Alarm Server Task (not the Display Manager or FoxView).
S/W Release:
3.0
6.0
Use: For alarm panel configuration at run time, adds a path for a chain of
annunciator key (or soft alarm panel button) actions
29
B0193DF – Rev M 2. Alphabetical List of Display Commands
alarm_bar
30
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks: This command displays or removes the alarm bar at the top left of the
FoxView window. The alarm bar contains the System and Process buttons.
almack
almack_c
Use: For alarming, acknowledges alarms for all blocks in a specified compound
Remarks: This command sends an alarm acknowledge message to the specified com-
pound.
For example,
dmcmd almack_c REACTOR
sends an alarm acknowledge message to the REACTOR compound and
sets the UNACK parameter of each block in the compound to 0.
31
B0193DF – Rev M 2. Alphabetical List of Display Commands
almackone_c
Use: For alarming, acknowledges the compound of the selected alarm on the
alarm display
almackpage_c
Use: For alarming, acknowledges all the compounds on the alarm display page
almbkup
Use: For alarming, recovers alarms from another WP when multiple WPs
receive the same alarms.
32
2. Alphabetical List of Display Commands B0193DF – Rev M
WPs at Version 3.3 may only back up other 50 Series Version 3.3 worksta-
tion alarms.
The following actions cause the WP alarm recovery to abort:
♦ Mismatch in the number of annunciator assignments between
sending and receiving WPs
♦ Communication errors during transfer of the alarm tables
♦ The backup WP is busy sending alarm tables to another WP
♦ Incompatible station types.
If the alarm recovery aborts before completion, all tables initialize (that is,
the CAD list is not kept if annunciator tables are not sent successfully). In
addition, the message WPLBUG Unable to recover alarm tables from
backup appears on the message line, indicating that the recovery was not
successful.
almdel
Use: For alarming, clears the selected alarm from the alarm display and the
Alarm Alert database
Remarks: This command clears the selected alarm from the alarm display and the
Alarm Alert database.
33
B0193DF – Rev M 2. Alphabetical List of Display Commands
almdelpage
Use: For alarming, clears all the alarms on the alarm display page and the Alarm
Alert database
almhist
Use: For alarming, invokes the Alarm History Display from the local Historian
Syntax:
dmcmd almhist
Remarks: Displays the alarm history file from the local Historian.
For Model 51 workstations, this is the Historian on the currently
mounted AP. Historian access can be changed by mounting a different AP.
For Model 51 workstations, the match argument can be used. When the
match argument is specified, the file is accessed from the /usr/fox/cus-
tomer/alarms/amspec directory.
34
2. Alphabetical List of Display Commands B0193DF – Rev M
almredir
Remarks: During normal operation, many users maintain their Current Alarm Dis-
play (CAD) on one of their WPs at all times. From this graphic, three
types of displays may be called up that are related to active alarms:
♦ A user graphic associated with a picked alarm
♦ A Block Detail Display for a picked alarm
♦ A user graphic for the highest priority alarm being held by the
Alarm Manager subsystem.
You can install an optional set of CAD buttons to override CAD redirec-
tion. This optional set of buttons contains a new button, DISP LOCL.
Redirection is overridden by clicking DISP LOCL, which causes the next
display to be called up on the current WP where the CAD is being dis-
played. This button acts as a toggle; two sequential picks causes the redi-
rection to again be enabled.
These displays may be redirected to other WPs, allowing the CAD to
remain on the CRT.
The following rules further define the redirection feature:
♦ Each type of display (user graphic, Block Detail Display, or top
priority display) may be redirected to different WPs.
♦ CAD redirection is configured through the /usr/fox/alarms/com-
mgrp.cfg file.
♦ You can temporarily override the redirection, via the DISP LOCL
button (see above).
♦ Clicking PREV DISP on the CAD returns to the previous display
on current WP.
♦ Each time the CAD is invoked, the redirection is automatically
reinstated.
♦ Redirection is not available from the Alarm History Display.
♦ The redirected display file must be on the redirected WPs hosting
AP or local disk.
♦ Display commands (dmcmd’s) that have been assigned to the
DISPLAY NAME field in the alarm panel configuration file are
not redirected.
♦ Displays from annunciator key picks are not redirected.
35
B0193DF – Rev M 2. Alphabetical List of Display Commands
annun
Remarks: Use this command to affect an annunciator light on the annunciator key-
board from a WP:
♦ From flashing to steady (on)
♦ From steady (on) to off.
Use the values in the chart below to specify the annunciator key’s panel,
the annunciator key, and the state of the annunciator key light.
Workstation Annunciator Value
Model 50/51/70 Panel 1-12 (if multi-headed)
Key 1-16
Model 70 Light steady 3
Model 70 Light off 4
Model 50/51/70 Light flashing 5
For example,
dmcmd annun 2 7 4
issues a command to annunciator panel 2, key 7 to turn off a flashing
light.
dmcmd annun 2 7 3
issues a command to annunciator panel 2, key 7 to turn a flashing light to
steady (on).
NOTE
On a WP20/30 or PW, you can not change a light that
is off to either steady or flashing. You can not change a
steady light to flashing.
36
2. Alphabetical List of Display Commands B0193DF – Rev M
applic
Use: Runs UNIX executable programs and UNIX scripts from a WP on an AP.
For 70 Series, refer to the note below.
NOTE
This command writes to the named pipe /FSD/shell
which runs on the AP. Sometimes a program require
specific environmental parameters, such as PATH.
Since you cannot enter these parameters from a
display, set the parameters from a script file before
executing the program or script on the AP.
37
B0193DF – Rev M 2. Alphabetical List of Display Commands
= (assign a value)
Remarks: The equal character (=) assigns a value to a variable. This command is a
shorthand version of the setglbl command.
For example,
dmcmd = p7 xyz
stores the xyz string in the global variable p7. The value of $p7 is now xyz.
If the global variable does not exist, the Display Manager creates it. This
does not apply to FoxView.
See also setglbl.
backsurf
38
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks: This command directs a display to appear on the screen background (the
back surface) of the WP screen. The background displays all 32 colors
available on a WP20, WP30, or 50 Series workstation. The display file-
name is optional.
Providing the display filename causes the display manager to set the cur-
rent surface, front or back, as the default surface. The front surface dis-
plays dialog boxes and pull-down menus only. If you do not provide the
display filename, the display manager sets the back surface as the default
surface.
See also frntsurf.
baklog
Use: Copies the current display manager error messages file to log.bak
Remarks: A file maintained on the AP contains all the display manager error mes-
sages that have displayed on the message line. Informational messages
(such as those displayed when using the Current Alarm Display) are not
logged.
39
B0193DF – Rev M 2. Alphabetical List of Display Commands
blink
Remarks: Use the following state values to change the blink condition or state of a
menu field:
0 – solid
1 – blink
For example, dmcmd blink /usr/fox/sys 1 makes the menu bar fields
pointing to the /usr/fox/sys directory blink.
button
Remarks: Use this command in a script file to define selections and buttons from the
menu bar at the top of the WP screen.
40
2. Alphabetical List of Display Commands B0193DF – Rev M
FoxView requires all arguments. The num argument, though not used by
FoxView, is required as a place holder.
Omitting the path deletes a menu button name or label, but leaves the
current path definition unchanged.
Omitting the label and path deletes the button from the menu.
The menu bar in all environments holds up to ten positions, numbered 0
to 9. Specify the field to change in the num argument.
For Display Manager, each label has up to six characters.
For FoxView, there is no limit to the number of labels or the length of the
label name. Selecting the menu bar button activates a path of up to 70
characters. The path executes a program, script, or file, or creates a new
menu. For FoxView, a path may point to a menu pull-down file.
For example:
menu bar
creates a menu item in the second position (from the left) on the menu
bar, designated by the number one. Oven2 appears as the label on the
menu bar. When you choose the menu item, the path accesses the direc-
tory containing the file or built-in command.
When you specify a directory, you must run the mkmact utility to generate
the file used to create the pull-down menu.
For WP20s and WP30s, there are two ways to generate pull-down menu
file:
♦ From the SftMnt pull-down menu in the Software Engineer’s envi-
ronment, choose New_Menus
♦ From the system prompt in VT100 mode, type
/usr/foxbin/mkmact in the directory containing the menu file
you wish to update.
41
B0193DF – Rev M 2. Alphabetical List of Display Commands
For 50 Series and 70 Series with FoxView, FoxView does not display:
Files have an extension that matches those in the FV_IGNORE variable.
By default, these extensions are .pdf, .g, .m1, .dat, .i, and .bmp.
By default, the ALPHA WP global variable alphabetizes pull-down
menus.
chng_env
Remarks: This command causes the display manager to log the script change in the
Operator Action Journal, using the current value of the ENV WP global as
the “from” value, and the current script file name as the “to” value. Then
the WP ENV global variable is set to the current script filename.
42
2. Alphabetical List of Display Commands B0193DF – Rev M
chng_menu_bar
Use: Redefines the menu bar without changing environments. This command
provides the same functionality as chng_env, except the change is not
logged as a “change environment” in the Operator Action Journal (OAJ)
and the environment field in FoxView’s status bar does not change.
See also nologscr and passwd.
clearpick
close
43
B0193DF – Rev M 2. Alphabetical List of Display Commands
NOTE
1. On WP20s and WP30s, arguments are not
permitted.
where:
-nonsticky closes all non-sticky overlays.
-all closes all overlays.
-last closes the last-opened overlay.
-first closes the first-opened overlay. No other regular or sticky overlay is
closed.
-relpick closes the overlay that contains a relative picked object.
-name fname closes all overlays that match the filename fname.
-cb cbname closes a generic overlay connected to block cbname.
-l <location> closes the overlay that intersects with <location>. The
location argument is the same as the ov command’s location argument,
and is defined as:
Closes all overlays
location located/intersecting
UL Upper-left quadrant
UR Upper-right quadrant
LL Lower-left quadrant
LR Lower-right quadrant
UP Upper horizontal half of screen
LOW Lower horizontal half of screen
LEFT Left vertical half of screen
RIGHT Right vertical half of screen
MIDDLE Middle of the screen
ALL All overlays
Examples:
close -l UP
Closes all overlays located in or intersecting the screen’s upper half.
close -l UL -l LR
Closes all overlays intersecting the upper-left and lower-right screen quad-
rants.
44
2. Alphabetical List of Display Commands B0193DF – Rev M
Row,Column Coordinates:
You can define coordinates to be virtual coordinates, in percentage of full
screen, or in character locations. Use row,column coordinates to close the
overlays that intersect with the coordinates.
row,column syntax:
This example shows a row, column definition for virtual coordinates:
0<=row <=3455
0<=column<=5119
Remarks: The defined area is a rectangle with an upper-left corner at character loca-
tion (0,0) and a lower-right corner at character location (24,80).
Multiple options in a single command are permitted, for example:
(3000,40CHAR)
The command options are executed in sequence. For example, to first
close the non-sticky overlays and then close the last-opened overlay, exe-
cute the close -nonsticky -last command.
clralmpnl
NOTE
On Model 51 workstations or 70 Series workstations, the Alarm Server Task (not
the Display Manager or FoxView) reads the script file.
Use: For alarm panel configuration at run time, clears alarm panel definitions
from Alarm Server Task (AST) memory
45
B0193DF – Rev M 2. Alphabetical List of Display Commands
Remarks: This command, which clears any alarm panel definitions in 50 Series
memory, is used primarily as the first line in an alarm panel definition file.
For more information, refer to Process Alarm Configuration (B0193AU)
and Workstation Alarm Management (B0193RV).
See also addalmpnl and prtalmpnl.
# (comment character)
Syntax: # <strings>
Remarks: The display manager ignores characters after the pound sign (#) on a script
line.
csa
46
2. Alphabetical List of Display Commands B0193DF – Rev M
Omitting name stores the selected CSA name (and optional PSAP address)
in the X resource variable SEL_VAR. If the current display manager con-
tains an OM list connection to the selected compound, the compound’s
PSAP address is stored in the SEL_VAR X resource property.
blktype is an optional argument that contains a variable name in which to
store the block type name. When a compound name is the only selection,
this argument is ignored.
Example:
csa P1
Stores the selected Compound:Block.Parameter name into variable P1.
NOTE
When calling up the CSA menus, the display manager does not update connections
or trends. Therefore, when the display manager exits the CSA menus, real-time
trends have lost trend data and display a straight line between the last recorded line
value (just before CSA menus were displayed) and the new line value (the value
recorded after closing CSA menus). The time span of the lost data is equal to the
time that the CSA menus were displayed.
dbar_button
47
B0193DF – Rev M 2. Alphabetical List of Display Commands
Remarks: Use this command to define the actions of each of the display bar buttons
on the display bar. there are two display bar formats: buttons with icons or
bitmaps; buttons with labels only.
See also dbar_tmplt.
48
2. Alphabetical List of Display Commands B0193DF – Rev M
dbar_tmplt
Remarks: This command presents the display bar for the FoxView environments.
There are two template formats:
♦ $FV_DBAR/icon_display_bar is the display bar that has eight but-
tons with a bitmap or icon on each button.
♦ $FV_DBAR/button_display_bar is the display bar that has 18 but-
tons with a label on each button.
See also dbar_button.
disable
Remarks: This command disables the display manager from changing CP variables.
Parameter changes that could have been logged to an Operator Action
Journal log are disabled. This includes operator actions such as ramping,
entering values, acknowledging alarms, and the display manager set com-
mand. Use the enable command to permit changes to CP variables.
See also enable.
49
B0193DF – Rev M 2. Alphabetical List of Display Commands
display_bar
Remarks: This command displays or removes the display bar at the left hand side of
the FoxView window.
dmexit
Use: Exits the display manager and closes the display manager window.
Remarks: When exit_num is 0, the 50 Series (Version 3.3 and later) display manager
displays a message on the screen notifying the operator that the display
manager will exit.
dmexit 0 displays a dialog box containing the text “about to exit Dis-
play Manager”.
Using the exit-num originator arguments places the message “about to
exit Display Manager: requested by <originator>” in the dialog box
and logs the exit to the system printer.
After displaying the dialog box, the display manager delays for three sec-
onds, providing time for the operator time to read the message.
See also exit, applic, and run.
50
2. Alphabetical List of Display Commands B0193DF – Rev M
do_lia
Use: For alarming, invokes the display related to the highest priority loop in
alarm
Remarks: This command invokes the user display assigned to the Compound:Block
via the annunciator table/panel configurators. If no user display is
assigned, the command calls up the block detail display.
Use: Executes a display manager script and displays to the local workstation
Syntax: e <display_name>
Remarks: For example, to invoke a display based on the auto or manual state of a
block, enter the following command:
== Comp:Block.MA 1 e /usr/menus/display1
!= Comp:Block.MA 1 e /usr/menus/display2
The first example checks the state of the MA parameter. If the state is one
(auto mode), the display /usr/menus/display1 is invoked.
The second example also checks the state of the MA parameter, but
invokes the display /usr/menus/display2 if the block is in manual mode.
else
51
B0193DF – Rev M 2. Alphabetical List of Display Commands
enable
Use: Enables the display manager to set Control Processor (CP) or application
processor variables
Remarks: Enables the display manager to change CP variables. You can disable this
ability with the disable command or by configuring a display manager to
be view-only.
See also disable.
== (equality)
Remarks: This command performs an action when a pair of strings are equal. The
command invokes an action specified by the built-in command following
the strings. Only built-in commands perform actions. However, you can
access scripts, subslists, and files that are not built-ins.
For example:
== ,s1 ,$p2 dmcmd /usr/menus/display
calls a display
== ,s1 ,$p2 script /usr/scripts/myscript
runs a script
== ,s1 ,$p2 subslist /usr/subst/mysubs
runs a subslist
52
2. Alphabetical List of Display Commands B0193DF – Rev M
NOTE
You cannot substitute the == command for connection variables that read and
update data to a display. Therefore, this command does not execute a specific action
when a pending condition occurs such as when X reaches Y, do Z.
execute
53
B0193DF – Rev M 2. Alphabetical List of Display Commands
NOTE
1. The execute command is not permitted in a pref command. Instead, use one of
the following:
pref -DMNAME DMCMD “/user/custom/Initial_Disp”
pref -LBUG DMCMD “= STA DMNAME ; /usr/custom/Initial_Disp”
The first example is the quickest and most efficient way of performing the com-
mand.
2. Attempting to send two execute commands to the same display manager rarely
executes both commands. Execute both commands by listing the commands in a
display manager script file and having the WP execute the script.
exit
Use:
54
2. Alphabetical List of Display Commands B0193DF – Rev M
Restarts the display manager (exit 0), or runs or starts new programs for
exit 11 and exit 16
Remarks: This command cancels display manager processing and passes control to
another program indicated by number.
For example,
dmcmd exit 2
exits the display manager and runs the Display Configurator (indicated by
the 2).
If you omit number from the exit command, the display manager stops
processing the current display. However, the display manager continues
processing through menu selections and remote commands facilitated by
the global variable DMCMD.
Control Values: The following table shows the control value for the exit command:
55
B0193DF – Rev M 2. Alphabetical List of Display Commands
56
2. Alphabetical List of Display Commands B0193DF – Rev M
frntsurf
Remarks: This command directs pull-down menus and dialog boxes to appear on
the screen foreground (the front surface) of all WPs (except WP10). Seven
colors are available on the front surface.
If you do not provide a display filename, the Display Manager sets the
front surface as the default surface, forcing all selected displays to appear
in the foreground.
If you provide a display filename, the Display Manager sets the current
surface, front or back, as the default surface.
57
B0193DF – Rev M 2. Alphabetical List of Display Commands
Use: Conditionally executes an action based on the relative values of two vari-
ables
Remarks: val_1 and val_2 are ASCII numeric strings. The comparison is performed
by converting the strings to integers and then making the specified com-
parison. If the comparison is true, the cmd command executes.
cmd may be any display command and may include arguments.
You may use conditional expressions in any display command line, includ-
ing display file commands and DM scripts.
The ge command supports the else command.
Note that this comparison differs from “==” and “!=” comparisons, which
perform string comparisons.
See also: equality (==), inequality (!=), less than (lt), less than or equal to
(le), and greater than (gt).
get_select_pt
Use: Gets the variable name on the system clipboard and places the variable
name in the WP string variable wpvar
58
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks: This command retrieves a parameter name that was previously saved to
the system clipboard by the set_select_pt command (see “set_select_pt”
on page 101). This set of commands provides a copy/paste function for
parameter names. Although the name string that is retrieved need not be
the name of a compound:block.parameter, the length of the string is lim-
ited to 40 characters.
getenv
Remarks: The display manager sets the value of a read-write WP global rw_variable
to the value of the UNIX environment variable. This command accesses
display manager environment variables for use by other applications or for
display purposes.
See also setenv.
getstr
Remarks: The getstr (get strings) command updates passive text connections.
When screen is not defined, the command affects the currently selected
screen. Otherwise, the command updates only the defined screen. Doing
so too often, however, decreases system performance.
59
B0193DF – Rev M 2. Alphabetical List of Display Commands
goto alms
Use: For alarming, displays a specific page within the Current Alarm Display or
Alarm History Display
Remarks: The page argument is the page number within the alarm display. Unless
page is prefixed by a “+” or “-” character, this is an absolute page number.
Using a “+” or “-” character changes the page argument to a relative num-
ber.
For example:
goto alms 1 Displays page 1
goto alms +1 Displays the next page
goto alms -1 Displays the previous page
gt (greater than)
Use: Conditionally executes an action based on the relative values of two vari-
ables.
Remarks: val_1 and val_2 are ASCII numeric strings. The comparison is performed
by converting the strings to integers and then making the specified com-
parison. If the comparison is true, the cmd command executes.
cmd may be any display command and may include arguments.
You may use conditional expressions in any display command line, includ-
ing display file commands and DM scripts.
The gt command supports the else command.
Note that this comparison differs from “==” and “!=” comparisons, which
perform string comparisons.
See also: equality (==), inequality (!=), less than (lt), less than or equal to
(le), and greater than or equal to (ge).
60
2. Alphabetical List of Display Commands B0193DF – Rev M
horns
Remarks: You can independently change the state of each horn. Each device, state,
and tone takes a value that determines its action, as follows:
Second Third
First Argument Argument Argument
Device Name Value State Value Tone Value
Console Horn 1 4 on 3 - 0-15
Console Horn 2 8 on 3 - 0-15
Annunciator Keyboard 1 2 on 3 - 0-15
Annunciator Keyboard 2 32 on 3 - 0-15
Annunciator Keyboard 3 64 on 3 - 0-15
Annunciator Keyboard 4 128 on 3 - 0-15
All horns 238 on 3 - 0-15
0 - 0 - 0
-1 - 0 - 0
-2 - 0 - 0
61
B0193DF – Rev M 2. Alphabetical List of Display Commands
For example,
dmcmd horns 2 3 8
sounds the annunciator horn using tone 8.
To silence all horns, substitute a 4 for the 3 in the above example.
incwrap
NOTE
-incr value option is only available in FoxView 9.0;
it is not available in Display Manager.
where:
C:B.P is the OM full pathname.
.PARAM is an optional parameter name used for replacing the parameter
portion (.P) of the full pathname (C:B.P) argument.
lo,hi is the range of the parameter. If not specified, the low limit (lo) is -
32768 and high limit (hi) is 32767.
clamp specifies that the value be clamped to the high (hi) or low (lo) limit
if the value goes above the high limit or below the low limit.
-incr value is the amount by which the parameter is to be incremented.
If the value is negative, it is decremented.
62
2. Alphabetical List of Display Commands B0193DF – Rev M
!= (inequality)
Remarks: This command performs an action when the strings are not equal. This
command invokes the action specified by the built-in command following
the strings. Although only built-in commands perform actions, you can
access scripts, subslists, and files that are not built-ins.
For example,
!= :$p1 :menu setacl 55 -
disables access key lock (setacl) 55 when the colon plus the contents of
the p1 variable do not match the :menu string.
Supports the else command.
See also setglb and input.
NOTE
You cannot substitute the != command for connection variables that read and
update data to a display. Therefore, this command does not execute a specific action
when a pending condition occurs such as when X reaches Y, do Z.
63
B0193DF – Rev M 2. Alphabetical List of Display Commands
initlog
Use: Clears out the current display manager error messages file
Remarks: A file contains each display manager error message displayed on the mes-
sage line. Informational messages (such as messages that display when
using the Current Alarms Display) are not logged.
input
Use: Presets the data entry field with a fixed, default value
Establishes a value for current or pending input without a keyboard
Remarks: The input command enables you to write scripts that simulate input from
a keyboard and saves alphanumeric strings for Display Manager’s use.
Specify values, compound names, blocks, or files.
For example,
dmcmd input 232
fills the next selected field with “232”.
64
2. Alphabetical List of Display Commands B0193DF – Rev M
Place the input command in a script file. Use this command to allow a
fixed input to appear in a data entry field when that data entry field is
selected by a mouse, trackball, or keypad.
NOTE
Current input commands overwrite previous input commands. When two or more
input commands are issued sequentially to the same screen location or data entry
field, the commands overwrite each other.
kill
Remarks: The kill command causes the display manager to send a signal to a pro-
cess in the WP.
If a process is set to receive signals, the signal acts as a software interrupt.
Use a small number in the 1 to 21 range as a signal identifier (sig). If you
do not specify sig, it defaults to 9.
If the process is not set to receive signals, kill terminates the process, as
does the 9 signal.
For more information on signals, refer to a UNIX user’s guide.
NOTE
The task ID of the most recently run program is $LFPID.
65
B0193DF – Rev M 2. Alphabetical List of Display Commands
Remarks: val_1 and val_2 are ASCII numeric strings. The comparison is per-
formed by converting the strings to integers and then making the specified
comparison. If the comparison is true, the cmd command executes.
cmd may be any display command and may include arguments.
You may use conditional expressions in any display command line, includ-
ing display file commands and DM scripts.
The le command supports the else command.
Note that this comparison differs from “==” and “!=” comparisons, which
perform string comparisons.
See also: equality (==), inequality (!=), less than (lt), greater than (gt),
and greater than or equal to (ge).
lt (less than)
Remarks: val_1 and val_2 are ASCII numeric strings. The comparison is per-
formed by converting the strings to integers and then making the specified
comparison. If the comparison is true, the cmd command executes.
cmd may be any display command and may include arguments.
You may use conditional expressions in any display command line, includ-
ing display file commands and DM scripts.
The lt command supports the else command.
Note that this comparison differs from “==” and “!=” comparisons, which
perform string comparisons.
See also: equality (==), inequality (!=), less than or equal to (le), greater
than (gt), and greater than or equal to (ge).
66
2. Alphabetical List of Display Commands B0193DF – Rev M
marker_fill
Remarks: Use this command to specify whether markers should be filled or unfilled.
All markers in FoxView use the specified setting. The default is for
unfilled markers.
marker_size
Use: Specifies the size in pixels of marker objects in trends and plots
Remarks: Use this command for setting the size of the markers for displays in
FoxView. The specified marker size is applied to trends and plots in
FoxView. The default size is 4.
message_bar
67
B0193DF – Rev M 2. Alphabetical List of Display Commands
Remarks: This command displays or removes the message bar in FoxView. The
message bar is the drop-down list of messages in the center of the FoxView
window.
mount
Remarks: The mount command unmounts any currently mounted file system and
mounts a new file system to /rem/APname. The newly mounted file sys-
tem must have this 50 Series WP in its dsamap file, with the correct per-
missions. A busy file is opened on the remote AP to keep the connection
active.
Using the mount command without the APname argument displays the cur-
rently mounted AP name on the message line.
The name of the last AP to be mounted is stored in the WP global
REMOTE. This global is not “read” by the DM, but is set to the current
AP so other applications can determine the AP to which the DM is
attached.
The 50 Series WP does not have a host AP associated with it. However, a
number of files must be retrieved from a “host” AP:
♦ Alarm History data file
♦ Sequence Code data
♦ PLB displays.
For this purpose, the 50 Series WP has one special AP designated as the
logical host.
The Display Manager’s start-up script rmounts the logical host. The
default Historian for trending and alarm history is the Historian on this
AP. The name of the logical host is found in the /etc/fox/loghost file.
Remote file access does not require the DM to mount a remote file sys-
tem. An automatic temporary mount of remote APs is done for remote file
access. For temporary mounts, a umount is done when the file access is
completed.
68
2. Alphabetical List of Display Commands B0193DF – Rev M
The Display Manager identifies files as being remote if they are prefixed
with the $REM global. For example, the alarm history file is defined as
$REM/usr/hstorian/almhist.
The $REM flag is an indication to the DM that the file is located on the
currently defined remote AP. Subsequent mount commands change the
definition of the remote AP, and will, for example, display different alarm
history files, or allow access to different sequence code pages.
The currently defined remote AP is also the AP where applic commands
are run.
Applications that use mounted APs and logical hosts are described below:
Alarm History Display (AHD) is called up on a 50 Series WP; the data is
retrieved from the currently mounted AP. While there is no information
to this effect displayed as part of the AHD, you can use the mount built-in
to display the currently mounted AP on the message line.
Similarly, Operator Action Journal (OAJ) reports are generated using the
Historian database on the currently mounted AP.
See also unmount.
mruflush
Syntax: mruflush
NOTE
There is no previous display after this command is used until another display is
called.
69
B0193DF – Rev M 2. Alphabetical List of Display Commands
msglin
Remarks: The msglin command displays messages on the message line (the first line
of a display). You can display a message up to 63 characters long.
For example:
dmcmd msglin “Good Morning”
The string to be displayed must be surrounded with a double-quote
character.
When sending this command to a display manager, use this syntax:
pref -DMNAME dmcmd ‘msglin “more than one word”’
You can display a blank line by inserting all blank spaces into the
msglin command, for example:
dmcmd msglin “ ”
blank spaces
next alms
Use: For alarming, calls up more pages of the Current Alarms Display (all WPs,
except WP10 and PWs) or the Alarm History Display
Remarks: The next command calls the next page of a historical alarm when the
Alarm History Display or Current Alarms Display is on the screen.
See also prev alms.
70
2. Alphabetical List of Display Commands B0193DF – Rev M
next rdline
Use: Used in conjunction with read/write file operations (rdfile and wrtfile)
to scroll records in blocked text files.
Syntax:
next rdline
Remarks: This command causes an increment to the next record, and that record is
read/written.
The base_num argument allows actions for multiple read/write files to be
configured within the same display file. This optional argument must be
in the range of 1-5. The command sets the dedicated base global and then
updates all the read/write file connections that use the default base global
(indicated by the character I in the rdfile/wrtfile command) or the
same dedicated base global (indicated by the sequence I<base_num>,
where <base_num> is an integer number from 1-5). For more information,
refer to rdfile and wrtfile.
base_num must match I[base_num] in the wrtfile/rdfile commands.
When using base_num and a scroll command (next rdline, prev rdline,
or setfindex) is executed, the configured action (read/write file connec-
tions) is updated when the base_num argument to the scroll command
matches that in the configured action.
A file indexed by I[base_num] beyond its current end returns empty lines
for rdfile and extends the file for wrtfile by the appropriate number of
records. These record extensions are filled with null characters when no
information was written. If rdfile is used, it considers those records to be
blank or empty.
Space used by extending a file beyond its end does not consume disk space
until a non-null value is written in a record. Skipping large areas simulates
a “space” matrix that consumes very little disk space. The hole created is
71
B0193DF – Rev M 2. Alphabetical List of Display Commands
recognized by UNIX and hidden. When the file is read, it appears large.
Backup operations that copy the file system directly (for example, stcopy)
maintain the holes.
See also prev rdline.
! CAUTION
Copying a file with holes consumes space in the destination because copy reads the
entire file. Be prepared when an extended file (one with holes) is copied to a floppy
disk.
nologscr
Remarks: This command (first line of an environment script) informs the display
manager to delay logging this script to the Operator Action Journal until
successfully processing of the passwd command. Refer to chng_env for
command usage.
See also chng_env and passwd.
nostack
Remarks: This command keeps base displays out of the display queue. number indi-
cates how many displays to not enter into the display queue.
For example,
nostack 3
calls three base displays without interrupting the display queue.
72
2. Alphabetical List of Display Commands B0193DF – Rev M
ov
NOTE
The ov command overwrites overlay data configured through the Display Builder’s
Display Attributes dialog box (Model 50 and 51) or the Overlay tab of FoxDraw’s
Display Properties dialog box. When, for example, an overlay (with its sticky
overlay flag set) is being opened, and the -sticky option is not specified in the ov
command, the overlay is opened as a non-sticky overlay. This is also true for all of
the other options (position, on-top, tiling, and so on).
73
B0193DF – Rev M 2. Alphabetical List of Display Commands
row,column coordinates:
Coordinates can be defined in:
♦ Virtual coordinates
♦ Percentage of full screen
♦ Character locations.
This is the syntax:
row,column for virtual coordinates
0<=row <=3455
0<=column <=5119
row%,column% for % of full screen:
0.0%<=row <=100.0%
0.0%<=column <=100.0%
rowCHAR,column CHAR for character location:
0.0<=row <=24.0
0.0<=column <=80.0
74
2. Alphabetical List of Display Commands B0193DF – Rev M
NOTE
The -pick option may only be used within a display
file. Pref ’ing the ov command with the -pick option
defined, or placing it in a dmcmd script, is of no avail
because there is no area selected when this command is
executed.
75
B0193DF – Rev M 2. Alphabetical List of Display Commands
Example:
When Display Manager opens a full-screen overlay, the screen size coordi-
nates are defined (via the Display Builder’s New Overlay menu) in virtual
coordinates:
height, width: 3456,5120
This covers the entire Display Manager window.
When opening the same full screen overlay using ov or ov_conn command
with the -rootsize option not specified, and assuming the entire display
consists of two objects (text and rectangle) with the coordinates:
upper-left lower-right
object row,column row,column
text 1500,2400 1600,2544
rectangle 1400,2500 1500,2640
Opening the overlay with the -rootsize option defines the overlay screen
size as:
1600-1400,2640-2400 = 200,240
This allows you to build a small overlay in a full-screen display, and thus
have enough cut, paste, and resize room to edit the overlay’s object.
-tile is an optional argument that tiles overlays instead of placing them
in specific locations.
-area <tile_area> is an optional argument that specifies an area on the
screen that is tiled. By default, the tiled area is the full screen.
The syntax of tile_area is as follows:
upper_left_row,upper_left_column:lower_right_row,
lower_right_column
These values can be virtual coordinates, percentage of screen, or character
height/width.
Examples:
0,50%:100%,100% The right half of screen is tiled area
0,2560:3455,5119 Same as above
0,0:10CHAR,100% The first 10 character lines are the tiled area.
The DM tile algorithm spaces the tile locations. It actually adds eight vir-
tual coordinates (two pixels for a default DM window) to the size of the
overlay. This means that tiles are not glued together but are spaced.
76
2. Alphabetical List of Display Commands B0193DF – Rev M
For example, if the overlay width is exactly 1/4 the width of the screen
(5120/4 = 1280), the tile algorithm uses 1288 (1280 + 8). This means that
only three overlays will fit in a tiled row.
To overwrite the DM size tiling algorithm, use the -size option.
-size <tile_size> This optional argument defines the size of each tile.
Each tile has a specific width and height. By default (-size not used), the
width and height are defined by the overlay size (or by the screen size
when the -rootsize option is not used). When you are tiling different
size overlays, the tile size and the final overlay location are different for all
the different size overlays. The -size option allows you to define the tile
size. Because all the tiles must have the same size, only one tile size has to
be provided. The syntax of tile_size is:
tile_height,tile_width
NOTE
The <mode> argument is valid for FoxView 9.0.
77
B0193DF – Rev M 2. Alphabetical List of Display Commands
ov_conn
Use: Opens a generic overlay. Connections in this overlay are defined by a user-
defined Compound:Block name
78
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks: Connection and text substitution assignments are nearly identical to that
of building Faceplates or User Groups in the Display Builder (using
Import & Config functionality) or linking faceplaces in FoxDraw.
Connection assignments:
For every passive and active connection that contains a .PARAMETER or
.PARAMETER RANGE name, the Compound:Block name is prefixed. If
a connection already has a Compound:Block name, it is replaced with the
ov_conn comp_block argument. This guarantees that all connections con-
nect to the ov_conn defined comp_block name.
Examples:
connections in overlay: after reassignment:
C:B.PARAM|RANGE <comp_block>.PARAM|RANGE
C:B.PARAM <comp_block>.PARAM
.PARAM|RANGE <comp_block>.PARAM|RANGE
.PARAM <comp_block>.PARAM
<.PARAM>______ <comp_block>.PARAM
<.PARAM|RANGE> <comp_block>.PARAM|RANGE
$VAR SHARED_VAR <subs_name>
Do not use shared variables (Object Manager variables). In the case where
the DM opens the OM list optimized, the shared variable are not able to
connect. When the list is opened unoptimized, the list cannot connect to
more than one station, making either the comp_block variables or the
shared variable unconnectable.
For a real substitution name, the connection name will be blank because
the overlay is not invoked through a substitution list. Therefore, you are
79
B0193DF – Rev M 2. Alphabetical List of Display Commands
80
2. Alphabetical List of Display Commands B0193DF – Rev M
♦ The Display Builder allows prefixed text and trailing text after the
substitution name.
♦ The Display Manager allows only a substitution name.
♦ The Display Builder allows the user to overwrite the default
substitution.
ov_mode
Use: Specifies the way in which all subsequent overlays are to be invoked in
FoxView.
Remarks: This command changes the way in which all subsequent overlays are
invoked in FoxView. To change the setting, you must issue the ov_mode
command again. The default setting is fdconfig.
ov_on_top
Use: Positions all the moveable overlays on top of the FoxView window on
Solaris workstations
Syntax: ov_on_top
Remarks: This command moves all the currently opened overlays so that they are
now visible on top of the FoxView window. On Solaris workstations,
moveable overlays can be moved behind the main FoxView window. You
81
B0193DF – Rev M 2. Alphabetical List of Display Commands
can use this command to bring all moveable overlays to the front of the
display stack.
ov_switch
pageack
Remarks: This command allows you to configure a display button that acknowl-
edges all blocks that have an unacknowledged (.UNACK) or alarm status
(.ALMSTA) connection present on the graphic.
82
2. Alphabetical List of Display Commands B0193DF – Rev M
passwd
Remarks: When processing this command, the display manager displays the pass-
word dialog box, prompting the user for a password. If the command does
not specify user_id, the user_id defaults to the basename of the script
being processed. Otherwise, the entered user_id is used.
For example, if dmcmd passwd is encountered while processing the file
/usr/fox/sys/Change_Env/Proc_Eng_Env
83
B0193DF – Rev M 2. Alphabetical List of Display Commands
pick
The bitmap values are the same as those used in the ov command.
screen_location values and their meanings are:
84
2. Alphabetical List of Display Commands B0193DF – Rev M
When the display manager executes a pick command, each active action
name on the specified displays is compared against the requested action
name. When a match is found, the action is executed, and the search for
matching action names stops.
If the action name is not found in the specified screen location (or the
specified screen location does not contain a display/overlay), a message
displays on the top message line, unless the -nolog argument is used.
The active connection referenced by the pick name must be currently
pickable. If it is not, the pick command is ignored and a message displays
on the top message line, unless the -nolog argument is used.
Actions may be unpickable because:
♦ The access level is not enabled
♦ The graphic object is invisible .
If you are specifying an overlay location in screen_location, the overlay
location acts as a bitmask. Any overlay in the position occupying the over-
lay location is considered a match. For example, if the screen_location
specified is 10 (2 and 8), an overlay in position 2 (Upper Right) or posi-
tion 8 (Lower Right) or position 10 (Right Half ) is considered a matching
location.
This is the search order for overlays to match action names:
1. If pick is issued from a base display or overlay, start with that display.
2. Continue with newest overlay and work toward the oldest.
For example, if three overlays are currently on display and have been called
up in the following order:
1. Upper Left
2. Lower Left
3. Upper Right
and the command
pick action_name -l FULL
was picked from an overlay in Lower Left position (4), the search order for
action_name is:
Lower Left
Upper Right
85
B0193DF – Rev M 2. Alphabetical List of Display Commands
Upper Left
If the same command was issued, but not from a display (as in a menu or
an annunciator key pick), the search order for action_name would now be
the opposite of the overlay call-up order:
Upper Right
Lower Left
Upper Left
Including the -l FULL argument in the pick command excludes the base
display from the search list. If the base is also to be included, use the
-l ALL argument. The search would be identical to that listed above with
the addition of the base display at the end of the list.
Issuing a pick command without an -l screen_location argument is
identical to specifying the -l ALL option.
Using the -l THIS option searches only the one display, as follows:
1. If the command is called from display, search that display only.
2. If the command is not issued from a pick on the display, search only the
newest display.
Active connection names must be unique within each display file. When a
pick command is executed by DM, the list of action names is searched
only until a matching name is found. If there is a subsequent matching
action name in the display file, this name is not executed even if the first
match was unpickable. Action names are assigned by the Display
Configurator.
For security reasons, only the following active connection types may be
named:
♦ Execute program
♦ Open display
♦ Open overlay
♦ Set relative pick
♦ Close display/overlay
♦ Momentary contact (timed only).
The following active connection types may not be named:
♦ Write text to file
♦ Ramp
♦ Momentary contact (hold-down only).
86
2. Alphabetical List of Display Commands B0193DF – Rev M
plot
NOTE
Options can be concatenated.
87
B0193DF – Rev M 2. Alphabetical List of Display Commands
NOTE
Options that allow the -rel (FoxView only) argument
are mutually exclusive in a single command. This
includes the clear (c), write (w), and read (r) options.
The read (r) option reads data from a file into the specified relation. This
data is added to any data currently contained in the relation’s data buffer.
The readfile data is added in the order it is contained within the data file.
If a read (r) option is issued for a relation that is currently updating, the
new data is added just as though the data had been received as an update.
Readfile data can be distinguished from updating data by configuring a
different color for plotted data read from a file.
88
2. Alphabetical List of Display Commands B0193DF – Rev M
X/Y Plots
Specifying a filename is optional unless you wish to read or write X/Y plot
data.
For example:
plot xyp1 cdws /usr/tmp/plotout
locates the X/Y plot named xyp1. The script then clears the plot, redis-
plays the currently buffered points, writes them to the /usr/tmp/plotout
file on the AP, and stops real-time updating.
You can store up to 600 X and Y values in FoxView and up to 512 X and
Y values in Display Manager in the circular memory buffer. In FoxView,
data points are displayed up to the maximum configured in FoxDraw.
When the limit is reached, old data points are removed from the plot. In
Display Manager, displayed data points accumulate until you clear the
graph with a clear command. Depending on an overlay position, the plot
area may not clear.
Use the pause command to suspend the real-time display of values. Issu-
ing the pause command, however, does not interrupt the reading of values
into the circular buffer. Because the pause command acts as a toggle,
reversing the command’s current state, issuing another pause command
cancels the command’s prior state. All data associated with the graph clears
and its buffer empties.
You can use the plot command in conjunction with Profile Plot Displays
for WP30s, 50 Series and 70 Series workstations, and PWs. Profile Plot
Displays contain the following objects (library elements) that can be used
by an application:
Object Description
Pause Button A pushbutton that toggles pause state.
Read-Out Bar A rectangular object underneath the profile plot
that executes a display manager plotname r or
plotname rw command. This performs Read-Out
function.
Send Button A button to send the Read-Out values. This button
should contain a display manager plotname w
command.
Redraw Button A button to redraw a single profile plot.
89
B0193DF – Rev M 2. Alphabetical List of Display Commands
Picking the plot area executes a display manager built-in command, allow-
ing the operator to execute any built-in command (for example, open
overlay or read out profile).
90
2. Alphabetical List of Display Commands B0193DF – Rev M
NOTE
If there is no readout data, do next line.
prev alms
Use: For alarming, calls up previous pages of the Current Alarm Display
(all WPs, except WP10 and PWs) or Alarm History Display
91
B0193DF – Rev M 2. Alphabetical List of Display Commands
Remarks: This command calls previous alarm pages to the screen only when the
Current Alarm Display or Alarm History Display is on the screen.
See also next_alms.
prev rdline
Syntax:
prev rdline
Remarks: This command decrements the previous record, and that record is
read/written.
The base_num argument to this command allows actions for multiple
read/write files to be configured within the same display file. The optional
base_num argument must be in the range of 1-5. The command sets the
dedicated base global and then updates all the Read/Write File connec-
tions that use either the default base global (indicated by the character I in
the rdfile/wrtfile command) or that use the same dedicated base global
(indicated by the sequence I<base_num>, where <base_num> is an integer
number from 1-5). Refer to rdfile and wrtfile.
base_num in this prev_rdline command must match I[base_num] in the
wrtfile/rdfile commands. When the base_num is used, and a scroll
command (next_rdline, prev_rdline, setfindex) is executed, the con-
figured action (read/write file connections) is updated if the base_num
argument to the scroll command matches that in the configured action.
92
2. Alphabetical List of Display Commands B0193DF – Rev M
protect
protects all action names ending with .OUT. This allows the generic name
.OUT to apply to all output active areas, including both those on Block
Detail Displays and preconfigured Group Displays.
Description: The protect command sets and the unprotect command clears all access
key locks or the locks specified in a list of locks. Key locks within the list
are separated by commas (,). There is no limit to the number of locks in
the list.
Key locks must be within the range of 0 to 255. If a lock is not within this
range, that lock specification is ignored. Other key lock specifications in
the list are still processed.
93
B0193DF – Rev M 2. Alphabetical List of Display Commands
For example,
dmcmd protect value 1,1000,10-20,30-4
protects locks 1 and 10-20. The 1000 and 30-4 are invalid ranges.
Similar to all display command multi-word arguments, the list of locks
must be surrounded by “” characters or contain no white space.
For example,
dmcmd unprotect value “0, 10, 20, 30”
unprotects the specified locks.
dmcmd unprotect value 0, 10, 20, 30 protects only key lock 0.
Remarks: After building displays with Display Builder, you can assign Access Key
Lock (ACL) values to display objects in the Display Configurator’s Protec-
tion field. This creates a “keyhole” on the WP that “locks” display objects.
Locking or unlocking display objects (making them selectable or unselect-
able) depends on an environment’s “keys”. Use the protect and unpro-
tect commands to create environments corresponding to users or system
responsibilities.
When a user accesses a display, the display manager checks the object’s
protection class against the WP’s ACL. If the user does not have the same
display object ACL key, that object cannot be selected. The protect or
unprotect command immediately affects the current display. You do not
need to recall the display.
NOTE
The protect or unprotect command does not group or rank protection classes.
However, the protect or unprotect command offers you the flexibility to prevent
unauthorized users access to other users’ environments or system responsibilities.
Examples:
dmcmd script
dmcmd protect all # Clears all protections
dmcmd unprotect value 1-10 # Clears protection locks 1-
10
dmcmd unprotect value $PROC_ENG,$SW_ENG # If PROC_ENG = 20-29
and SW_ENG = 40-49,
locks 20-29 and 40-49 are
cleared
dmcmd protect name .OUT # Protects all actions with
.OUT extension
dmcmd unprotect name aname # Unprotects actions named
“aname”
94
2. Alphabetical List of Display Commands B0193DF – Rev M
prtalmpnl
NOTE
For Model 51 workstations and 70 Series workstations, this command is read by the
Alarm Server Task (AST), not by a Display Manager or FoxView.
Remarks: Use this command to save the current alarm panel definitions currently in
the Alarm Server Task (AST) memory. The file can then be used as an
input file, that is, as the actual ASCII alarm configuration file.
If no filename is specified, the default filename is:
/usr/fox/alarms/<WPLNAM>AApan.prt
For example, the following command, when issued at run time, saves the
current alarm panel configuration to a file. Upon reboot, the contents of
the saved file becomes the workstation’s alarm panel configuration.
pref -LBUG dmcmd “prtalmpnl”
For more information, refer to Process Alarm Configurator (B0193AU) and
Workstation Alarm Management (B0193RV).
See also addalmpn and clralmpnl.
psc
Remarks: This command performs a screen dump to the printer of whatever cur-
rently appears on the WP screen. The printer is set from DM Select
Printer menus file stored in the Printer global variable. Once this com-
mand executes in the WP, it runs without interruption from other display
manager tasks.
95
B0193DF – Rev M 2. Alphabetical List of Display Commands
quitdm
Use: Enables/disables the Quit pick from the Display Manager’s Window
menu
Remarks: This command enables or disables the Quit command from the Window
menu. The -q ENABLE option must have been previously specified in the
DM_WIN variable before this option can be turned on, or the Display Man-
ager must not be configured to come up on WP boot. The dm typecode
must be a value other than B before this option can be turned on.
See also disable.
rcntalms
Use: For alarming, displays the Recent Alarm Display (WP10 only) or the Cur-
rent Alarm Display (all WPs, except WP10 and PWs). Displays the speci-
fied alarm display on WP/AW51 (Version 4.2 or later)
96
2. Alphabetical List of Display Commands B0193DF – Rev M
rdfile
97
B0193DF – Rev M 2. Alphabetical List of Display Commands
Remarks: Because the {fmt} rdfile syntax does not allow spaces, concatenate the
{fmt} options.
Format Options
{fmt} Description
b Blocked text
l Stop on line feed
n Terminated with the ASCII null
B Buffered (hold last file open)
r num Record size override
w num Field width (default = record size)
o num Field offset (default = 0)
i num Index record (default = 0)
I [base_num]*, ** Add glbl base to index (set base with setfindex)
* [base_num] is used with 50 Series systems, Version 3.3 or greater. It is not used with 20/30 Series
systems.
** To examine or change default global variables, refer to global variables in Display Engineering for 50
Series Workstations (B0193MQ).
For example,
rdfile text bw6o10i15n
instructs rdfile to:
♦ Open the block text (b) file named text
♦ Examine the record size of all records
♦ Move to the 15th record (i15) and locate and read a six-character
field (w6) with an offset of ten characters from the beginning of the
record (o10)
Refer to Chapter 1 for more examples of read/write file operations.
run
Remarks: This command causes the display manager to load and run a program in
the WP. The program arguments access read-only, read/write, and free WP
globals in a C environment.
98
2. Alphabetical List of Display Commands B0193DF – Rev M
NOTE
The display manager stops updating displays if the
application started by run preempts the back surface.
If the WP has insufficient memory to run an applica-
tion, the message Can’t start application appears.
The process ID is stored in the read/write global
LFPID.
A run command does not write to a shell, as does the applic command.
The run command does a fork/exec of the specified arguments. The run
commands that require shells must include /usr/bin/sh as the first
argument.
script
Remarks: This command informs the display manager to execute additional com-
mands or another script file (if specified).
The display manager checks the first two file bytes, known as the UNIX
magic number, to determine the file type. Checking a file’s type typically
takes extra time; however, the script command overrides this procedure
and processes the file immediately.
For example,
dmcmd script /usr/menus/script
opens the file named script faster than
dmcmd /usr/menus/script
which causes the display manager to open the file to check its file type.
Once the display manager begins to execute the file, the first line must
declare its file type as a script.
For example:
dmcmd script
= p2 $ENV
!= $p2 $ENV setacl 50 +
99
B0193DF – Rev M 2. Alphabetical List of Display Commands
sdjump
Remarks: Use this command to “jump” the peripherals (mouse, keyboard, and so
on) from the WP that currently owns them to another specified WP. The
WPs must be configured within the same multi-screen cluster. The com-
mand must be directed to the WP that currently owns the devices.
You can use the sdjump command in a script to achieve the same effect as
the multi-screen overlay.
In the first format of this command, the shared devices are reassigned to
the WP named by WP-letterbug.
In the second format, the shared devices are reassigned to the WP that is n
positions ahead in the configuration. For example, +1 reassigns to the next
WP, +2 assigns to the WP following that one, and so on.
In the third format, the shared devices are reassigned to the WP that is n
positions back in the configuration. For example, -1 reassigns to the previ-
ous WP, -2 assigns to the WP before that one, and so on.
The cluster is considered to be circular. The first WP in the cluster follows
the last WP in the cluster; the last WP wraps around to the first.
Examples:
Suppose that GC3001, GC3002, and GC3003 are three WPs configured
in a multi-screen cluster and GC3001 currently owns the shared devices.
The command sdjump GC3003 directed to GC3001 reassigns the shared
devices to the WP named GC3003.
The command sdjump +2 directed to GC3003 reassigns the shared
devices to the WP that is two positions ahead of GC3003 in the cluster
(GC3002).
100
2. Alphabetical List of Display Commands B0193DF – Rev M
select_pt
Use: Changes the appropriately connected fields on all displays within the dis-
play manager into pickable areas for the point selection process.
Syntax: select_pt
Remarks: This command applies to all opened displays. Any pick within the display
manager window turns this state off, even if a pickable area was not
selected.
The get_select_pt command can retrieve the selected point name.
For more information, refer to “Select and Assign Function” in Process
Operations And Displays (B0193MM).
set_select_pt
Remarks: This command specifies copying a string to the system clipboard. Other
FoxView instances can then use this string. For example, a user can paste
the name from the clipboard into a trend object.
The <object name> argument is not validated. This name can be any text
string.
101
B0193DF – Rev M 2. Alphabetical List of Display Commands
setb
Remarks: Use setb to set or reset one or more packed Boolean bits in one execution.
setb supports parameter bit extensions.
Setting packed booleans is not supported on WP20 workstations. When
the setb function reads a connection name with a bit extension, the func-
tion is aborted and an error message displays in the message line.
Refer to Appendix A for a list of bit acronyms.
102
2. Alphabetical List of Display Commands B0193DF – Rev M
setb Cname:Bname.INHALM.-LMA 0
Resets all bits except Low Meas Alarm bit
setb Cname:Bname.MA 1
Sets the MA Boolean parameter to 1
seti
Remarks: Use the seti command to set integer values. Most integer control block
parameters are 16-bit (short) integers. This command works only with 16-
bit parameters.
This dmcmd set command alters control parameters.
NOTE
The length of the parameter type (integer or long)
must match the set command length.
103
B0193DF – Rev M 2. Alphabetical List of Display Commands
setl
Remarks: Use the setl command to specify parameter values. Most integer
sequence control block parameters are 32-bit (long) integers. This com-
mand works only with 32-bit parameters.
This dmcmd set command alter control parameters.
NOTE
The length of the parameter type (integer or long)
must match the set command length.
setacl
104
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks:
After building displays with Display Builder, you can assign software
access key locks (ACL) to display objects in the Display Configurator Pro-
tection field. This creates a “keyhole” on the WP that “locks” display
objects.
After building displays with FoxDraw, you can attach an operator action
to display objects. This creates a “keyhole” on the WP that “locks” display
objects.
An access key lock of zero (0) enables all users to select an object. Use
these three symbols to control the 255 access locks:
Access Symbol
Enable +
Disable -
Unchanged .
For example,
dmcmd setacl 125 +-.
sets access lock to 125 and only 125. The plus sign (+) enables access lock
125. Users with access 125 can select objects in 125. The minus sign (-)
disables access lock 126. Users with access 126 cannot select objects in
126. The period (.) after the minus sign leaves access lock 127,
unchanged. You can use multiple plus signs (125+++.+), minus signs (125-
--), and/or periods (125...) to specify access locks.
Place the setacl command in the path field of the Workstation Configu-
rator preceded by the dmcmd command in the label field where keep
appears, or place a script name in the path field to execute several setacl
commands. The dmcmd command does not cause a soft key to use up any
of the ten possible positions on the menu.
105
B0193DF – Rev M 2. Alphabetical List of Display Commands
NOTE
The setacl command does not group or rank protection classes. However, the set-
acl command offers the flexibility to prevent unauthorized users access to other
users’ environments or system responsibilities.
setenv
Remarks:
The display manager sets the value of a UNIX environment variable to the
string specified in value. On fork/exec, all variables set with this call are
reset to their previous values. If there are no previous values, they are reset
to the read-only variable values. This prevents configuration information
from passing to child display managers. The UNIX DMNAME and DIS-
PLAY variables are not reset.
See also getenv.
106
2. Alphabetical List of Display Commands B0193DF – Rev M
setfindex
Use: For reading/writing files, used in conjunction with read/write file opera-
tions (rdfile/wrtfile) to increment or decrement the record number
read/written in a file.
Syntax:
Remarks: Use this command in sequence block detail displays to jump to a particu-
lar line in the source listing. You can also jump to particular records in
your own database file.
The base_num argument allows actions for multiple read/write files to be
configured within the same display file. This optional argument must be
in the range of 1 - 5. The command sets the dedicated base global and
then updates all the Read/Write File connections that use either the
default base global (indicated by the character I in the rdfile/wrtfile
command) or that use the same dedicated base global (indicated by the
sequence I<base_num>, where <base_num> is an integer number from 1 -
5). Refer to the rdfile/wrtfile commands for more information.
base_num in this (setfindex) command must match I[base_num] in the
rdfile/wrtfile commands. When base_num is used, and a scroll
(next rdline, prev rdline or, or setfindex) command is executed, the
configured action (read/write file connections) is updated when the
base_num argument to the scroll command matches that in the configured
action.
107
B0193DF – Rev M 2. Alphabetical List of Display Commands
setglbl
shortcut_menu
Use: Changes the name of the FoxView menu definition file used by the short-
cut menu.
Remarks: This command sets the name of the FoxView menu definition file to be
used by this instance of FoxView for the specified type of menu. For this
instance of FoxView, all subsequent shortcut menus use the contents of
this menu file.
The -clear option removes the filename from the default menu file
definition.
108
2. Alphabetical List of Display Commands B0193DF – Rev M
shortcut_menu _style
Use: Specifies the type of shortcut menu to be displayed when a user right-
clicks over an updating field in FoxView.
Remarks: This command specifies the type of shortcut menu to be displayed when a
user right-clicks over an updating field in FoxView. The default style is
the style available with the 8.0 version of FoxView. The configurable
style uses the configuration menu files, and allows the user to configure
the text and actions contained within the shortcut menu.
showcag
Syntax: showcag
Remarks: This command displays (on the top message line) the current state of the
CAG redirection variables and the state of the redirection switch.
See also showms.
109
B0193DF – Rev M 2. Alphabetical List of Display Commands
showms
Syntax: showms
Remarks: This command displays the current state of the single/multi switch and
the name of the Display Manager to which the next display will be
redirected.
The 50 Series WP supports display redirection by using the same proce-
dure as WP20s and WP30s: using the Multi-screen pull-down menu pick
to display the multi-screen overlay (the same overlay which is commonly
used to move peripherals from one WP to another), and then selecting the
pictured Display Manager to which the next display is to be redirected.
On a 50 Series WP, this overlay is a Display Manager dialog box (not a
display file as on WP20s and WP30s). The Display Manager constructs
this dialog box upon bootup based on the contents of the
/usr/fox/sp/data/gc_link file. This file is normally created by the System
Configurator and Software Install. This file is an ASCII file, and can be
edited manually using any text editor. Any changes to the file become
effective once the 50 Series is rebooted.
The gc_link file consists of zero or more lines of the form:
<DISKLBUG> <CLUSTER> <POSITION> <DMNAME>
where there is one line for each Display Manager in a cluster. A Display
Manager cannot be in more than one cluster.
DISKLBUG is the letterbug of a WP20’s or WP30’s host AP or the letterbug
of the 50 Series WP (which is self-hosting).
CLUSTER is an integer indicating which WPs belong to a cluster. Lines with
the same value for CLUSTER belong to the same cluster.
POSITION (1-10) is where the WP is physically positioned.
1 3 5 7 9
2 4 6 8 10
DMNAME is the name of the Display Manager in the cluster. For 20/30 this is
the WP letterbug.
110
2. Alphabetical List of Display Commands B0193DF – Rev M
For example, the following file has two clusters, each with one WP20 and
one WP50 Display Manager:
AP2001 1 1 WP2001
WP5001 1 2 WP5001
AP2001 2 9 WP2002
WP5002 2 10 WP5002
Any displays for redirection must exist on the local disk of any WP50s and
on the hosting AP of any WP20s and WP30s on which they are to be dis-
played. The display file is not transmitted from one WP to another as part
of the normal redirection process; only the request to display the file is
transmitted. Thus, the file must be accessible to the receiving WP.
50 Series WPs do not support peripheral sharing. That is, the QWERTY
keyboard and mouse/trackball cannot be moved from one WP50 to
another, nor among WP50s and WP20/30s.
See also showcag.
sleep
Remarks: This command pauses the display manager and delays executing pro-
grams. Express the specified sleep period in number of seconds. The dis-
play manager continues executing the script once the sleep period expires.
For example:
dmcmd script
/usr/demo/Furnace_htr
sleep 20
/usr/demo/Furnace_tail
sleep 15
/usr/demo/Flames
sleep 10
/usr/demo/Flame_ctl
sleep 5
111
B0193DF – Rev M 2. Alphabetical List of Display Commands
NOTE
Activating sleep suspends display updates and operator input. To execute sleep,
uninterrupted by other display manager tasks, use the applic built-in command to
start a shell script or C program containing a sleep command.
source
Remarks: The source command allows the operator, with only one or two picks, to
go through a process loop upstream.
The user connects the execute program connection function, for exam-
ple, to a rectangular object on the screen using the Display Configurator.
In the connection, the display manager source command is defined. After
installing the display, picking the rectangular object displays the quarter
screen overlay DMCMD overlay (see below). When, for example, the
source button is configured as “source $PICK1”, you should first pick a
parameter (relative pick) and then press the source button (same operation
as the standard default displays).
The full pathname of the overlay display is /usr/fox/tmplts/source_ov1.
The data retrieved is saved in the WP Object Manager globals FOX1 (for
sink path names), FOX2 (for source path names), and FOX3 (for sink
status).
112
2. Alphabetical List of Display Commands B0193DF – Rev M
where:
SINK PATH NAME The full pathname of the selected point
name
SINK STATUS The sink parameter status:
DISCONNECTED – point is discon-
nected
BAD I/O – point had BAD I/O set
OOS – point is Out of Service
ERROR – point is in Error
Okay – none of the above
SOURCE PATH NAME The source name (if applicable) and bit
extension (if applicable)
DETAIL Two detail buttons are provided. One
calls up the sink detail display and the
other the source detail display.
CANCEL Button that closes the overlay
In case of error conditions, the overlay is not opened and a message line
message is displayed. These conditions are:
♦ No input parameter (when getting source of output parameter)
♦ Path not found (when getting source of unknown path).
However, the globals FOX 1, FOX 2, and FOX 3 contain the source con-
nection information which cannot be customized (FOX 1, FOX 2, FOX 3
are set by the display manager).
Supports parameter bit extensions.
113
B0193DF – Rev M 2. Alphabetical List of Display Commands
stack
Remarks: This command coordinates the precedence of one display over another in
the display queue. This command does not initiate displays. Specifying a
string argument <string> (such as a display’s filename) places that display
first in the queue, making it the current display. The current display then
becomes a previous display.
The stack and nostack commands work together to create display
sequences. Scripts containing the stack and nostack commands enable
you to coordinate a display sequence.
For example:
dmcmd script
applic /usr/prog
nostack 1
/usr/disp/mydisp
stack “/usr/menus/myscript”
starts the program /usr/prog on the AP. The nostack 1 command pre-
vents the next display from being added to the display queue and instead
calls the mydisp display. The current display becomes a previous display
and myscript takes its place in the queue.
Using the above script technique enables you to call displays indirectly,
without employing the Prev_Disp button or executing the close
command.
See also nostack.
status_bar
114
2. Alphabetical List of Display Commands B0193DF – Rev M
where:
on enables display of the status bar.
off disables display of the status bar.
Remarks: This command displays or removes the status bar at the bottom of the
FoxView frame.
stddisp
Remarks: Depending on the specific command syntax, this command displays vary-
ing detail regarding compound, block, and parameter data.
The stddisp command without a Compound or Compound:Block argu-
ment invokes the Select Screen. For example, choosing the SELECT button
from the menu bar executes the stddisp command, displaying the Select
Screen. Specifying the compound invokes the Select Screen with the com-
pound selected.
The stddisp command without arguments invokes the Select Screen or
FoxSelect™ unless there is a Compound:Block.Parameter that has been
selected through the Select and Assign process. In this case, the detail dis-
play for the selected variable is invoked.
For example,
dmcmd stddisp REACTOR1
displays the Select Screen, listing REACTOR1’s blocks.
On workstations, specifying the Compound:Block after this command
invokes the block detail display.
For example,
dmcmd stddisp REACTOR1:FC1000
invokes the REACTOR:FC1000’s block detail display to your screen,
without displaying the Select Screen.
NOTE
The only displays that queue are detail displays. Dis-
play queues do not include the Select Screen.
115
B0193DF – Rev M 2. Alphabetical List of Display Commands
The value held in the read-only global variable $DD accesses the
/usr/fox/dd directory where you find the lowest level detail display tem-
plates such as PID. Each /usr/fox/dd subdirectory corresponds to a block
type containing overlays.
The free global variables $p1, $p2, and $p3 are respectively initialized to
the compound name, block name, and type when you call a template.
When invoking a PLB, the displayed ladder is opened (if it is accessible).
For more information, refer to Display Engineering for 50 Series Worksta-
tions (B0193MQ).
[-ddisplay] This option opens the block detail display instead of open-
ing the ladder (for a PLB) or the SFC Display Manager (for a sequence
block).
For more information about the Select Screen, refer to Process Operations
and Displays (B0193MM). For information on FoxSelect, refer to FoxView
(B0193WH) or the foxview.hlp on-line Help system.
subslist
Remarks: The subslist command notifies the display manager not to check the
file’s UNIX magic number, which specifies the file’s size and record
lengths. Not checking the magic number enables the display manager to
immediately read the list.
The first line of the substitution list must be subs: followed by the display
filename. In the following example, the file named generic_sublist
accesses another file called display.file, passing text or data to display
areas bounded by < >s..
The equal sign (=) assigns text_data to patterns. Patterns correspond to
graphic objects on the display file. The subslist command passes text or
data to the matching pattern in the display file. Built-in commands and
connection paths to process variables qualify as text data.
116
2. Alphabetical List of Display Commands B0193DF – Rev M
subs:/path/display.file
<pattern1>=text_data1
<pattern2>=text_data2
<pattern3>=text_data3
All substitutions take place before the display appears on the screen. Then
subsequent displays called to the screen clear previous substitutions.
See also subst.
subst
Remarks: The subst command performs the same functions as the subslist com-
mand, except with fewer and faster substitutions. The subst command
does not require a display name. The substitution list created with this
command executes when the next display is called, and then it is cleared.
The subst command substitutes text or data in the display file. To suc-
cessfully substitute strings, place brackets (<xxx>) around the display field.
The subst file does not require brackets.
For example,
subst xxx “User filename:”
changes <xxx>, the characters on the configured display, to display -- User
filename: -- as designated by the quotation marks.
For example,
subst temp REACTOR12:TIC1000.MEAS
changes temp, the bracketed characters on the configured display, to the
compound, block, and parameter values displayed.
See also subslist.
117
B0193DF – Rev M 2. Alphabetical List of Display Commands
NOTE
Before actually building the display and creating the substitution, pack the display
with pdfpack -s.
time_date_bar
Remarks: This command displays or removes the time and date bar in FoxView.
The time and date bar contains the time and date fields in the upper right
corner of the FoxView window.
toggle
118
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks: Even though you can define the .cpoint (current point) as any parameter
type, this command affects Boolean parameters only.
Refer to “Bit Extension Acronyms” on page 147 for a list of bit acronyms.
toggle Cname:Bname.Pname.-F0000000
toggle Cname:Bname.Pname.-B1,B2,B3,B4
Toggles all bits, except 28-31
toggle Cname:Bname.INHALM.LMA
Toggles the Low Meas Alarm bit
toggle Cname:Bname.INHALM.-LMA
Toggles all bits except the Low Meas Alarm bit
toggle Cname:Bname.INHALM.LMA,HMA
Toggles the High Meas and Low Meas alarm bits
toggle Cname:Bname.CINMSK.B1,B32
Toggles booleans 1 and 32 (OM bits 31 and 0)
toggle sharedvar..B5,B6
Toggles shared variable booleans 5 and 6
119
B0193DF – Rev M 2. Alphabetical List of Display Commands
trend
Use: Allows trend areas to be configured via a script without using the On-Line
Trend Configurator or an off-line display configurator, Display Builder or
FoxDraw
Syntax:
trend [-g trendname] [-trdid n]
[-line # [-name c:b.p] [-descr “dd”] [-range r]
[-hist histname] [-gband g] [-minsp m]
[-name0 0] [-name1 1] [-delta d] [-eng e]
[-lcolor lc] [-marker m] [-dtype d]]
[-scan “su” | -dur “su”]
[-start time | -stop time | -display “du su”]
[-banded | -merged] [-temp | -perm]
[-gcolor gc] [-bgcolor bg]
[-tstamp t] [-gvis gv] [-offnorm h,l]
[-offnrmcolor oc] [-numgrid nli] [-nummkrs nm]]
[-resol “t u”]
NOTE
FoxView 99.2 supports only the following arguments:
-g trendname, -trdid n, -line #, -name c:b.p,
-descr dd, -hist histname, -gband g, -minsp m,
-name0 0, -name1 1, -scan su, -start time,
-stop time, -banded, -merged, -temp, and -perm.
120
2. Alphabetical List of Display Commands B0193DF – Rev M
where:
-g trendname is the group name of the trend, identifying the trend on the
display that is targeted with this command. If -g trendname is not speci-
fied, the system defaults to the first trend area configured.
-trdid n selects the nth trend on the display. The range is 1 to 8. Use this
directive when the group name is not known or is not unique.
-line # The # is the 1-based line number to be addressed by the options
that follow. If -line # is missing, the system defaults to line 1.
-name c:b.p c:b.p (or a shared variable) is the connection name to be
assigned to the specified line.
-descr “dd” (FoxView only) Assigns a description string to the
specified line. Use double-quote characters (“dd”) for a multi-word
description.
-range “r” Assigns a range string to the specified line:
value of r Specifies
auto Auto-scale
std For configured ranges
|Rxx To use Rxx parameter range values
R=100,0 A range (high,low). In this example, from 0 to 100.
one A one-shot auto-scale. The scale is determined by the
minimum and maximum values stored for the point.
L=100,0 FoxView only. A high range value and low decade
number for a logarithmic trend
zoom +/- Display Manager only. For “zoom +”, the high scale is
increased and low scale is decreased by a fixed amount.
For “zoom -”, the high scale is decreased and the low
scale is increased by a fixed amount.
shift Display Manager only. Shifts high and low scale values
up (+) or down (-) by a fixed amount.
121
B0193DF – Rev M 2. Alphabetical List of Display Commands
122
2. Alphabetical List of Display Commands B0193DF – Rev M
umount
Use: For remote file access, closes a busy file and unmounts the previously
mounted file system
Remarks: The unmount command closes the busy file and unmounts the previously
mounted file system. However, remote file access still uses the last mount
APname.
See also mount.
unprotect
Refer to protect.
123
B0193DF – Rev M 2. Alphabetical List of Display Commands
viewdm
Use: Creates the data for displaying the current run-state of all configured Dis-
play Managers
Syntax: viewdm
wp_applic
Use: Runs UNIX executable programs and UNIX scripts from a 50 Series WP
Remarks: This command starts a program on the 50 Series WP. See applic for more
information.
wrtfile
124
2. Alphabetical List of Display Commands B0193DF – Rev M
Remarks: Because the {fmt} wrtfile syntax does not allow spaces, concatenate the
{fmt} options.
Format Options
{fmt} Description
a Append
b Blocked text
l Add new line
n Terminated with the ASCII null
c Create (make a new file)
B Buffered (hold last file open)
r num Record size override
w num Field width (default = record size)
o num Field offset (default = 0)
i num Index record (default = 0)
I [base_num]*,** Add glbl base to index (set base with setfindex)
* [base_num] is used with 50 Series systems, Version 3.3 or greater. It is not used with 20/30 Series
systems.
** To examine or change workstation variables, refer to “Reserved Workstation Variables” on
page 127.
For example,
wrtfile text bw6o10i15n mystr
instructs wrtfile to open the block text (b) file text and examine the
record size of all records. Then it goes to the 15th record (i15) and locates
a six-character field (w6), with an offset of ten characters from the begin-
ning of the record (o10). It then replaces the six characters with mystr fol-
lowed by a null byte (n).
Refer to “Examples of Read/Write File Operations” on page 153 for addi-
tional examples of read/write file operations.
125
B0193DF – Rev M 2. Alphabetical List of Display Commands
126
3. Reserved Workstation Variables
This chapter provides an alphabetical list of workstation variables used by the display manager.
Two appendixes, one describing bit extension acronyms and the other listing examples of read-
write file operations, are also provided.
This is an alphabetical list of display manager workstation variables.
ADV_PROT
Purpose Access level for protecting access to the Advanced Trend Configuration
Browser dialog box in FoxView
AHD
Purpose Command to execute when silencing the horns from Display Manager or
FoxView. This command is executed when the Alarm top menu bar but-
ton is selected in Display Manager or the Process button is selected in
FoxView.
Configuration 20/30/50/51/70
ACKCLR
Purpose List of colors to use for acknowledged alarm
Configuration 30/50/51DM
ALMBUP
Purpose Alarm backup workstation
ALMCLR
Purpose List of colors to use for unacknowledged alarm
Configuration 30/50/51DM
127
B0193DF – Rev M 3. Reserved Workstation Variables
ALMCNT
Purpose Reserved read-only global variable
ALMTEXT
Purpose Reserved read-only global variable
Use Records the alarm text associated with the latest alarm priority. The
ALMTXT variable can be embedded in a process display and updated
when the ALMCNT variable is updated.
Remarks The alarm text {$GCLBUG}ALMTXT string variable is dependent on the con-
figured ALMPRI and ALMRTN values.
The ALMTXT variable is a 60-character text string with the following format:
Compound Block Param hh:mm:ss Pri State AlmType PointName
where:
Pri is the priority of the message
State is ALM for in-alarm and RTN for return-to-normal
PointName may not be present if not configured.
NOTE
* appears in place of the parameter for non-analog alarms such as STATE.
AOUT_DD
AOUT_FP
Purpose Allows you to configure display manager prepick variables.
Use Uncomment the following lines in the init.user file to remove prepick
functionality from block detail displays (AOUT_DD) or group displays
(AOUT_FP)
128
3. Reserved Workstation Variables B0193DF – Rev M
AOUT_DD=
AOUT_FP
If in Manual mode, Output is selected.
APLBUG
Purpose Name of configured logical host. This value cannot be modified in the
init.user file.
CADDD
Purpose FV/DM name for block detail display redirection.
Configuration 20/30/50/51DM(AM)/51FV(AM)/WP70
CADTP
Purpose FV/DM name for lia redirection
Configuration 20/30/50/51DM(AM)/51FV(AM)/WP70
CADUS
Purpose FV/DM name user display redirection
Configuration 20/30/50/51DM(AM)/51FV(AM)/WP70
CBP_PROT
Purpose Access level for protecting the browser feature of the Advanced Trend
Configuration Browser dialog box in FoxView
CLR_OPT
Purpose CAD clear option
Configuration 20/30/50/51DM(AM)/51FV(AM)/WP70
129
B0193DF – Rev M 3. Reserved Workstation Variables
CTLFRST
Purpose Reserved read-only global variable. Flag for order of searching for CP host
when displaying PLB and sequence code detail displays. If set to
CPHOST, the CP's hosting is first checked for the file. If not set to
CPHOST, the local disk is checked first.
Use Sets search order for ladder displays and sequence code (50 Series only)
Remarks When CTLFRST = CPHOST (default), the Display Manager searches for the
requested ladder display or sequence code file as follows:
♦ CP host
♦ Local disk (WP50s only)
♦ Logical host.
When CTLFRST = LOCAL, the Display Manager searches for the requested
ladder display or sequence code file as follows:
♦ Local disk (WP50s only)
♦ Logical host
♦ CP host.
When the CP’s host is not accessible, the LOCAL configuration prevents
Display Manager time-outs if the ladder display or sequence code files are
available on the local disk or the WP’s logical host. The LOCAL configu-
ration, however, does not assure that the user is reading the latest ladder
display or sequence code.
You must distribute the ladder display or sequence code files to the local
disk or the WP’s logical host every time the Control Configurator changes
them. For more information, refer to Display Engineering for 50 Series
Workstations (B0193MQ).
The /usr/fox/wp/data/init.user file contains the CTLFRST (control file first
location) variable.
DBA_PROT
Purpose Access level for protecting the “Assign” Display Bar menu function
DBL_PROT
Purpose Access level for protection the “Load” Display Bar menu function
130
3. Reserved Workstation Variables B0193DF – Rev M
DBM_PROT
Purpose Access level for protection of the Display Bar
DBN_PROT
Purpose Access level for protecting all Display Bar menu functions
DBS_PROT
Purpose Access level for protecting the “Save” Display Bar menu function
DMCMD
Purpose Reserved read/write global variable
Remarks The DMCMD (display command) global variable stores commands. The Dis-
play Manager periodically interprets and executes any command trans-
ferred to the DMCMD global.
After the Display Manager accepts the command, the Display Manager
then clears DMCMD to wait for the next command. If the Display Manager is
busy or has exited, the DMCMD does not clear.
Use the pref tool to send built-in commands to Display Manager in a
command window.
For example,
# pref -01WP02 DMCMD “stddisp MYCOMP:NEWBLOCK PID”
forces the station 01WP02 to display the detail display for PID block
MYCOMP:NEWBLOCK.
The following command, for example, closes the (above) display by exe-
cuting the close built-in command. In this example, the dmcmd prefix is
required to give the close command at least two words.
# pref DMCMD “dmcmd close”
131
B0193DF – Rev M 3. Reserved Workstation Variables
NOTE
The letters dmcmd perform two different functions, either global variable or built-
in command, depending on syntax. To minimize confusion, consistently capitalize
reserved global variables.
DM_DEC
Purpose Allows you to specify the position of the decimal point used in automati-
cally formatted numeric update fields in the display manager. List of deci-
mal location for “auto format” values on display. Default is
4,2,2,2,2,0,0,0,0,0. Each entry is a power of 10.
Use Uncomment the following line in the init.user file and edit the line.
DM_DEC=4 4 2 2 2 0 0 0 0 0
DM_DISPLAY
Purpose Name of X Server for this DM/FV. This value can not be modified in
init.user.
DM_ITXT
Purpose Allows you to specify text that appears below the display manager icon
Configuration 50 Series
51DM
Use Uncomment the following line in the init.user file to display text and the
current Alarm and System/SYS button states at the display manager icon.
DM_ITXT=<your_text>
DMINIT
Purpose Reserved read/write global variable
Remarks The DMINIT (display manager initialize) global variable is set to the name
of a script that runs whenever display manager is started.
132
3. Reserved Workstation Variables B0193DF – Rev M
Standard Invensys Foxboro software stores the name of a script that restores the operator environ-
ment in this global.
DMLOG
Purpose Setting for directing logged messages:
0 = no logging
1 = log to message line only
2 = log to message line and to file $WPDATA/$DMNAME/DM.log
DMNAME
Purpose Display manager
DMPID
Purpose Variable containing the process ID (PID) of Display Manager or FoxView
Configuration 20/30/50/51/70
DMWINDOW
Purpose Allows you to specify that a display manager window is non-scalable
Use Uncomment the following line to set the display manager as full-size, non-
scalable window.
DMWINDOW=-s WP20
Configuration 50 Series/51DM
DTMFT
Purpose Format for time in message line
0 (or not set), use format for locale
1, use dd/mm/yy
2, use yy/mm/dd
133
B0193DF – Rev M 3. Reserved Workstation Variables
ENV
Purpose Reserved read/write global variable
Use Set by FoxView or Display Manager to the name of the current environ-
ment
NOTE
Environment files may be several layers deep via the keep button label. Standard
software makes Display Manager load only the initial environment file plus the
most recent operator environment file after returning from an off-line state via the
exit (num) command. For more information on the keep button label, refer to
Workstation Configuration.
ENV1
Purpose Name of environment at start-up
FPLIB
Purpose Allows the user to configure the faceplate search path
Configuration 20/30/50/51DM
Use Uncomment the following line and add a search path. The indicated
directory is searched for loading faceplates used by the display manager.
FPLIB=
For example, FPLIB=/usr/displib/Faceplates sets the directory to
/usr/displib/Faceplates.
FVMENU_COLUMNS
Purpose Maximum number of columns when displaying menus. The default is 7.
134
3. Reserved Workstation Variables B0193DF – Rev M
FVSEL_ASGN
Purpose Time in seconds before select/assign mode times out
FV_FPOVL
Purpose Name of directory to use as default directory for ov_conn command. The
default is /opt/fox/displib/overlayfaceplates
FV_HCLR
Purpose Color used to highlight selectable fields
FV_RPCLR
Purpose Color used to indicate relative pick object
FV_SACLR
Purpose Color used to highlight selectable fields for select/assign
FV_UPDAT
Purpose Allows you to configure FoxView’s update mode. If set to “full”, default
display update mode is full redraw mode. Setting in display file overrides
this value.
Use Uncomment and edit the following line to configure the FoxView’s update
mode on a per display basis.
FV_UPDAT=
After the equal sign (=), place one of these choices:
SELECTIVE updates individual fields as necessary.
135
B0193DF – Rev M 3. Reserved Workstation Variables
NOTE
This value applies only to displays that have not had
their update mode explicitly set. This is the case for
default displays and displays created with the pdf_fdf
utility.
FXCURSOR
Purpose Allows you to configure the cursor
Configuration 51FV
Use Uncomment and edit the following line to configure the cursor.
FXCURSOR=
For example, FXCURSOR=/opt/fox/wp/foxview/cur-
sor/crosshair_large sets the cursor to a different cursor.
GCLBUG
Purpose The workstation’s letterbug
GCRED
Purpose Flag to allow redirection of displays. If set to 1, allows redirection to other
Display Managers or FoxViews
HISTNAME
Purpose Name of configured logical host. This value can not be modified in the
init.user file.
INITDSP
Purpose Allows you to define the name of the initial display
136
3. Reserved Workstation Variables B0193DF – Rev M
LFPID
Purpose Reserved read/write global variable
Remarks The LFPID (last-forked process id) global is set whenever the run built-in
is used to start a WP task. LFPID contains the process id of the last pro-
cess started with a run followed by a comment character (#) and the path-
name of the last run program.
One way to use this command is in conjunction with the kill command;
for example, dmcmd kill $LFPID.
NOTE
Everything to the right of the pound sign (#) is ignored when LFPID is referenced
in a script.
MLS_DD
MLS_FP
Purpose Allows you to configure display manager prepick variables
Use Uncomment the following lines in the init.user file to remove prepick
functionality from Block detail displays (MLS_DD) or group displays
(MLS_FP).
MLS_DD=
MLS_FP
OJL
Purpose Name of user for logging to Operator Action Journal. If not set, use
DMNAME. This can be set to GCLBUG.
137
B0193DF – Rev M 3. Reserved Workstation Variables
OJLOG
Purpose Variable containing the current logging status of the Operator Action
Journal
Configuration 20/30/50/51/70
Use This variable can be initialized through the init.usr file. The format is:
[E|D]<prtname>,[E|D]<histname>
where:
E|D An E (enabled) or a D (disabled) is required.
<prtname> The name of the printer for logging operator actions.
<histname> The name of the Historian to which the operator action mes-
sages are sent. This field must include six characters.
NOTE
The format of the variable is fixed. It must contain
five characters, a comma, and then seven characters.
Examples:
ELP01,Ehist01
The above variable enables logging to a Historian and printing. The
printer is LP01, and the Historian is hist01.
DLP01,Ehist01
The above variable enables logging to a Historian, but disables printing.
OVLMAX
Purpose Allows you to configure the maximum number of overlays.
Configuration 50 Series
Use Uncomment and edit the following line in the init.user file to configure
the maximum number of overlays allowed in the display manager.
OVLMAX=<number>
The <number> can be 4 to 20, inclusive.
138
3. Reserved Workstation Variables B0193DF – Rev M
PGM
Purpose Reserved read/write
(Also refer to the exit global variable)
Name of last application started with the run command. Read/write
variable.
Remarks WP20/30 only. Use this variable to store the command line of the next
process to run instead of Display Manager. Use this command with the
exit command.
The following example causes the Display Manager to exit and start
/usr/fox/user_program. PGM is cleared after a successful exit. PGM is not
cleared when the program cannot start up.
dmcmd script
= PGM /usr/fox/user_program
exit 11
PICK1
Purpose Reserved read/write global variable used to store the name of the current
relative pick. Cleared each time a base display is called in. Cleared each
time a relative pick is uncleared.
Remarks PICK1 is cleared to the pattern <:.> when a new display is called. It is not
cleared if an overlay is called.
PICK1 is reset when an overlay is closed and it has a highlighted area, that
is, an object is selected. The Display Configurator’s or FoxView’s “set rela-
tive pick” is the recommended method of setting the PICK1 variable.
PICK1 is the standard global used to hold the value of the current pick.
PICK2
Purpose Reserved read/write global variable cleared each time a base display or
overlay is called in
139
B0193DF – Rev M 3. Reserved Workstation Variables
Remarks PICK2 refers to a pickable softkey on a display or the menu bar. The value
assigned to PICK2 may include an optional parameter.
PICK2 is set to the null string when a display or overlay is invoked. Setting
PICK2 in a script that eventually calls a base display or overlay display
resets PICK2 to the null string. Do not set PICK2 within a script that
invokes a display.
PICK_TMO
Purpose Time in seconds before relative pick will time out
PID_DD
PID_FP
Purpose Allows you to configure display manager prepick variables
Use Uncomment the following lines in the init.user file to remove prepick
functionality from block detail displays (PID_DD) or group displays
(PID_FP).
PID_DD=
PID_FP
If in Manual mode, Output is selected, otherwise, Setpoint is selected.
PLB
Purpose Reserved read-only global variable
Remarks The Display Manager PLB variable is created on every workstation and
contains the default directory (/usr/plc) for the ladder displays. The Dis-
play Manager uses this variable as follows:
♦ Compares the base directory of an open display command to the
contents of the PLB variable to determine if a ladder display is to
be opened.
♦ Loads the plb_dir file, that is, [<rmount_pnt>]$PLB/plb_dir.
140
3. Reserved Workstation Variables B0193DF – Rev M
PRC_BTN
Purpose Command to execute when the Process button is selected
PRC_PROT
Purpose Access level for protection of the Process button pick
PSV_PROT
Purpose Access level for protecting the Online Trend Configurator’s Permanent
save button
REM
Purpose Indicates that file is remote
Configuration 51DM/51FV
REMOTE
Purpose Contains the path of the currently mounted station
Configuration 50/51
Use Use this prefix to identify files that should be accessed on a remotely
mounted station.
Example:
$REMOTE/opt/custom/Initial_Disp
This refers to the initial display on the current remotely mounted station.
141
B0193DF – Rev M 3. Reserved Workstation Variables
SAA_PROT
Purpose Access level for protecting the Select and Assign functionality
SEL_PROT
Purpose Access level for protection of turning compounds on/off within Select
Screen or FoxSelect
SELCPSRH
Purpose Allows you to set up the Select screen
Configuration 20/30/50/51DM
Use Uncomment and edit the following line in the init.user file to change the
default CP that displays in the Select screen.
SELCPSRH=<cp_nm_filter>:<function>
where:
cp_nm_filter is the name to be stored in the CP Search field when
calling up Select
function: ALWAYS The cp_nm_filter is always stored in the CP Search
field when calling up the Select Screen
Leaving this argument blank stores the cp_nm_filter the first time the dis-
play manager is restarted only.
Examples
SELCPSRH=*
After restarting the display manager, sets the CP Search field to “*”. Oper-
ator entry is used for the remaining inputs.
SELCPSRH=*:ALWAYS
When calling up the Select screen, the CP Search field is always set to “*”.
SELCPSRH=:
This is the default. When a display manager restarts, the CP Search field is
set to be blank. After you enter a CP name, the CP name is used.
SELCPSRH=:ALWAYS
When calling up the Select screen, the CP Search field is cleared
SELCPSRH=LBUG*:ALWAYS
When calling up the Select screen, brings up the Compound menu of sta-
tions matching the LBUG filter.
142
3. Reserved Workstation Variables B0193DF – Rev M
SMDH
Purpose Command to execute when the System button is selected
SSPROMPT
Purpose Allows you to configure FoxSelect functionality
Use Uncomment and edit the following lines causing the generation of a con-
firmation message when turning a compound on or off.
SSPROMPT=Y
The above line requires the operator to confirm the action when turning
on or turning off a Compound.
SSPROMPT=N
The above line requires no perator confirmation when turning on or turn-
ing off a compound.
SEL_PROT
Purpose Reserved read/write global variable
Use Select Screen protection (SEL_PROT) level to disable access to the Select
Screen COMPOUNDS OFF, COMPOUNDS ON, and GROUP
COMPOUNDS buttons.
Remarks This Object Manager global should have a range from 0 through 255, and
should be set similar to the graphic object protection classes, configured in
the display configurator.
The content of the global can be defined in the init.cmds script.
SEQ
Purpose Reserved read-only global variable
143
B0193DF – Rev M 3. Reserved Workstation Variables
Remarks The display manager uses the SEQ variable to identify the location of the
sequence code. The SEQ variable is set to /usr/fox/ciocfg/$p1/$p2.r,
where p1 and p2 are display manager variables set as follows:
p1 is set to <compound name>
p2 is set to <block name>
SSOPT
Purpose Can be set to have FoxSelect perform either a Reload or a Refresh when
started.
Use If this variable is set to -RELOAD, FoxSelect reloads all connected stations
when FoxSelect is started. If set to -REFRESH, FoxSelect refreshes all con-
nected stations. The default behavior (when this variable is left blank) is
for FoxSelect to resume where it left off, which means that FoxSelect’s
database will be identical to the last time it was exited.
STA
Purpose Reserved read/write global variable name of station to which to redirect
next display
Remarks This variable holds the name of the display manager where redirection
takes place. It is often used for multi-screen applications where displays are
diverted from a DM to a different screen. Storing a DM name in STA
determines where the next display is sent.
If STA is cleared, display call-up goes to the original display manager that
initiated it. STA is cleared once it is used depending on the value of the
read-only global GCRED.
144
3. Reserved Workstation Variables B0193DF – Rev M
ST0
Purpose Reserved read/write global variable
Remarks The ST0 variable holds a command that brings up the current display. The
variable ST0 is copied into ST1 when a new display is called up.
NOTE
ST0 need not be a display file; it may be a built-in command with arguments or a
script name.
ST1
Purpose Reserved read/write global variable
Remarks The ST1 variable holds a command that brings up the previous display.
The variable ST0 is copied to ST1 when a new display is called up. A dmcmd
close command copies them back (exchanging contents) so that an oper-
ator may easily flip between a pair of displays.
Setting ST1 is a way of changing the name of the previous display.
NOTE
ST1 need not be a display file; it may be a built-in command with arguments or a
script name.
SYS_PROT
Purpose Access level for protection of the System button
TLC_PROT
Purpose Access level for protecting changes to trend line connection name using
the on-line trend configurator in FoxView
145
B0193DF – Rev M 3. Reserved Workstation Variables
TLD_PROT
Purpose Access level for protecting changes to trend lone descriptions using the on-
line trend configurator in FoxView
TND_PROT
Purpose Access level for protection for on-line trend configuration from FoxView
TNDACK
Purpose List of colors to use in the trend alarm field for unacknowledge colors
Configuration 30/50/51DM
TNDUNACK
Purpose List of colors to use in the trend alarm field for unacknowledge colors
Configuration 30/50/51DM
TRD_RESCALE
Purpose Allows you to configure trend redraw time
Configuration 51DM
Use Uncomment and edit the following line in the init.user file to change the
trend redraw time.
TRD_RESCALE=
The value entered after the equal sign (=) determines the minimal time
interval (in seconds) between trend graph redraws due to a change in
trend line’s high-scale and low-scale values as recalculated by the auto-scale
algorithm.
USR_DIR
Purpose Name of the directory where user-written environments are found
146
Appendix A. Bit Extension
Acronyms
ALMOPT
See INHSTA.
ALMSTA
Bit Acronyms Boolean
(50 Series) Numbers Definitions
B3 B3 Uninhibit Alarm
PNT1-8 B17-B24 Boolean 17-24 (bits 15-8).
BAD B10 Bad I/O Alarm
HDA B11 High Deviation Alarm
HHA B7 High High Absolute Alarm
HMA B15 High Measurement Alarm
HOA B13 High Output Alarm
LDA B12 Low Deviation Alarm
LLA B8 Low Low Absolute Alarm
LMA B16 Low Measurement Alarm
LOA B14 Low Output Alarm
PTRG B13 Pre-Target Alarm
OOR B4 Out of Range Alarm
OPER B5 Operational Error Alarm
ROC B9 Rate of Change Alarm
STA B6 State Alarm
TARG B7 Target Alarm
TRIP B1 Trip Alarm
UNAK B2 Unacknowledged Alarm
NOTE
CRIT and PRI are integers mapped into ALMSTA, and are, therefore, not bit
acronyms.
147
B0193DF – Rev M Appendix A. Bit Extension Acronyms
BLKSTA
Bit Acronyms Boolean
(50 Series) Numbers Definitions
B29 B29 Booleans (bit 3). Not used.
ACC B27 Accumulate
ACT B16 Active
ASP B28 Alternate Setpoint
BAD B20 Bad I/O
BADR B31 Bad Redundant I/O
CTL B27 Control
DEV B28 Redundant I/O Deviation
DF B10 Device Fail
DSB B9 Disabled
DSR B10 DSR Mismatch
FBM B24 FBM Failure
FBMR B23 Redundant FBM Failure
FLB B1 Supervisory Fallback
FOL B28 Follow
FS B8 Fail-safe Output
FTN B15 Feedforward Tune Active
FTNI B16 Feedforward Tune Inactive
HLD B25 Hold
HOL B4 High Output Limit
HRQ B13 Hold Request
ILK B11 Interlocked
LM1 B16 Limit Switch 1
LM2 B15 Limit Switch 2
LOL B5 Low Output Limit
LR B22 0 = Local, 1 = Remote
LRO B7 LR Override
MA B21 0 = Manual, 1 = Auto
MAO B6 MA Override
MO B8 Manual Override
MTN B32 Manual Tune
ON B17 Compound On
PAUS, PAU B14 Paused
PTN B30 Pre-tune
RAMP B15 Ramp Option
RED B11 Redundant Inputs
148
Appendix A. Bit Extension Acronyms B0193DF – Rev M
NOTE
20 Series bits SPD, SPI, and OPN are no longer used.
149
B0193DF – Rev M Appendix A. Bit Extension Acronyms
INHALM
Bit Acronyms Boolean
(50 Series) Numbers Definitions
BAD B10 Bad I/O Alarm
HDA B11 High Deviation Alarm
HHA B7 High High Absolute Alarm
HMA B15 High Measurement Alarm
HOA B13 High Output Alarm
LDA B12 Low Deviation Alarm
LLA B8 Low Low Absolute Alarm
LMA B16 Low Measurement Alarm
LOA B14 Low Output Alarm
OOR B4 Out of Range Alarm
OPER B5 Operational Error Alarm
PNT1 B1 Point 1 Alarm
PNT2 B2 Point 2 Alarm
PNT3 B3 Point 3 Alarm
PNT4 B4 Point 4 Alarm
PNT5 B5 Point 5 Alarm
PNT6 B6 Point 6 Alarm
PNT7 B7 Point 7 Alarm
PNT8 B8 Point 8 Alarm
PTRG B8 Pre-Target Alarm
ROC B9 Rate of Change Alarm
STA B6 State Alarm
TARG B7 Target Alarm
TRIP B1 Trip Alarm
INHSTA/ALMOPT
Bit Acronyms Boolean
(50 Series) Numbers Definitions
B17-B32 B17-B32 Boolean 17-32 (bits 15-0) not used.
BAD B10 Bad I/O Alarm
HDA B11 High Deviation Alarm
HHA B7 High High Absolute Alarm
HMA B15 High Measurement Alarm
HOA B13 High Output Alarm
LDA B12 Low Deviation Alarm
150
Appendix A. Bit Extension Acronyms B0193DF – Rev M
NOTE
When configuring a path with a bit extension (such as trend lines, dmcmd toggle,
etc.), you may not use bit acronyms for 20/30 Series display files; you may only use
Boolean numbers or a hexadecimal mask.
When you are building 50 Series display files using bit acronyms in the bit exten-
sion, the convert-display-2-20 program (convdisp2_20) converts the bit acronym
into a hexadecimal mask.
151
B0193DF – Rev M Appendix A. Bit Extension Acronyms
152
Appendix B. Examples of
Read/Write File Operations
NETWORK DISPLAY
153
B0193DF – Rev M Appendix B. Examples of Read/Write File Operations
NODE REPORT is an object group having three objects: a rectangle and two text objects. Only
one of the text objects has the “select” attribute, which connects with the action to be taken when
NODE REPORT is picked. This action is “Open Overlay”, and path points to the Overlay Dis-
play location. Open Overlay displays the information, which is read from the user-defined file.
Each text object of Overlay Display has the “select” attribute connected with a “read file” action,
and path points to the filename and record number to be displayed.
For example, text object #3 could have path “$P2 bi3IB”, which would mean that the file “$P2”
(the filename is known after the substitution when the user picks NODEi) is opened as blocked
text (b), is buffered (B) with set default base index (I), and the third record (i3) of this file is read
and displayed.
154
Appendix B. Examples of Read/Write File Operations B0193DF – Rev M
Object Purpose
DEP Handles the display title rectangle (at the top of
the display)
A text object Consists of the words “Dependent Sequence
Block Code”
A rectangle A simple rectangle around ORM_1 through
ORM_20
Horizontal lines Handles the bottom rectangle, which contains
ACK, the “return” stop sign, TOGGLE, and
other buttons
CTRL_BUTTONS The control buttons
CODE_BUTTONS The code buttons
The following presents some details regarding the “lines” group object and the
CODE_BUTTONS group object, showing how a read command is utilized:
The “lines” group object has 20 text objects, each of them having a read file attribute,
which connects through pathname “$SEQ {options}” with the file to be read. The file
name is known after the block selection (in this case, the DEP block). The options are:
b blocked text (the sequence block has the block text file with the
extension *.r)
i# line number (the number is written after i)
I default base index
B buffered file (keep the last file to be opened).
155
B0193DF – Rev M Appendix B. Examples of Read/Write File Operations
156
Index
!= 63
# 46
= 38
== 52
@ Character, extracting test from a test record 10
A
Access key locks 94, 105
ACKCLR 127
Acknowledged alarm, list of colors 127
ACL 94, 105
ADV_PROT 127
AHD 127
Alarm backup, workstation 127
Alarm Manager, command interface 1
Alarm Text, exporting to other applications 1
Alarm, invoking another application 1
alarm_bar 30, 67
almack 31
almack_c 31
almackone_c 32
almackpage_c 32
ALMBUP 127
ALMCLR 127
ALMCNT 128
almdel 33
almdelpage 34
almhist 34
almredir 35
ALMTEXT 128
annun 36
Annunciator panels, display commands 17
AOUT_DD 128
AOUT_FP 128
APLBUG 129
applic 37
B
backsurf 38
baklog 39
Bit extensions
for input control 20
for output connections 21
parameter 20
157
B0193DF – Rev M Index
uses 20
blink 40
Block detail display redirection 129
Built-in commands, use of dmcfg 19
Button 40
C
CAD, clearing 129
CADDD 129
CADTP 129
CADUS 129
Calls, display manager 1
CBP_PROT 129
chng_env 42
chng_menu_bar 43
clearpick 43
close 43
CLR_OPT 129
clralmpnl 45
Color
to highlight selectable fields 135
to highlight selectable fields for select/assign 135
to indicate relative pick object 135
Colors
acknowledged alarm 127
unacknowledged alarm 127, 146
Command
!= 63
# 46
= 38
== 52
alarm_bar 30, 67
almack 31
almack_c 31
almackone_c 32
almackpage_c 32
almdel 33
almdelpage 34
almhist 34
almredir 35
annum 36
applic 37
backlog 39
backsurf 38
blink 40
button 40
chng_env 42
chng_menu_bar 43
close 43
158
Index B0193DF – Rev M
clralmpnl 45
dbar_button 47
display_bar 50
dmexit 50
do_lia 51
e 51
else 51
enable 52
execute 53
exit 54
frntsurf 57
ge 58
get_select_pt 58
getenv 59
getstr 59
goto alms 60
horns 61
incwrap 62
initlog 64
input 64
kill 65
lt 66
mount 68
msglin 70
next alms 70
next rdline 71
nologscr 72
nostack 72
ov 13, 73
ov_conn 13
ov_mode 81
ov_on_top 81
ov_switch 82
pageack 82
passwd 83
pick 84
plot 87
prev alms 91
prev rdline 92
protect 93
prtalmpnl 95
psc 95
quitdm 96
run 98
script 99
sdjump 100
select_pt 101
setacl 104
159
B0193DF – Rev M Index
setb 102
setenv 106
setfindex 107
setglbl 108
seti 103
setl 104
shortcut_menu _style 109
shortcut_menu_file 91
showcag 109
showms 110
sleep 111
source 112
stack 114
status_bar 114
stddisp 115
subslist 116
subst 117
toggle 118
trend 120
umount 123
unprotect 93
viewdm 124
wp_applic 124
wrtfile 124
Command interface, Alarm Manager 1
Commands, concatenating 19
Comment 46
Compound, turning on or off 143
CTLFRST 128, 130
Cursor, configuring 136
D
DBA_PROT 130
dbar_button 47
DBL_PROT 130
DBM_PROT 131
DBN_PROT 131
DBS_PROT 131
Decimal point, specifying 132
Display bar
configuring 130, 131
specifying a button action 47
Display Manager
commands for annunciator panel assignments 17
evaluating OM data 9
exiting 50
file types 22
scripts 7
search paths 23
160
Index B0193DF – Rev M
E
e 51
else 51
Embedded scripts 8
enable 52
ENV 134
ENV1 134
execute 53
exit 54
ExpertSelect 8
F
Faceplates, configuring the search path 134
Fields, specifying decimal point placement 132
FoxSelect, configuring 143
FoxView, configuring update mode 135
FPLIB 134
frntsurf 57
FV_FPOVL 135
FV_HCLR 135
FV_RPCLR 135
FV_SACLR 135
161
B0193DF – Rev M Index
FV_UPDAT 135
FVMENU_COLUMNS 134
FVSEL_ASGN 135
FXCURSOR 136
G
GCLBUG 136
GCRED 136
ge 58
get_select_pt 58
getenv 59
getstr 59
goto alms 60
H
HISTNAME 136
Horns 61
I
I/A Series displays
building 12
configuring menus 12
Icon, specifying text 132
incwrap 62
INITDSP 136
Initial Display, defining 136
initlog 64
input 64
Input control, using bit extensions 20
K
Key locks 93
kill 65
L
Letterbug 136
LFPID 137
lia, FV/DM name 129
Locks 105
key 94
Loop in Alarm 51
lt 66
M
Menus, configuring 12
Message line, format for time 133
162
Index B0193DF – Rev M
mount 68
msglin 70
N
next alms 70
next rdline 71
nologscr 72
nostack 72
O
Object Manager data values, using 9
OJL 137
OJLOG 138
Operator Action Journal 137
Output connections, using bit extensions 21
ov 73
ov command 13
ov_conn command 13
default directory 135
ov_mode 81
ov_on_top 81
ov_switch 82
Overlay displays, configuring 13
Overlays, configuring the maximum number 138
OVLMAX 138
P
P1 138
P2 138
P3 138
P4 138
P5 138
P6 138
P7 138
P8 138
pageack 82
Parameter, bit extensions 20
passwd 83
PGM 139
pick 84
PICK_TMO 140
PICK1 139
PICK2 139
PID_DD 137, 140
PID_FP 137, 140
PLB 140
plot 87
PRC_BTN 141
PRC_PROT 141
163
B0193DF – Rev M Index
pref 131
Prepick variable, configuring 128, 137, 140
prev alms 91
prev rdline 92
Process Button, protecting 141
protect 93
Protection class 94
Protection, Select Screen and FoxSelect 142
prtalmpnl 95
psc 95
PSV_PROT 141
Q
quitdm 96
R
REM 141
REMOTE 141
Reusable Displays
building 16
configuring 13
default ranges 17
Root group 75
run 98
S
SAA_PROT 142
Script 99
annotating 46
Scripts 7
embedded 8
use of dmcfg 19
sdjump 100
Search paths, Display Manager 23
sel.prot 143
SEL_PROT 142
SELCPSRH 142
Select and Assign, preventing object selection 142
Select Screen, setting up 142
select_pt 101
SEQ 143
set_select_pt 101
setacl 104
setb 102
setenv 106
setfindex 107
setglbl 108
seti 103
setl 104
164
Index B0193DF – Rev M
T
Template, formatting 14
Text record, substituting text 10
TLC_PROT 145
TLD_PROT 146
TND_PROT 146
TNDACK 146
TNDUNACK 146
toggle 118
TRD_RESCALE 146
trend 120
Trend, configuring redraw time 146
U
Unacknowledged alarm, list of colors 127, 146
unmount 123
unprotect 93
User display, redirection 129
USR_DIR 146
V
Value, assigning 38
viewdm 124
W
Window, making non-scalable 133
Workstation, alarm backup 127
wp_applic 124
165
B0193DF – Rev M Index
wrtfile 124
33 Commercial Street
Foxboro, Massachusetts 02035-2099
United States of America
www.foxboro.com
Inside U.S.: 1-866-746-6477
Outside U.S.: 1-508-549-2424 or contact your local Foxboro representative.
Facsimile: 1-508-549-4999
Printed in U.S.A. 0707