The Data Item format Status Text displays a data item as text looked up in a reference file. This is similar to the Status Image format where an image is displayed depending on the item value.
This display mode is suited for status data or table lookup for non linear data items. The lookup file has the extension .tr for text reference. The following example shows an item displayed in Status Text format.
The Data Item format dialog box for the Status Text display looks as follows:
The text reference file has the following syntax:
Reference Name
{
Item Definition;
Item Definition;
.
.
.
Item Definition
}
Item Definition:
Value [- Range], "Text", ForegroundColor on BackgroundColor
Examples:
ErrOk { 0 , "Error", LightRed on White;
1-65355 , "Ok", Green on White }
Illegal { 0 , "Legal", Black on Yellow;
1 , "Illegal", LightRed on Yellow }
EPU_Status { 0 ,"Booting", Blue on White;
1 ,"Calc ...", Cyan on White;
2 ,"Running", Black on White }
For more details about text reference files refer to the chapter about Text Reference Files (*.tr).
The reference name describes the name of the text reference and is selected in the dialog displayed above. The item definitions define which values get mapped to what text and in what color representation. You can either specify an idividual value or a range that gets mapped to the display text. The data item displayed on the screen will take up as much space as the longest text in the reference definition.
Note
Make sure to load the text reference files you want to use in your screens. You should add the text reference file you use for your screens to the gseos.ini [Config] section with a Load entry.