The ref element defines the element contents of a data group element that uses an advanced reference method. ref must be part of an advanced reference method that uses the appropriate reference operation attributes. Do not confuse the ref element with the ref attribute.
This element is:
To learn about how this element relates to other elements in a CygNet device template file, see Template File Hierarchy.
See also Reference Methods.
Example
|
<SubConst desc="Subtract Constant Value" readOnly="true" type="ui2" isRef="1"> <ref prec="0" refOp="opAssignId" deid="raw10"/> <ref prec="1" refOp="opSubVal" value="5"/> </SubConst> |
The following table lists and describes attributes generally applicable to this element. However, not all of the attributes listed here are applicable to all EIEs. Additionally, some attributes are required for use in every device template file of a certain EIE, but others may be used on a case-by-case or device-by-device basis, depending on your specific needs. All attributes in templates are case sensitive; but the case sensitivity of attribute values is based on context.
Note: Occasionally, device template files for different EIEs use attributes of the same name that do different things. Efforts are made in this document to highlight cases where an attribute by one name does different things in different EIEs.
Browse by letter: B D F I M P R S V
| Attribute | Description |
|---|---|
|
baseTime specifies a starting date as the basis of a time conversion. It can be used in conjunction with isUTC. Value:
See also opTimeSeconds and Time Formatting Examples – Seconds Date/Time. |
|
|
bitShift works with bMsk for legacy and extended (new) references, opSelect reference operation, and EFM mappings to indicate whether or not to shift off the masked low bits. Value:
See also opBitMask and Bit Mask Examples. |
|
|
bPosDest specifies the destination position of a bit. Bit position enumeration starts with 0, the least significant bit position. bPosDest is used in reference methods. Value:
See also opBitStuff and Bit Position Examples – Bit Stuff from Referenced Data Group Element. |
|
|
bXorMask (bit XOR mask) performs a bitwise XOR operation on a referenced value when one or more bits are to be affected. bXorMask is used in reference methods. Value:
|
|
|
deid specifies the data group element ID (DEID) of a referenced data group element from which to use a value. eFMS and eGMR elements usually require deid. However, in special cases a register number (regNum) can be used instead of a deid value to associate a data item with a data source. Value:
See also selection and eFMS, eGMR. |
|
|
deidDate references a data group element that provides a source date value. deidDate is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidDay references a data group element that provides a source day value. deidDay is used in various time conversions. Value:
See cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidHour references a data group element that provides a source hour value. deidHour is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidMinute references a data group element that provides a source minute value. deidMinute is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidMonth references a data group element that provides a source month value. deidMonth is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidSecond references a data group element that provides a source month value. deidSecond is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidTime references a data group element that provides a source time value. deidTime is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
deidYear references a data group element that provides a source year value. deidYear is used in various time conversions. Value:
See also cvtRef Conversion Method and Reference Methods – Time Formatting Examples. |
|
|
destUnits specifies the unit type output. Must be used in conjunction with srcUnits. destUnits is used in reference methods. Value:
See also opUnitConversion, Unit Conversion Examples – Unit Conversion (B), and PNT Engineering Units. |
|
|
format converts source data group element data into a human-readable format in a reference method conversion in a destination data group element. Value:
See also Reference Methods. |
|
|
formatDate specifies the format by which to interpret source data before it is converted to the Microsoft standard date-time format. For example, specifying MMddyy ensures that a source date format of two-digit month, two-digit day, and two-digit year is properly converted to the Microsoft standard date-time format. Value:
See opTimeEnron and Time Formatting Examples - Enron Date/Time. |
|
|
formatTime specifies the format by which to interpret source data before it is converted to the Microsoft standard date-time format. For example, specifying HHmmss ensures that a source time format of two-digit hour, two-digit minute, and two-digit second is properly converted to the Microsoft standard date-time format. Value:
See opTimeEnron and Time Formatting Examples - Enron Date/Time. |
|
|
isUTC specifies that time in a time conversion is UTC. It can be used in conjunction with baseTime. Value:
See opTimeSeconds and Time Formatting Examples – Seconds Date/Time. |
|
|
mapVal maps an enumeration table keyword to an enumeration table of the same name. The referenced table can be scoped to a data group element, scoped to a device template file (using an enums table), or be one of several global tables. First the data group element in which the mapVal attribute is defined is searched for a table local to it. If no such table is found, a wider search occurs in which the device template file and the global tables are searched for a corresponding enumeration table of the same name. mapVal can be used in both a basic reference method and an advanced reference method in similar ways. In a basic reference method, mapVal must be defined in-line along with a ref attribute. In an advanced reference method, if mapVal is used, it must be defined in-line along with a refOp attribute set to opMapVal. If the mapVal attribute references an enumeration table in a device template file, a drop-down menu containing the defined enum values will display when editing the specified data group element value on the data group's View Data dialog box. The enumeration values must be unique for the values to display in a drop-down menu. (In an eFMS or eGMR element, mapVal is used in combination with the deid attribute, which maps the eFMS or eGMR element to a value.) Value:
See also enums and Enumeration Mapping Examples. |
|
|
prec specifies the order of operator precedence for each ref element used in an advanced reference method. Value:
|
|
|
refOp specifies the name of a reference operation; reference operations are required components of advanced reference methods. One reference operation must be used in each ref element. Value:
|
|
|
scaleFactor defines a constant multiplier. Multiplication is powered by some other mechanism, like the reference operation opScaleFactor or the cvtF conversion method Scale. scaleFactor cannot be used in the same element as scaleFactorId. It also cannot be used in the same element as any two-point scaling attribute, like scaleLoRaw. Value:
|
|
|
scaleFactorId multiplies a value by a referenced value. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleFactorId is used in linear scaling in reference methods. scaleFactorId cannot be used in the same element as scaleFactor. It also cannot be used in the same element as any two-point scaling attribute, like scaleLoRaw. Value:
|
|
|
scaleHiEng defines a high engineering value in a two-point engineering scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleHiEng is used in linear scaling in reference methods. scaleHiEng cannot be used in the same element as scaleHiEngId. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleHiEngId defines a high engineering value in a two-point engineering scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleHiEngId is used in linear scaling in reference methods. scaleHiEngId cannot be used in the same element as scaleHiEng. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleHiRaw defines a high raw value in a two-point raw scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleHiRaw is used in linear scaling in reference methods. scaleHiRaw cannot be used in the same element as scaleHiRawId. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleHiRawId defines a high raw value in a two-point raw scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleHiRawId is used in linear scaling in reference methods. scaleHiRawId cannot be used in the same element as scaleHiRaw. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleLoEng defines a low engineering value in a two-point engineering scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleLoEng is used in linear scaling in reference methods. scaleLoEng cannot be used in the same element as scaleLoEngId. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleLoEngId defines a low engineering value in a two-point engineering scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleLoEngId is used in linear scaling in reference methods. scaleLoEngId cannot be used in the same element as scaleLoEng. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleLoRaw defines a low raw value in a two-point raw scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleLoRaw is used in linear scaling in reference methods. scaleLoRaw cannot be used in the same element as scaleLoRawId. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleLoRawId defines a low raw value in a two-point raw scale. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleLoRawId is used in linear scaling in reference methods. scaleLoRawId cannot be used in the same element as scaleLoRaw. It also cannot be used in the same element as any non-two-point scaling attribute, like scaleFactor or scaleOffset. Value:
|
|
|
scaleOffset adds an input value to a constant value. The original, non-scaled input value must be preserved in a different data group element, typically in the same data group. scaleOffset cannot be used in the same element as scaleOffsetId. It also cannot be used in the same element as any two-point scaling attribute, like scaleLoRaw. Value:
|
|
|
scaleOffsetId |
scaleOffsetId adds an input value to a referenced value. The original, non-scaled input value must be preserved in a different data group element in the same data group. scaleOffsetId is used in linear scaling in reference methods. scaleOffsetId cannot be used in the same element as scaleOffset. It also cannot be used in the same element as any two-point scaling attribute, like scaleLoRaw. Value:
|
|
srcUnits specifies the unit type input. Must be used in conjunction with destUnits. srcUnits is used in reference methods. Value:
See also opUnitConversion, Unit Conversion Examples – Unit Conversion (B), and PNT Engineering Units. |
|
|
value specifies a constant value. The value used must be relevant to the context in which value is used. Value:
|