AlarmSeverity Property

General info

Label

Alarm Severity

Tooltip

The user configured severity for a particular alarm, according the OPC Standard (1-200=LOW, 201-400=MEDIUM LOW, 401-600=MEDIUM, 601-800=MEDIUM HIGH, 801-1000=HIGH)

Data type

Int32

Default value

1

Min value

1

Max value

1000

Type

Regular

Code

1921

Symbolic name

MODEL_PROP_ALARMSEVERITY

Available since

1.10.0.1969

Parent classes

AlarmGenerator

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs
PROP_HAS_DEFAULT The property has a default value as standard
PROP_HAS_LOLIMIT The property has a low limit
PROP_HAS_HILIMIT The property has a high limit

Examples

Read from or write to the AlarmSeverity property.

  • Lua

  • C#

-- Read from the AlarmSeverity
inmation.getvalue("/System/Core/obj.AlarmSeverity")

-- Write to the AlarmSeverity
inmation.setvalue("/System/Core/obj.AlarmSeverity", 1)
string path = "/System/Core/obj.AlarmSeverity";
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the AlarmSeverity
Result result = sli.ReadValue(sc, new ReadItem(path));
// Write to the AlarmSeverity
Result result = sli.WriteValue(sc, new WriteItem(1, path));