You can display an Alarm for variable values in a bar graph.
To create a bar graph, use a [Rectangle] object and below [Animation], the [Fill Level] property. Also, use the scale converter to align variable values with values displayed in the graph, and the range converter to change the display color when there is an alarm.
Add the below variable(s).
[Name] | [Data Type] |
Var1 |
[USINT] |
Add the below converter(s).
[Name] | [Type] |
Converter1 |
[Range] |
Converter2 |
[Scale] |
Tab | Property | Value | |
[Basic] |
[Data Type (Source)] | [Numeric] | |
[Data Type (Result)] | [ColorID] | ||
[Range] | 2 | ||
[Range1] | [Data (Input)] | 200 | |
[Operator] | > | ||
[Value] | ![]() |
||
[Else Condition] | [Value] | ![]() |
Tab | Property | Value |
[Basic] |
[Maximum (Source)] | 255 |
[Maximum (Output)] | 100 | |
[Minimum (Source)] | 0 | |
[Minimum (Output)] |
0 |
Drag and drop the following objects from the [Tool Chest] to the screen.
Tab | Sub Tab | Property | Value | |
[Shape] |
[Text] |
[Scale Label] | ![]() |
|
[Label Attribute] | [Minimum] | 0 | ||
[Maximum] | 255 |
Tab | Sub Tab | Property | Value | ||
[Shape] | [Basic] |
[Fill] |
[Value] | ![]() [Name]: Var1 [Converter] ![]() |
|
[Border] |
[Type] | [None] | |||
[Size/Location] |
[Animation] |
[Fill Level] | [Enable] | ![]() |
|
[Vertical Fill] | ![]() [Name]: Var1 [Converter] ![]() |
Tab | Sub Tab | Property | Value |
[Function] |
[Basic] |
[Current Value] | ![]() [Name]: Var1 |