Source - property of the PmAlarmItem object
Marking source of the alarm item.
Property access for read and write
. The preset value of this property is defined in the "Source
" configurator of this object.
If the alarm item is active, then the value can be changed anytime by writing into this property. The modified value will be written automatically to disk into the history when the alarm expires or when confirmed and also when the PROMOTIC
application is terminated.
can be used for input ($.text
..) (it is evaluated while the window is opening). Caution: Macro expression $vb cannot be used
for input. Macro expression $.text
it can be used both for configuration in the development environment, or in the running application by writing into this property. This enables alarm item texts localization. In this property and on the disk in alarm history the corresponding macro expression is saved (not the macro expression result). It is then possible in the application to switch the language while viewing the alarm history and the alarm item texts will be displayed in selected language.
var oAl = pMe.Pm("/Alarm");
var oAlItem = oAl.Item("Temperature");
var sSource = oAlItem.Source;