Overview
The Alarms Global Settings encompasses broad (Reference) define system-wide configurations for alarm management, including database settings for logging alarm events, determining behaviors upon system startup, and specific alarm handling parameters. Additionally, these properties offer robust audit trail capabilities, ensuring comprehensive tracking of various system events, user activities, and operational adjustments.On , and audit trail functionality. It configure:
- Alarm historian database
- System startup behavior
- Alarm handling parameters
- Audit trail logging
- FDA 21 CFR Part 11 compliance
Access via Alarms → Global Settings
In this page:
Table of Contents
maxLevel
2
minLevel
2
indent
10px exclude Steps style none
Configuration Sections
Alarm Logging Database
Setting | Description | Default |
---|---|---|
Database | Database type (SQLite, SQL Server, etc.) | SQLite |
Connection | Connection string | Local file |
Life Time | Days to retain alarm data (0 = forever) | 0 |
<ac:structured-macro ac:name="warning"> ac:rich-text-body Note: Life Time function not compatible with PostgreSQL TimeScaleDB extension </ac:rich-text-body> </ac:structured-macro>
Alarm Handling
Setting | Description | Default |
---|---|---|
Initial Disable Time on Startup | Seconds to suppress alarms after startup | 00:00:00 |
Ignore Alarms During TimeDeadband | Ignore alarms during deadband period | False |
Enable LimitsByShift | Enable shift-based alarm limits | False |
LogUserFullName | Log full user name vs username | False |
Audit Trail
Setting | Description | Default |
---|---|---|
Enable Audit Trail | Activate audit logging | False |
User Logon/Logoff | Log user sessions | False |
Open/Close Displays | Log display navigation | False |
Remote Connections | Log client connections | False |
Custom Messages | Log custom audit messages | False |
Tag Changes | Log all tag value changes | False |
Datasets | Log database operations | False |
Operator Actions | Log operator commands | False |
Save Reports | Log report generation | False |
System Warnings | Log system events | False |
Database Configuration
Supported Databases
- SQLite (default, embedded)
- SQL Server
- PostgreSQL
- MySQL
- Oracle
Connection String Examples
SQLite (default):
Provider=System.Data.SQLite;Data Source=_ExecutionPathAndName_.dbAlarm
SQL Server:
Server=localhost;Database=AlarmHistory;Trusted_Connection=true;
PostgreSQL:
Host=localhost;Database=alarms;Username=user;Password=pass;
Startup Behavior
Initial Disable Time
Prevents nuisance alarms during startup:
- System initializes without triggering alarms
- Tags stabilize to normal values
- After timeout, normal alarm processing begins
Example: Set to 00:01:00 (1 minute) for complex systems
TimeDeadband Handling
When enabled:
- Alarms ignored during group deadband period
- Prevents alarm flooding
- Useful for known transient conditions
Shift-Based Limits
When Enable LimitsByShift is active:
- AlarmItems use Limit, Limit1, Limit2
- Different thresholds for different shifts
- Automatic switching based on schedule
See [Alarm Limits by Shift] for configuration
Audit Trail Configuration
Enabling Audit Trail
- Check Enable Audit Trail
- Select events to log
- Configure database (uses alarm database)
- View in AlarmViewer with List = "AuditTrail"
Custom Messages
Add via script:
csharp
@Alarm.GlobalSettings.AuditTrail.AddCustomMessage(
message: "Batch completed",
areaName: "Production",
objectName: "Reactor1",
value: "500",
itemName: "BatchID",
auxValue: "Grade A",
comment: "Normal completion"
);
Runtime Control
csharp
// Enable/disable options at runtime
@Alarm.GlobalSettings.AuditTrail.UserLogonLogoff = true;
@Alarm.GlobalSettings.AuditTrail.TagChanges = false;
FDA 21 CFR Part 11 Compliance
For regulatory compliance:
- Enable Audit Trail - Required
- User Logon/Logoff - Track user access
- Operator Actions - Record all changes
- System Warnings - Log system events
- Tag Changes - Track process modifications
Configure retention:
Life Time = 2555 days (7 years)
Runtime Access
Access settings programmatically:
csharp
// Check audit trail status
bool auditEnabled = @Alarm.GlobalSettings.AuditTrail.IsEnabled;
// Add custom message
@Alarm.GlobalSettings.AuditTrail.AddCustomMessage("Process started");
// Check database connection
string dbConnection = @Alarm.GlobalSettings.Database.Connection;
// Modify settings
@Alarm.GlobalSettings.LogUserFullName = true;
Best Practices Checklist
- Size database appropriately - Audit trail generates significant data
- Set reasonable retention - Balance compliance vs storage
- Test startup delays - Find optimal disable time
- Selective audit logging - Only log necessary events
- Regular database maintenance - Archive old data
- Document settings - For compliance audits
- Monitor database growth - Prevent storage issues
Troubleshooting
Database connection failed:
- Verify connection string
- Check database service running
- Confirm network access
- Review user permissions
Audit trail not logging:
- Confirm Enable Audit Trail checked
- Verify specific options enabled
- Check database write permissions
- Review disk space
Alarms triggering at startup:
- Increase Initial Disable Time
- Enable Ignore During TimeDeadband
- Review startup sequence
Database growing too large:
- Set Life Time appropriately
- Archive old data regularly
- Consider separate audit database
- Optimize logged events
In this section...
Page Tree | ||||
---|---|---|---|---|
|
Configurating Global Settings
The Global Settings interface is composed of three parts, they are:
- Alarm Logging Database
- Alarm Handling
- Audit Trail
See more details on each of them in the sections below.
Alarm Logging Database
The Alarm Logging Database setting manages where and how alarms are logged. Users can choose the database type, define connection parameters, and configure the life span of stored alarm logs. See below a table with all available settings for alarm loggings:
Setting | Description |
---|---|
Database | The type of database used. The default option is SQL Lite. You can adjust this setting by clicking the gear icon. |
Connection | The connection string for database connection. |
Life Time | Defines the amount of time the data remains in the database (in days).* |
Alarm Handling
The Alarm Handling setting manages the alarms considering the operational status of the devices. See below a table with all available settings this section:
Setting | Description |
Initial Disable Time on Startup | This setting determines the period during startup when alarms are disabled. It ensures that alarms are not triggered immediately upon startup, allowing the system to stabilize first. |
Ignore Alarms During TimeDeadband | This option enables the system to ignore alarms during a specified TimeDeadband. |
Enable LimitsByShift | Allows the user to set different alarm limits based on different work shifts. See our Alarm Limits by Shift. |
LogUserFullName | Option to log the complete name of the user. |
Audit Trail
The Audit Trail setting allows users to enable or disable system auditing. When active, users can select which actions, such as user logins, system warnings, or tag changes, are recorded, ensuring transparency and traceability.→ Learn more on the Audit Trail page.
In this section:
Page Tree | ||||
---|---|---|---|---|
|