The #Bar object is used to display VarValue numerical values in the range between Limit1 and Limit2 in the form of a bargraph.
Example
100

0
0 100 100 0 0 100

Parameters
Object
Column A
|
M/O
|
Default
|
Description
|
#Bar
|
M
|
|
Display the numerical value as a bargraph
|
X, Y, DX, DY
Color
BackColor
Format
Action
Limit1
Column L
|
M/O
|
Default
|
Description
|
<constant>
<variable>
|
O
|
VarType-Min
|
Initial value of the bargraph. See also Parameter Option!
...Numerical constant
...Variable of type VarType
|
Limit2
Column M
|
M/O
|
Default
|
Description
|
<constant>
<variable>
|
O
|
VarType-Max
|
End value of the bargraph. See also Parameter Option.
Numerical constant
Variable of type VarType
|
ActionLimit1, ActionLimit2
VarValue
Column P
|
M/O
|
Default
|
Description
|
<variable>
|
O
|
|
The value of this variable determines how much the bargraph is filled
|
VarType
VarState
Column R
|
M/O
|
Default
|
Description
|
<variable>
|
O
|
|
|
Option
Column S
|
M/O
|
Default
|
Description
|
Fill=Up
|
O
|
Fill=Up
|
Fill from bottom to top, for which Limit1 is bottom and Limit2 top.
Example
100
0
|
Fill=Down
|
O
|
|
Fill from top to bottom, for which Limit1 is top and Limit2 bottom.
Example
0

100
|
Fill=Right
|
O
|
|
Fill from left to right, for which Limit1 is left and Limit2 right.
Example

0 100
|
Fill=Left
|
O
|
|
Fill from right to left, for which Limit1 is right and Limit2 left.

100 0
|
Fill=x
|
O
|
|
The object is filled from the center to the left or right. Limit1 is the far left, Limit 2 is the far right, the center is (Limit1 + Limit2)/2
Example
-100 0 100

|
Fill=y
|
O
|
|
The object is filled from the center to the top or bottom. Limit1 is at the bottom, Limit 2 is at the top, the center is (Limit1 + Limit2)/2
Example
100
-100
|
PWL=<level>
|
O
|
0
|
Required password level for enabling (see #Password).
|
VarStateOnOffInverted
|
O
|
|
Inverts the On / Off functionality of the VarState Variable:
VarState = 0 -> Off
VarState = 1 -> On
|
Init, Exit
Columns U, V
|
M/O
|
Default
|
Description
|
<action>
|
O
|
|
The same actions are available as described for the Action parameter
|
The Limit action (e.g. color change) is executed when limit values are overshot or undershot. A Limit action, such as at 80% of the value is not possible. For this two bar objects such as $Group object can be defined (see also “overlaid objects” demo project). Alternatively the #VBar object can also be used.
|