Skip to content

Tank level ​

About 3 min read

TwTankLevel · Category: Svg

Settings ​

These settings are in the properties panel on the right while the widget is selected, mostly in the Tank Level Settings section. The default value is the value the widget has when it is first added to a page.

Process ​

SettingTypeDefaultDescription
Process Value
processValue
Number45Main value of the widget, usually bound to a Tag or an expression in Bindings.
Show Value
showValue
CheckboxOnShows the current process value on the tank.
Decimals
decimals
Number0Number of decimal places of the displayed value.

Limits ​

SettingTypeDefaultDescription
Min Value
minValue
Number0Lower limit of the displayed value range.
High High
highHigh
Number90Position of the HH line in process value units (default 90). It is only drawn and does not change colors.
Low
low
Number25Position of the L line in process value units (default 25). It is only drawn and does not change colors.
Max Value
maxValue
Number100Upper limit of the displayed value range.
High
high
Number75Position of the H line in process value units (default 75). It is only drawn and does not change colors.
Low Low
lowLow
Number10Position of the LL line in process value units (default 10). It is only drawn and does not change colors.

Appearance ​

SettingTypeDefaultDescription
Shape
shape
SelectionrectTank outline: rectangle or cylinder.
Options: rect Rectangle, cylinder Cylinder
Show Thresholds
showThresholds
CheckboxOnDraws the HH, H, L and LL limits as dashed lines.

Animation ​

SettingTypeDefaultDescription
Wave Enabled
waveEnabled
CheckboxOnAnimates waves on the liquid surface.
Wave Amplitude
waveAmplitude
Number3Wave height in drawing units (from 0.5, default 3); it is limited automatically at low levels.
Wave Speed
waveSpeed
Number5Duration of one wave cycle in seconds, 1.5–20 (default 5); larger values are slower.

Colors ​

SettingTypeDefaultDescription
Liquid Color
liquidColor
Color#38bdf8Main color of the liquid.
Tank Color
tankColor
Color#e5e7ebFill color of the empty tank body.
Text Color
textColor
Color#0f172aColor of the value text.
Alarm High Color
alarmHighColor
Color#ef4444Color of the HH and H lines.
Liquid Highlight Color
liquidHighlightColor
Color#7dd3fcLighter color of the liquid surface and waves.
Tank Stroke Color
tankStrokeColor
Color#475569Color of the tank outline.
Alarm Low Color
alarmLowColor
Color#f59e0bColor of the L and LL lines.

Other settings ​

SettingTypeDefaultDescription
Enable Flashing
enableFlashing
CheckboxOffMakes the widget blink (an opacity pulse every second). Usually bound to an alarm condition.
Log Button
logButton
CheckboxOffAt runtime shows a chart icon when hovering the widget; clicking it adds the Tags bound to the widget to the log Tag list.

Bindings ​

In the Bindings (Rules) section of the properties panel, a Tag can be bound to the following properties of this widget with a Direct binding. The binding types (Direct, IntRange, FloatRange, Boolean, Bit) are the same for all widgets; they are described on the Widget Reference page.

title, visible, authorization, x, y, width, height, rotation, class, foregroundColor, backgroundColor, borderColor, borderStyle, borderWidth, borderRadius, borderTopLeftRadius, borderTopRightRadius, enableFlashing, logButton, to.type, processValue, minValue, maxValue, shape, showThresholds, showValue, waveEnabled, waveAmplitude, waveSpeed, decimals, highHigh, high, low, lowLow, liquidColor, liquidHighlightColor, tankColor, tankStrokeColor, textColor, alarmHighColor, alarmLowColor

Common sections ​

While this widget is selected, the properties panel also shows these common sections: General, Layout, Appearance, Navigation (To), Bindings (Rules). These sections are described on the Page Editor page.

2WinScada 2.10