The VisualBar object #VBar is a special form of the #Bar object and supports special displays with different color areas and pointers.
Example
Parameters
Object
Column A
|
M/O
|
Default
|
Description
|
#VBar
|
M
|
|
VisualBar object
|
Text/File
Font
X, Y, DX, DY
Color
BackColor
Format
see #Bar object
Limit1
Column L
|
M/O
|
Default
|
Description
|
Lower limit value
|
O
|
VarType-Min
|
If a range was configured with "limit1" in the VBar definition, the value configured here is used for the range.
|
Limit2
Column M
|
M/O
|
Default
|
Description
|
Upper limit value
|
O
|
VarType-Max
|
If a range was configured with "limit2" in the VBar definition, the value configured here is used for the range.
|
ActionLimit1, ActionLimit2
VarValue
Column P
|
M/O
|
Default
|
Description
|
<variable>
|
M
|
|
The configured variable in VarValue specifies the fill value in the object. The data type of this variable must be numerical.
A Word or INT type array can also be defined. In this case, the first field ([0]) is used to indicate the fill value, the other fields are used to display the ranges (see VBar definition -> Ranges)
|
VarType
Column Q
|
M/O
|
Default
|
Description
|
BYTE
USINT
SINT
WORD
UINT
INT
DWORD
UDINT
DINT
LWORD
LINT
REAL
WORD[]
INT[]
|
M
|
|
All numerical data types apart from LREAL can be used.
|
VarState
Option
Column S
|
M/O
|
Default
|
Description
|
Fill=Down
Fill=Left
Fill=Right
Fill=Up
Fill=x
Fill=y
|
O
|
Fill=up
|
See #Bar option
|
VarStateOnOffInverted
|
O
|
|
Inverts the On / Off functionality of the VarState Variable:
VarState = 0 -> Off
VarState = 1 -> On
|
|