Difference between revisions of "RRM 3-14 State"
Line 16: | Line 16: | ||
=== Scan Parameters === | === Scan Parameters === | ||
The state record has the standard fields for specifying under what circumstances it will be processed. These fields are listed in [[RRM 3- | The state record has the standard fields for specifying under what circumstances it will be processed. These fields are listed in [[RRM 3-14 dbCommon#Scan Fields|Scan Fields]]. In addition, [[RRM 3-14 Concepts#Scanning Specification|Scanning Specification]] explains how these fields are used. | ||
=== Operator Display Parameters === | === Operator Display Parameters === | ||
See [[RRM 3- | See [[RRM 3-14 dbCommon#Fields Common to All Record Types|Fields Common to All Record Types]] for more on the record name (NAME) and description (DESC) fields. | ||
Line 33: | Line 33: | ||
=== Alarm Parameters === | === Alarm Parameters === | ||
The state record has the alarm parameters common to all record types. [[RRM 3- | The state record has the alarm parameters common to all record types. [[RRM 3-14 dbCommon#Alarm Fields|Alarm Fields]] lists other fields related to a alarms that are common to all record types. | ||
Latest revision as of 19:59, 18 April 2008
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.
Field | Summary | Type | DCT | Initial | Access | Modify | Rec Proc Monitor | PP |
---|---|---|---|---|---|---|---|---|
NAME | Record Name | STRING [29] | Yes | 0 | Yes | No | No | |
DESC | Description | STRING [29] | Yes | Null | Yes | Yes | No | No |
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.
Field | Summary | Type | DCT | Initial | Access | Modify | Rec Proc Monitor | PP |
---|---|---|---|---|---|---|---|---|
VAL | Value Field | STRING [20] | Yes | Null | Yes | Yes | Yes | Yes |
OVAL | Old Value | STRING [20] | No | Null | Yes | No |
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