Alarms & Audit-Trail (Tutorial) teaches you to:
- Create alarm groups and items
- Configure alarm conditions
- Set up notifications
- Enable audit trail for FDA 21 CFR Part 11 compliance
Prerequisites:
- Complete Solution (Tutorial) Add Tags to UNS (Tutorial) - uses TankFarm tags
In this page:
Table of Contents maxLevel 2 minLevel 2 indent 10px exclude Steps style none
Step 1: Configure Alarm Groups
- Navigate to Alarms → Groups
- Verify pre-defined groups exist:
Group | AckRequired | LogEvents | Priority |
---|---|---|---|
Critical | True | True | High |
Warning | False | True | Medium |
AuditTrail | False | True | Hidden |
Modify Critical group:
- Open the ComboBox Sound field
- Select Exclamation
- Press Enter
Step 2: Create Alarm Items
- Go to Alarms → Items
- Add high temperature alarm:
Property | Value |
---|---|
TagName | Tag.TankFarm/Tank1/Temp |
Condition | HiHi |
Limit | 85 |
Group | Critical |
Message | Tank 1 Critical Temperature: {Tag.TankFarm/Tank1/Temp}°C |
Priority | 100 |
- Add low level alarm:
Property | Value |
---|---|
TagName | Tag.ankFarm/Tank1/Level |
Condition | Lo |
Limit | 20 |
Group | Warning |
Message | Tank 1 Low Level Warning |
Priority | 50 |
Step 3: Configure Alarm Areas
- Navigate to Alarms → Areas
- Create hierarchy:
- Plant
- Production
- Tank1
- Tank2
- Utilities
- Production
- Assign alarms to areas:
- Return to Alarms → Items
- Set Area =
Plant.Production.Tank1
for both alarms
Step 4: Enable Audit Trail
- Go to Alarms → Global Settings
- In Audit Trail section:
- Check Enable Audit Trail
- Enable options:
- User Logon/Logoff
- Tag Changes
- Operator Actions
- Custom Messages
- Configure database retention:
- Life Time: 2555 days (7 years for FDA compliance)
Step 5: Create Alarm Display
- Navigate to Displays → New
- Name:
AlarmMonitor
- Add AlarmViewer control from toolbox
- Configure properties:
- List: OnlineAlarms
- ShowAcknowledged: False
- Columns: Time, TagName, Message, Value, Group
- Add AlarmArea control for navigation
- Save display
Step 6: Test Alarms
- Start Runtime (Runtime → Startup)
- Open Runtime → Online Alarms
- Simulate alarm conditions:
csharp
// In Script Task or Watch Window
@Tag.Tank1_Temp = 90; // Triggers high temp
@Tag.Tank1_Level = 15; // Triggers low level
- Verify in AlarmViewer:
- Critical alarm shows red
- Warning shows yellow
- Sound plays for Critical
- Acknowledge required for Critical
- Test acknowledgment:
- Right-click Critical alarm
- Select Acknowledge
- Verify state change
Step 7: Verify Audit Trail
- Change AlarmViewer List to
AuditTrail
- Verify logged events:
- User login
- Alarm triggers
- Acknowledgments
- Tag changes
- Add custom message via script:
csharp
@Alarm.GlobalSettings.AuditTrail.AddCustomMessage(
"Tutorial test completed by " + @Client.UserName
);
Next Steps
- [Configure Email Notifications] - Set up SMTP
- [Create Alarm Reports] - Historical analysis
- [FDA Compliance Setup] - Full 21 CFR Part 11
Step-by-step guide to configure alarm groups, conditions, notifications, and audit trail for operational monitoring and FDA compliance.
In this section...
Page Tree | ||||
---|---|---|---|---|
|