Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 75
FactoryTalk Alarms and Events Logix-based Instructions (ALMD, ALMA) Chapter 1
Message String Variables
The code varies depending on the type of tag you select, how many digits or
characters are in a tag value, and whether you want to left fill the empty bits with
spaces or zeroes. See the following example.
Variable Embeds in the message string Default code added to message string
Alarm name The name of the alarm, which consists of the controller
name, program name, and tag name. For example,
[Zone1Controller]Program:Main.MyAlarmTagName.
/*S:0 %AlarmName*/
Condition name The condition that triggers the alarm:
· Digital alarm displays the trip.
· Analog alarm displays HiHi, Hi, Lo, LoLo, ROC_POS, or
ROC_NEG.
/*S:0 %ConditionName*/
Input value The input value to the alarm:
· Digital alarm displays 0 or 1.
· Analog alarm displays the value of the input variable
being monitored by the alarm.
/*N:5 %InputValue NOFILL DP:0*/
Limit value The threshold of the alarm:
· Digital alarm displays 0 or 1.
· Analog alarm displays the actual configured range
check for the analog alarm condition.
/*N:5 %LimitValue NOFILL DP:0*/
Severity The configured severity of the alarm condition. /*N:5 %Severity NOFILL DP:0*/
Values of associated tags The value of a tag configured to be included with the alarm
event.
/*N:5 %Tag1 NOFILL DP:0*/
Tag Code
BOOL value /*N:1 %Tag1 NOFILL DP:0*/
DINT value, 9 digits, space left fill /*N:9 %Tag2 SPACEFILL DP:0*/
REAL input value, 9 digits (includes decimal), 3 digits after
decimal, zero left fill
/*N:9 %InputValue NOFILL DP:3*/
REAL value, 8 digits (includes decimal), 4 digits after decimal,
zero left fill
/*N:8 %Tag3 ZEROFILL DP:4*/
String value, no fixed width /*S:0 %Tag4*/
String value, 26 characters, fixed width /*S:26 %Tag4*/