1. Home
  2. Docs
  3. SmartConfig2.1
  4. 5. Sampler Modes
  5. 5.1 User defined/ User Pr...
  6. 5.1.5 Variable Types and Allowed Ranges

5.1.5 Variable Types and Allowed Ranges

1. Sensor Variables (A–D)

These are directly mapped to values extracted from the incoming sensor string.
They represent your live sensor measurements and will be updated whenever F8 (Read Sensors) is executed.

VariableMeaningSourceData typeRange
ASensor value 1First selected sensor fieldfloatFull float range
BSensor value 2Second selected fieldfloatFull float range
CSensor value 3Third selected fieldfloatFull float range
DSensor value 4Fourth selected fieldfloatFull float range

2. Parameter Variables (G–M)

These are user-defined numeric parameters that can be edited in the GUI under:

Basics → Home

You currently support:

  • Parameter 1 → G
  • Parameter 2 → H
  • Parameter 3 → J
  • Parameter 4 → K
  • Parameter 5 → L
  • Parameter 6 → M

Range

0 to 65535

Purpose

These parameters allow the user to:

  • Store custom numbers
  • Tune program behavior
  • Reuse the same value across multiple program steps
  • Adjust thresholds or timings without modifying the program code

Examples

  • G = pump runtime in milliseconds
  • H = equilibration duration
  • J = number of samples to take
  • K = valve channel number

We will show these examples in the documentation section 5.1.4 Examples.


3. System Variables (R, X, Y, Z)

These are internal helper variables used in formulas and program logic.

VariableMeaningData typeRange
RResult of the last formuladoublefull double
XCounter 1uint32_t0–4.294.967.296
YCounter 2uint32_t0–4.294.967.296
ZCounter 3uint32_t0–4.294.967.296

Notes:

  • R is overwritten each time a formula function is executed.
  • X, Y, Z are typically manipulated using special User Program functions (e.g., increment, reset, compare).
  • They allow users to build loops or count events.

Summary Table

For the documentation, we’ll present this clean table:

LetterDescriptionTypeRangeEditable in GUI?
A–DSensor inputsfloatsensor rangeno
G, H, J, K, L, MUser parametersuint16_t0–65535yes
RFormula resultdoublefull doubleno
X–ZCountersuint32_t0–4.294.967.296indirectly

How can we help?