วันศุกร์ที่ 26 ตุลาคม พ.ศ. 2555

ConditionEvent Table ของ Factorytalk Alarm Database

ConditionEvent Table

   คือ Table ใน databse AlarmEvent ที่ใช้ในการเก็บ Message Alarm ต่างๆจาก PLC ซึ่งรายละเอียดของแต่ละ field แสดงดังตารางด้านล่าง


Name Data type Description Example
EventID FTUID Unique identifier associated with the record. B281E097-5B7E-4167-A24B-C33BBE412C35
SourceName NVARCHAR The name of the object (up to 200 characters) that generated the event. For condition events, the Source value is generally the alarm name. MixingTank1 System
SourcePath NVARCHAR The FactoryTalk Directory path (ADS path - up to 512 characters) to the Alarm and Event server where the alarm occurred. RNA://$Global/ ApplicationName/Area1/Line1
SourceID1 FTUID Link to object such as equipment or location entry. B281E097-5B7E-4167-A24B-C33BBE412C35
ServerName Nvarchar The name of the alarm server (up to 50 characters). RSLinx Enterprise
TicksTimestamp Bigint Time the event occurred, represented in FileTime format (a 64-bit value consisting of the number of 100-nanosecond intervals since January 1, 1601 UTC). 6.32624E+17
EventTimestamp Datetime Time the event occurred in Greenwich Mean Time (GMT). 10/10/2004 12:00:01 PM
EventCategory NVARCHAR The category to which the event belongs (up to 50 characters). Categories are server defined and can vary depending on the event type. Condition: Level, Deviation, Rate of Change, Discrete
Severity Integer The urgency of the event. This may be a value in the range of 1 - 1000. 700
Priority Integer Enum The priority of the event (Enumeration: 1=Low, 2=Medium, 3=High, 4=Urgent). 4
Message NVARCHAR Message text that describes the event (up to 512 characters). MixingTank1 full
ConditionName NVARCHAR The name of the associated alarm condition (up to 50 characters). LOLO, LO, HI, HIHI, DEV_LO, DEV_HI, TRIP, TRIP_L, ROC_NEG & ROC_POS
SubConditionName2 NVARCHAR The name of the sub-condition associated with the alarm condition (up to 50 characters). LOLO, LO, HI, HIHI, DEV_LO, DEV_HI, TRIP, TRIP_L, ROC_NEG & ROC_POS
AlarmClass NVARCHAR The class name associated with the alarm (up to 40 characters). FTO=Failed To Open, FTC=Failed To Close
Active Bit A value indicating whether or not the alarm is active. True=1, False=0
Acked Bit A value indicating whether or not the alarm has been acknowledged. True=1, False=0
EffDisabled Bit A value indicating whether or not the alarm is effectively disabled. This is the combined effect of the alarm source disable state and the disable states of the areas containing the alarm. True=1, False=0
Tip: You cannot disable areas in FactoryTalk Alarms and Events v2.20.00 (CPR 9).
Disabled Bit A value indicating whether or not the alarm source is disabled. True=1, False=0
EffSuppressed Bit A value indicating whether or not the alarm is effectively suppressed. This is the combined effect of the alarm source suppress state and the suppress states of the areas containing the alarm. True=1, False=0
Tip: You cannot suppress areas in FactoryTalk Alarms and Events v2.20.00 (CPR 9).
Suppressed Bit A value indicating whether or not the alarm source is suppressed. True=1, False=0
PersonID1 VARCHAR An identifier (up to 50 characters) of the component or user that initiated the action resulting in the condition changing state (e.g., acknowledge, disable, suppress). Dave Butler
ChangeMask Integer A value that indicates the properties that have changed in this event (e.g., an alarm could change from normal acknowledged to active unacknowledged). 11
For more information on the specific bit values, see Change Mask Values.
InputValue Real The value of the alarm source. 83
LimitValue Real The limit value that was compared with the alarm source value that triggered the alarm. 80
Quality Integer Indicates the quality of a tag or device upon which the condition is based. Good, Uncertain, Bad
For additional supported values that are not addressed by the OPC DA specification, see Extended Quality Values.
For more information on the meaning of the standard OPC quality values, see the OPC DA specification on the OPC Foundation website.
EventAssociationId FTUID The EventId associated with the current event. Use this field to query for all of the events related to a given instance of an alarm and compute associated information (for example, the length of time that an item was active or active and unacknowledged). B281E097-5B7E-4167-A24B-C33BBE412C35
As a given alarm instance changes state, this ID value will remain constant. For example, when an alarm becomes active, it will be assigned an ID value; when the alarm is acknowledged or returns to normal, that same ID value continues to be logged. Additionally, the same ID will be used for multiple conditions of a level alarm (for example, the HI and HIHI alarms will  use the same ID value since the level alarm does not return to normal when going from the HI to HIHI states).
UserComment 1 NVARCHAR Comment text (up to 512 characters). Inspection OK
UserComputerID1 NVARCHAR Computer name (up to 64 characters). MIXERSTATION
Tag1Value NVARCHAR Value of associated tag 1 (up to 128 characters) 10
Tag2Value NVARCHAR Value of associated tag 2 (up to 128 characters) 10
Tag3Value NVARCHAR Value of associated tag 3 (up to 128 characters) 10
Tag4Value NVARCHAR Value of associated tag 4 (up to 128 characters) 10

Extended Quality Values


The following table describes quality values (in addition to those provided by the OPC DA specification) that are supported by FactoryTalk Alarms and Events.

Quality Value (Decimal)
Display String
Description
192
Good Quality - Non-specific
The quality of the value is good. There are no special conditions.
216
Good Quality - Local Override
The value has been overridden. Typically, this indicates that the input has been disconnected and a manually entered value has been ’r;forced ‘ .
00
Bad Quality - Non-specific
The value is bad, but no specific reason is known.
65536
Bad Quality - Alarm input quality is bad
The alarm instruction input fault has been set to true.
4
Bad Quality - Configuration Error
There is some server-specific problem with the configuration. For example, the item in question has been deleted from the configuration.
1048580
Bad Quality - Severity value is out of valid range (1-1000)
The severity of the alarm condition has been set to an invalid value.
1114116
Bad Quality - Overlapping threshold limits
A limit value of a level alarm has been set to a value that overlaps another limit.
1179652
Bad Quality - Deadband must be greater than or equal to zero
The deadband of a level alarm has been set to a negative value.
1245188
Bad Quality - Rate of change positive limit must be greater than or equal to zero
The positive limit of a rate of change alarm has been set to a negative value.
1310724
Bad Quality - Rate of change negative limit must be greater than or equal to zero
The negative limit of a rate of change alarm has been set to a negative value.
1376260
Bad Quality - Rate of change period must be greater than or equal to zero
The rate of change period has been set to a negative value.
1441796
Bad Quality - The alarm has been deleted
The alarm has been deleted from a controller via an online edit.
8
Bad Quality - Not Connected
The input is required to be logically connected, but it is not. This quality may reflect that no value is available at this time (for example, the value may have not been provided by the data source).
12
Bad Quality - Device Failure
A device failure has been detected.
16
Bad Quality - Sensor Failure
A sensor failure had been detected. Note that the 'Limits' field can provide additional diagnostic information in some situations.
20
Bad Quality - Last Known Value
Communications have failed. However, the last known value is available. Note that the ’r;age ‘ of the value may be determined from the TIMESTAMP in the OPCITEMSTATE.
2162708
Bad Quality - Connection to controller has been lost
The connection to the controller has been lost.
2228244
Bad Quality - A program download is in progress
A program download is in progress.
2293780
Bad Quality - Non-Recoverable Program Fault has occurred in controller
A Major Non-Recoverable program fault has occurred.
24
Bad Quality - Communication Failure
Communications have failed. There is no last known value available.
28
Bad Quality - Out of Service
The block is off scan or otherwise locked. This quality is also used when the active state of the item or the group containing the item is InActive.
2097180
Bad Quality - Unable to subscribe to alarms from controller
If after connecting to a controller, RSLinx Enterprise cannot subscribe to alarms contained in the controller (for example, create the notify object) or can create the notify object, but only succeeds in subscribing to a subset of the total alarms.
32
Bad Quality - Waiting for initial data
After items are added to a group, it may take some time for the server to actually obtain values for these items. In such cases, the client might perform a read (from cache) or establish a connection point-based subscription and/or execute a refresh on such a subscription before the values are available. This sub-status is only available from OPC DA 3.0 or newer servers.
64
Uncertain Quality - Non-specific
The value is uncertain, but no specific reason is known.
68
Uncertain Quality - Last Usable Value
The entity that was writing this value has stopped doing so. The returned value should be regarded as ’r;stale ‘ . Note that this differs from a BAD value with sub status 5 (Last Known Value). That status is associated specifically with a detectable communications error on a ’r;fetched ‘ value. This error is associated with the failure of some external source to ’r;put ‘ something into the value within an acceptable period of time. Note that the ’r;age ‘ of the value can be determined from the TIMESTAMP in OPCITEMSTATE.
2424900
Uncertain Quality - Mode of controller has been changed to Program.
The controller is in Program mode.
2359364
Uncertain Quality - Major Program Fault has occurred in controller
A Major Recoverable program fault has occurred.
80
Uncertain Quality - Sensor Not Accurate
Either the value has ’r;pegged ‘ at one of the sensor limits (in which case the limit field should be set to 1 or 2) or the sensor is otherwise known to be out of calibration via some form of internal diagnostics (in which case the limit field should be 0).
84
Uncertain Quality - Engineering Units Exceeded
The returned value is outside the limits defined for this parameter. Note that in this case (per the Fieldbus Specification), the 'Limits' field indicates which limit has been exceeded but does not necessarily imply that the value cannot move farther out of range.
88
Uncertain Quality - Sub-Normal
The value is derived from multiple sources and has less than the required number of good sources.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น