Knob

Functional reference for KnobObject, including its runtime role and the supported settings available in the design environment.

Updated 6 min read
On this page (10 sections)
  1. Functional explanation
  2. Object name
  3. Variable
  4. Settings
  5. Color
  6. Position / Size
  7. Actions
  8. Animate Position / Size
  9. Access Control
  10. Visibility

Functional explanation

KnobObject is a rotary control for numeric values. It is suitable for operator-set analog values where a circular control is preferred.

It displays a value along a configurable sweep range and can both show and write values depending on the page logic and the connected variable. The object is useful when the operator expects a dial-style control instead of a text field.

Use it only when the rotary interaction is clear to the operator. For precise numeric entry, an input field is usually easier to use.

Object name

Set the object name shown in the knob decorator context.

SettingDescriptionExampleUnits
Object NameName used to identify the Knob object.SpeedKnobText

Variable

Configure the variable bound to the knob value. Releasing the knob writes the new value to this variable, so the field holds one writable variable name. The Variable button opens the variable list and fills in the selected name.

SettingDescriptionExampleUnits
VariableVariable shown by the knob and written when the knob is released. The value text is shown with the Format of the variable when the variable has one.PLC1.SpeedSetpointVariable name

Settings

Configure the numeric range, sweep angles, track shapes, and value display for the Knob object.

18 rows
SettingDescriptionExampleUnits
Min ValueMinimum value of the knob range.0Value
Max ValueMaximum value of the knob range.100Value
Value Res.Value resolution used by the knob.1Value
Font FamilyFont family used for the knob value text.ArialFont family name
Font SizeFont size used for the knob value text.14px
Font WeightFont weight used for the knob value text.700CSS font weight
Zero AtPolar angle in degrees where the knob scale starts.260Degrees
Angle MinMinimum sweep angle.-135Degrees
Angle MaxMaximum sweep angle.135Degrees
BG RadiusBackground arc radius.70px
BG WidthBackground arc width.8px
Track RadiusValue arc radius.70px
Track WidthValue arc width.8px
Write TimeoutWrite delay after user interaction.250ms
Background ColorBackground color used behind the knob. A gradient can be used here as well as a single color; see the Gradients section of the Color Library article.#FFFFFFColor
No State ColorColor used for the knob track when no active state applies.#34eb3aColor
Read OnlyMakes the knob display-only when true.falseBoolean
UnitsAppends the configured variable unit when true.trueBoolean

Color

Configure the conditional color states for the Knob object.

SettingDescriptionExampleUnits
Color StatesConditional color state rules that restyle the knob track from a variable or expression. Each rule pairs a condition with a color, and the first matching rule wins. The No State Color is used while no rule matches. A gradient can be used here as well as a single color; see the Gradients section of the Color Library article.[{"state":"alarm","color":"#dc3545"}]JSON array

Position / Size

Configure the position and size of the Knob object.

SettingDescriptionExampleUnits
TopTop position of the object.100px
LeftLeft position of the object.220px
WidthWidth of the object.180px
HeightHeight of the object.180px
Z-indexLayer order of the object. Higher values appear in front of lower values.10Number

Actions

Configure the action list executed when the knob is clicked. See the Actions article for every available action type and its settings.

SettingDescriptionExampleUnits
ActionsAction list executed when the knob is clicked.Set Value, Execute ScriptAction configuration

Animate Position / Size

Configure the runtime animation settings for height, width, top, and left of the Knob object.

22 rows
SettingDescriptionExampleUnits
Animate Height VariableVariable or expression that drives runtime height animation.PLC1.LevelVariable or expression
Animate Height Minimum RawStart of the raw value span. The animation scales the variable value across the difference between Maximum Raw and Minimum Raw, so keep this at 0 for a direct mapping from 0 to the Maximum Raw value.0Raw value
Animate Height Maximum RawEnd of the raw value span. The animated height reaches full scale when the variable value reaches the difference between Maximum Raw and Minimum Raw.100Raw value
Animate Height Minimum pxStart of the pixel span. The animated height runs from 0 px up to the difference between Maximum px and Minimum px.20px
Animate Height Maximum pxEnd of the pixel span. With Minimum px at 0, this is the height at full scale.60px
Animate Height ReverseSets the edge the height grows from. Cleared grows the object upwards from the bottom edge, which suits level and fill graphics. Selected grows it downwards from the top edge.falseBoolean
Animate Width VariableVariable or expression that drives runtime width animation.PLC1.ValueVariable or expression
Animate Width Minimum RawStart of the raw value span. The animation scales the variable value across the difference between Maximum Raw and Minimum Raw, so keep this at 0 for a direct mapping from 0 to the Maximum Raw value.0Raw value
Animate Width Maximum RawEnd of the raw value span. The animated width reaches full scale when the variable value reaches the difference between Maximum Raw and Minimum Raw.100Raw value
Animate Width Minimum pxStart of the pixel span. The animated width runs from 0 px up to the difference between Maximum px and Minimum px.80px
Animate Width Maximum pxEnd of the pixel span. With Minimum px at 0, this is the width at full scale.220px
Animate Width ReverseSets the edge the width grows from. Cleared grows the object to the right from the left edge. Selected grows it to the left from the right edge.falseBoolean
Animate Top VariableVariable or expression that drives runtime top-position animation.PLC1.PositionTopVariable or expression
Animate Top Minimum RawStart of the raw value span. The animation scales the variable value across the difference between Maximum Raw and Minimum Raw, so keep this at 0 for a direct mapping from 0 to the Maximum Raw value.0Raw value
Animate Top Maximum RawEnd of the raw value span. The offset reaches full scale when the variable value reaches the difference between Maximum Raw and Minimum Raw.100Raw value
Animate Top Minimum pxStart of the pixel span. A rising value moves the object upwards from its resting position by up to the difference between Maximum px and Minimum px. To move the object downwards, set Minimum px above Maximum px.100px
Animate Top Maximum pxEnd of the pixel span. A rising value moves the object upwards by up to the difference between Maximum px and Minimum px.260px
Animate Left VariableVariable or expression that drives runtime left-position animation.PLC1.PositionLeftVariable or expression
Animate Left Minimum RawStart of the raw value span. The animation scales the variable value across the difference between Maximum Raw and Minimum Raw, so keep this at 0 for a direct mapping from 0 to the Maximum Raw value.0Raw value
Animate Left Maximum RawEnd of the raw value span. The offset reaches full scale when the variable value reaches the difference between Maximum Raw and Minimum Raw.100Raw value
Animate Left Minimum pxStart of the pixel span. A rising value moves the object to the right from its resting position by up to the difference between Maximum px and Minimum px. To move the object to the left, set Minimum px above Maximum px.200px
Animate Left Maximum pxEnd of the pixel span. A rising value moves the object to the right by up to the difference between Maximum px and Minimum px.420px

Access Control

Configure access control for the Knob object.

SettingDescriptionExampleUnits
Access Control EnableEnables access control evaluation for the object.trueBoolean
Access ControlExpression controlling who can use or see the object.SYSTEM.UserGroups == "Operators"Expression
Access Control FilterCSS filter applied when access control is used to alter the object appearance.blur(0px) contrast(30%)CSS filter

Visibility

Configure the runtime visibility and blinking behavior for the Knob object.

SettingDescriptionExampleUnits
VisibilityExpression controlling whether the object is visible.PLC1.KnobVisibleExpression
BlinkExpression or boolean controlling knob blinking.PLC1.AlarmActiveBoolean or expression
Blink SpeedBlink speed used during runtime.500ms
Blink OffsetBlink offset used to stagger blinking between objects.falseBoolean
Something missing or wrong in this article? Contact us