johnfarrugi
Member
I know it is possible to embed strings into a panelview easy enough. I am getting all kinds of errors when I try to embed a string into an alarm message. Is this possible to do?
Last edited:
If you try to validate your app you get a truck load of errors.I have attached a PB32 project I'm working on. Look at the alarms. Let me know what my problem is. I don't really understand the instructions.
It is the same thing using an N fileis it possible to edit the file and repost it. I am still uncertain of what you guys are saying.
I am looking to store the alarm messages in the PLC ST255:0 to ST255:20. The alarm trigger is looking at LSB. Each bit represents an ST255 variable. When bit 0 is high ST255:0.1 is displayed. When bit 10 is high ST255:10 is displayed on the alarm banner.
I found this under Panelbuilder help.You did not specify which Panelview. For anything using Panelbuilder 32 here is what the help says about it:
Add variables to alarm text
In the Text field, you can enter alarm text including a time, date or numeric variable.
To insert a time, date, numeric variable in a text string:
1 Double-click the Text field in which you want to insert a variable.
2 Position the cursor where you want to insert the variable.
3 Right-click and select a variable from the Embedded Variable menu.
For the Time and Date variable, a placeholder is inserted in the text (/*T*/ for time, /*D*/ for date). The format of the time and date is set in the Terminal Setup dialog.
A dialog opens when Variable or Character is selected. The dialog defines the format of the variable in the text string. When you exit the dialog, a placeholder is inserted within the text with embedded formatting details.
To edit a numeric or ASCII variable:
1 Double-click the Text field of the alarm containing the variable.
2 Click on the numeric /*V:12 NOFILL FIX:0*/ or ASCII /*A:12 */ variable placeholder.
The embedded data within the placeholder will vary depending on the options you selected in the Variable dialog.
3 Right-click and select Embedded Variable>Edit Variable from the popup menu.
4 Edit the settings in the Variable dialog.
5 When done, click OK to exit dialog.
The placeholder is updated with the new formatting details.
The tag updating the numeric or character variable should be scanned with the alarm trigger.
To delete a variable:
Click on the placeholder and press Backspace or Delete.
Notes
§ Embedded variables must be within the same scan group as the alarm trigger. This is protocol dependent. They must also have the same update frequency.
§ For the ControlLogix processor, alarm messages with embedded variables may not be synchronized with the alarm trigger because the trigger and variables may be stored in different areas of memory. If multiple alarms are triggered, the embedded variable in a message may be overwritten by the embedded variables in the next message. Use the Acknowledge and Handshake tags to verify that the correct variable is displayed with an alarm message.
Allen-Bradley Company, LLC, Copyright © 1993-2002, All Rights Reserved