The FieldReference object is a simple ApplicationObject used for reading and writing data from an external field device.
For more information, click on a Help topic.
The FieldReference object is a simple ApplicationObject that can act as both the field input and the field output object. It can be configured into three basic access modes:
The process value (PV) can be historized. In addition, the FieldReference object can be configured to log an application data change event to event history when the PV changes. The FieldReference object has no built-in alarm capabilities; however, you can extend the object by creating user-defined attributes (UDAs) and scripts that provide alarming. Alternatively, you could use the the DiscreteDevice, AnalogDevice, and Switch objects, since they provide configurable alarm behavior without the need for extensions.
The PV data type for the FieldReference object can be configured to be one of a variety of supported data types, including:
Note The FieldReference object does not support arrays.
In a Galaxy application, the size of an attribute of data type string may be more than 512 characters. The Wonderware Historian, however, will only store the first 512 characters for a string. Thus, you will need to limit strings in the Galaxy application to 512 characters to prevent data loss when the values are historized to the Wonderware Historian.
The data type can only be configured at the derived template level, and not for individual instances. Therefore, the data type is always automatically locked in the derived template and cannot be configured as unlocked. For convenience, the following templates, derived from the Field Reference, are provided with a pre-configured data type. (For example, the Boolean template is configured to use the Boolean data type.)
For general information on objects, including relationships, deployment, and alarm distribution, see the Integrated Development Environment (IDE) documentation.
For information on configuration options for object information, scripts, user-defined attributes (UDAs), or attribute extensions, click Extensions Help in the Help file header.
Run-time behavior is limited to the state of an individual FieldReference object. Once deployed and operating, FieldReference objects can assume one of the following states:
PV is the only attribute that can be written to at run time. If the object has feedback, then the feedback value, time stamp, and quality is transferred into the PV attribute. If the object has an output, then the value is transferred to output.value. Only when the object does not have feedback will an external write to PV be transferred directly into the attribute.
If you configure the object as WriteOnly or ReadWrite, the original time stamp associated with the value provided by the set request is always forwarded to the output. If only the Time property of the PV is set, the current value of PV and the requested time stamp is forwarded to the output. In WriteOnly mode, the PV time stamp is updated to the current time if the set request contains a zero time stamp or the provided time stamp of the set request contains a non-zero time stamp.
If the object has a feedback, then transfer feedback value, time stamp, and quality into PV.
If you configure the object to have input or input/output and advisement of active items is enabled globally, both the reference count and suspend count for the PV attribute is incremented when the object starts up. This puts the object into a suspended state and propagates a suspend message to the input source.
When the object is in a suspended state, no input scanning occurs, because no new input values are being sent by the input source. The quality of the suspended attribute is INITIALIZING.
If you configure the object as ReadOnly or ReadWrite, the input value is used to compute the PV value, and the input time stamp is used to update the PV time stamp.
If you configure the object as WriteOnly or ReadWrite:
If you configure the object as WriteOnly:
The following section describes the object editor options for configuration and the associated attributes:
For general information on objects, including relationships, deployment, and alarm distribution, see the Integrated Development Environment (IDE) documentation.
For information on configuration options for object information, scripts, user-defined attributes (UDAs), or attribute extensions, click Extensions Help in the Help file header.
Use the General tab to configure general options for the FieldReference object.
|
Editor Option
|
Associated Attribute
|
Description
|
Run-Time Access (Supervisory, User, Read-Only, None)
|
|---|---|---|---|
|
Data type
|
Datatype
|
The data type of the reference. Valid values are: Boolean, Double, Float, Integer, Time, ElapsedTime, or String.
The data type can only be configured for templates derived from the FieldReference template, not for instances of the FieldReference template. The following templates have been derived from the FieldReference template, and you can use them as the basis for your FieldReference objects of a particular type: Boolean, Double, Float, Integer, String.
If the data type for the object is Boolean or String, the Value deadband, Trend High, and Trend Low options will not be available.
|
None
|
|
Access mode
|
AccessMode
|
The read/write capabilities for the object. Valid values are ReadOnly, ReadWrite, and WriteOnly.
|
None
|
|
Initial PV
|
PV
|
The initial PV value for WriteOnly mode.
If you specified String for the data type, the maximum string length of the process variable (PV) is 1024 characters.
For extra quality handling, see Quality Handling.
|
Supervisory, User
|
|
Engineering units
|
PV.EngUnits
|
The name of the engineering units. For example, PSI. The maximum number of characters is 32.
|
Read-Only
|
|
Generate event upon PV change
|
PV.LogDataChangeEvent
|
If enabled, data change events for the PV will be logged to event history.
|
Supervisory, User
|
|
Historize PV
|
PV.Historized
|
If enabled, the system will historize the initial PV value for WriteOnly mode.
|
None
|
|
Force storage period
|
PV.ForceStoragePeriod
|
See History Attributes.
|
Supervisory, User
|
|
Value deadband
|
PV.ValueDeadband
|
See History Attributes.
|
Supervisory, User
|
|
Trend High
|
PV.TrendHi
|
See History Attributes.
|
Supervisory, User
|
|
Trend Low
|
PV.TrendLo
|
See History Attributes.
|
Supervisory, User
|
|
Interpolation Type
|
PV.InterpolationType
|
See History Attributes.
|
Supervisory, User
|
|
Sample Count
|
PV.SampleCount
|
See History Attributes.
|
Supervisory, User
|
|
Rollover Value
|
PV.RolloverValue
|
See History Attributes.
|
Supervisory, User
|
|
Enable Swinging Door
|
PV.EnableSwingingDoor
|
See History Attributes.
|
Supervisory, User
|
|
Rate DeadBand
|
PV.RateDeadBand
|
See History Attributes.
|
Supervisory, User
|
|
PV input source
|
PV.Input.InputSource
|
The target source from which the value (plus quality) is to be read. Click the ellipse button to access the Attribute Browser.
|
Supervisory, User
|
|
Output destination differs from input source
|
DiffOutputDest
|
If enabled, the output destination is different from the input source.
|
None
|
|
PV output destination
|
PV.Output.OutputDest
|
The target location to which the output value will be written. Click the ellipse button to access the Attribute Browser.
|
Supervisory, User
|
The following table describes the run-time only attributes for the object.
Note Configurable run-time attributes are described in the configuration sections. For more information, see Configuration.
For a list of common object attributes, click Extensions Help in the Help file header.
If a historization attribute is enabled, then the following additional history-related attributes become available. None of these attributes can be alarmed.
Attributes that have extra quality values (other than GOOD) are listed in the following table:
© 2002-2008 Invensys Systems, Inc. All Rights Reserved.
10/31/08