How to change default text for Alarm within a PlantPAx AOI
All,
Had a customer who wanted to add a new alarm to P_DIn and was wondering the same thing: How do I change the default text for that new alarm from "Alarm Condition" to something useful, without modifying ALL the alarms!
Here's the procedure:
1. Go to the P_Din Add-On Instruction in the controller organizer;
click the “+” sign to expand.
2. Double-click the Logic routine to open it.
3. Scroll to the P_Alarm instruction instance in the Logic routine.
(For the unmodified P_Din "TgtDisagree" alarm,
this is Rung 22 in the Logic routine.
a. NOTE: There is also an instance of P_Alarm, with the same backing
tag, in the EnableInFalse routine, rung 21!!!
4. Right-click on any element of the P_Alarm instruction (name, backing
tag) and select “Open Instruction Logic”
a. P_Alarm Logic routine opens. NOTE THE DATA CONTEXT in the upper
right corner of the window. You will be in the context of the P_Alarm
INSTANCE within the P_DIn DEFINITION!!!
5. Go to the first “LOWER” instruction on Rung 0. The bottom operand
is the string Cfg_Cond. Its value is the DEFAULT value USED TO
CREATE NEW INSTANCES OF P_Din.
6. Change the text of this string.
7. Any NEW instances of P_Din will be created with this new text as the
default for that instance of P_Alarm.
DO NOT do this by changing the default text of the P_Alarm DEFINTION.
You need to be in the context of the P_Alarm INSTANCE within the P_Din
DEFINITION!!!
If you go to the P_Alarm "Parameters and Local Tags", you will notice that
the data context selector has items for the DEFINITION and for all the
INSTANCE of P_Alarm in INSTANCES instructions (like P_AIn and P_DIn)
that have alarms. But this list does NOT have the P_Alarm INSTANCES in
the DEFINITIONS of AOIs that use it!!! Hence the procedure above.
Hope this helps!