RRM 3-14 State

From EPICSWIKI
Revision as of 18:44, 18 April 2008 by KazimierzGofron (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

EPICS Record Reference Manual


State

The state record is a means for a state program to communicate with the operator interface. Its only function is to provide a place in the database through which the state program can inform the operator interface of its state by storing an arbitrary ASCII string in its VAL field.

Parameter Fields

The state record fields fall into the following categories:

  • scan parameters
  • operator display parameters
  • other parameters

Scan Parameters

The state record has the standard fields for specifying under what circumstances it will be processed. These fields are listed in Scan Fields. In addition, Scanning Specification explains how these fields are used.


Operator Display Parameters

See Fields Common to All Record Types for more on the record name (NAME) and description (DESC) fields.


FieldSummaryTypeDCTInitialAccessModifyRec Proc MonitorPP
NAMERecord NameSTRING [29]Yes0YesNoNo 
DESCDescriptionSTRING [29]YesNullYesYesNoNo


Alarm Parameters

The state record has the alarm parameters common to all record types. Alarm Fields lists other fields related to a alarms that are common to all record types.


Run-time Parameters

These parameters are used by the application code to convey the state of the program to the operator interface. The VAL field holds the string retrieved from the state program. The OVAL is used to implement monitors for the VAL field. When the string in OVAL differs from the one in VAL, monitors are triggered. They represent the current state of the sequence program.


FieldSummaryTypeDCTInitialAccessModifyRec Proc MonitorPP
VALValue FieldSTRING [20]YesNullYesYesYesYes
OVALOld ValueSTRING [20]NoNullYesNo  


Record Support

Record Support Routines

Two record support routines are provided:

process

process triggers monitors on VAL when it changes and scans the forward link if necessary.

get_value

get_value fills in struct valueDes so that it refers to VAL.




EPICS Record Reference Manual - 19 MAY 1998