EPICS Record Reference Manual. Philip Stanley, Janet Anderson, Marty Kraimer. Wikified by Andrew Johnson. Copyright · Preface. EPICS Input Output Controller (IOC) Record Reference Manual. Janet B. Anderson and. Martin R. Kraimer. Advanced Photon Source. Issue 1: December 1. EPICS R Channel Access Reference Manual .. link -nologo /LTCG / incremental:no /opt:ref /release /version -out: acctst. obj .. by the EPICS record support (see the EPICS Application Developer Guide ).
|Published (Last):||15 February 2004|
|PDF File Size:||13.44 Mb|
|ePub File Size:||16.77 Mb|
|Price:||Free* [*Free Regsitration Required]|
The Calc record has the standard fields for specifying under what circumstances the record will be processed. The CALC field contains the infix expression which the record routine will use when it processes the record.
Although only one reocrd calculation expression is allowed, multiple assignment expressions are allowed. Natural log unary LN: CALC referencd be changed at run-time, and a special record routine calls a function to convert it to Reverse Polish Notation.
The Reverse Polish expression is evaluated more efficiently during run-time than an infix expression. The infix expressions that can be used are very similar to the C expression syntax, but with some additions and subtle differences in operator meaning and precedence.
No Literals Standard double precision floating point numbers Inf: See Monitor Specification for a complete explanation of monitors. The Calculation alarm is called by the record processing routine when the CALC expression is an invalid one, upon which an error message is generated. Alarm Fields lists other fields related referencw alarms that are common to all record types. See Address Specification for information on how to specify database links.
The string may contain a series of expressions separated by a semi-colon character ‘;’ any one of which may actually provide the calculation result; however all of the other expressions included must assign their result to a variable. Absolute value unary SQR: Retrieved from ” https: The LALM field is used to epice the hysteresis factor for the alarm limits. The EGU field contains a string of up to 16 characters which is supplied by the user and which describes the values recoed operated upon.
RRM 3-14 Calculation
Browse Main page Recent changes Random page Refreence. These fields are used to display VAL and the other parameters of the calculation record either textually or graphically.
Spaces may be used anywhere within an expression except between the characters that make up a single expression element. Conditional Expression The C language’s question mark operator is supported.
The semicolon is used to separate expressions. The result is stored in RPCL. The values to be used in the expression are simply referenced by the field letter. The HYST field defines an alarm deadband for each limit. For instance, if LA does not equal the value for A, monitors for A are triggered.
RRM Calculation – EPICSWIKI
The resulting value is placed in the VAL field and can be accessed from there. No Monitor Parameters These parameters are used to determine mwnual to send monitors for the value fields.
Sets the upper display and lower display limits for a field. Minimum any number of args MAX: The monitors are sent when the value field exceeds the last monitored field by the appropriate deadband, the ADEL for archiver monitors and the MDEL field for all other types of monitors.
It is this expression which is actually used to calculate VAL. They cannot be hardware addresses. These parameters are used to present meaningful data to the operator.
All alphabetic elements described below are case independent, so upper and lower case letters may be used and mixed in the variable and function names as desired.
These parameters are used to determine when to send monitors for the value fields. The keyword VAL returns the current contents of the VAL field which can be written to by a CA put, so it might not be the result from last time the expression was evaluated. The calculation or “Calc” record is used to perform algebraic, relational, and logical operations on values retrieved from other records.
The result of its operations can then be accessed by another record so that it can be used. Square root unary MIN: These fields are listed in Scan Fields.
See Alarm Specification for a complete explanation of alarms and these fields. Sets the upper control and the lower control limits for a field. A routine postfix is called to convert the infix expression in CALC to reverse polish notation.
If these fields have a value of zero, everytime the value changes, monitors are triggered; if they have a value of -1, everytime the record is scanned, monitors are triggered.
The fields can be database links, channel access links, or constants.
This page was last edited on 22 Marchat Yes The keyword VAL returns the current contents of the VAL field which can manuxl written to by a CA put, so it might not be the result from last time the expression was evaluated. These values retrieved from the input links are stored in the A-L fields. Log base 10 unary LOGE: This page Page Discussion History. If they are constants, they will be initialized with the value they are configured with and can be changed via dbPuts.
They are used to process the record. The range of expressions supported by the calculation record are separated into literals, constants, operands, algebraic operators, trigonometric operators, relational operators, logical operators, the assignment operator, parentheses and commas, and the question mark or ‘?: