Skip to main content

Module vif

Module vif 

Source
Expand description

The value information block (EN 13757-3:2018, clause 6.4): what a value is.

VIF  [VIFE …]

The VIF selects a quantity, its unit and decimal exponent from the primary table. Two VIF codes point to an extension table, whose code is the first VIFE: FB (larger units, °F, volume in US units) and FD (identifiers, versions, error flags, volts, amperes, storage and tariff metadata). Every other VIFE is combinable: it modifies the value (“per hour”, “start date of”, “upper limit”, “× 10⁻²”, “error: no data available”).

Vib::description answers what the value is; Vib::modifiers lists the combinable VIFEs. Record::quantity applies the multiplicative corrections and refuses to return a quantity when a modifier changes unit or meaning in a way this crate does not model.

Structs§

Description
What a value information block says about the value: what it is, and its unit and decimal exponent.
Modifiers
The combinable VIFEs of a Vib, as Modifiers.
RecordError
A record error code, sent by a slave in a combinable VIFE 00–1F (EN 13757-3, Table 19).
Vib
The value information block: VIF, up to 10 VIFEs, and a plain-text unit.

Enums§

Direction
Which way a compact profile runs (EN 13757-3:2018 Annex F.2).
Event
What a sensor event counter counts (FD FD 2C–34).
Extension
A code from the extension of the combinable VIFE table (after combinable FC).
Kind
What a value is, independent of which table said so.
Modifier
One combinable (orthogonal) VIFE: how it modifies the value (EN 13757-3, Table 15).
Particles
Particle size range (FD FD 17–1E).
Per
The denominator of a “per” VIFE.
Sensor
Which sensor a status-bits record belongs to (FD FD 40–44).
Table
Which table a code came from.
Times
What a value is multiplied by (VIFE 36–38).