Signal file reference
Most com plugins get their signal list from a JSON file you load with Load signals. Every protocol uses the same file shape and type vocabulary, plus a few keys per protocol saying where each signal sits in the incoming data. The path is saved with the interface and the file is reloaded when the session opens. To change addressing, edit the file and reload it.
Serial is the exception: the device names its own columns, and a file only adds detail.
File shape
Section titled “File shape”A root object with a dataSignals array:
{ "dataSignals": [ { "name": "MotorTemp", "description": "Drive-end bearing temperature", "unit": "°C", "dataType": "float32", "minValue": 0, "maxValue": 150, "byteOffset": 0 } ]}Common fields
Section titled “Common fields”Present for every protocol. name and dataType are required.
| Field | Type | Default | Notes |
|---|---|---|---|
name | string | — | Required. Trimmed; an entry with a missing or empty name is skipped |
dataType | string | — | Required. See Types. A signal with no type, or an unrecognized one, is skipped |
description | string | blank | Free text, shown in the app |
unit | string | empty | Displayed by widgets and carried into recordings |
minValue | number | 0 | Lower end of the expected range, which drives gauge scales and axis defaults |
maxValue | number | 100 | Upper end of the expected range |
dataType states what a value is, at its real width. The vocabulary is the same for every
protocol:
dataType | Bytes | Value |
|---|---|---|
bool | 1 | On/off. On bit-addressed protocols, one bit of that byte, selected by bit |
int8 / uint8 | 1 | Signed / unsigned byte |
int16 / uint16 | 2 | Signed / unsigned 16-bit integer |
int32 / uint32 | 4 | Signed / unsigned 32-bit integer |
float32 | 4 | IEEE-754 single |
float64 | 8 | IEEE-754 double |
Names are case-insensitive and trimmed. These spellings are also accepted everywhere:
| You write | You get |
|---|---|
boolean | bool |
int, integer | int32 |
float | float32 |
double, number | float64 |
Width is a contract on some protocols and a note on others
Section titled “Width is a contract on some protocols and a note on others”| Protocol | Width is | Because |
|---|---|---|
| UDP, Siemens S7, CAN bus | Enforced. It decides which bytes are read | The value arrives as raw bytes at a fixed position |
| Serial, MQTT, Simulated | Advisory. It records intent and precision | The value arrives as text and is parsed regardless |
For the advisory group, the type still decides how the value is displayed, recorded and typed in
the Parquet archive, so get it right. int16 on a serial column does not make VizuaLog read two
bytes.
Siemens S7 spellings
Section titled “Siemens S7 spellings”A signal with a db key is read in the S7 dialect, so you can copy a data block as TIA Portal
shows it:
| TIA Portal | Resolves to | Bytes |
|---|---|---|
Bool | bool | 1 |
Byte | uint8 | 1 |
SInt | int8 | 1 |
USInt | uint8 | 1 |
Int | int16 | 2 |
UInt | uint16 | 2 |
Word | uint16 | 2 |
DInt | int32 | 4 |
UDInt | uint32 | 4 |
DWord | uint32 | 4 |
Real | float32 | 4 |
LReal | float64 | 8 |
A signal with a bad type is not loaded
Section titled “A signal with a bad type is not loaded”A missing or unrecognized dataType skips the signal. The rest of the file loads, and the log
names what was dropped and lists the accepted types:
JsonSignalParser::parse - skipping signal "Speed" - unknown dataType "real" .Expected one of: bool, int8, uint8, int16, uint16, int32, uint32, float32, float64A guessed width would give plausible but wrong numbers. If a signal is missing from the list, check this first.
Decimals follow the type
Section titled “Decimals follow the type”float32 and float64 show decimals; integer types and bool do not. This applies to gauges,
metric cards, text displays and graph axes, and there is nothing to configure.
Addressing: how the protocol is chosen
Section titled “Addressing: how the protocol is chosen”There is no protocol key. The parser picks the protocol from the addressing fields an entry
has:
| If the entry contains | It is read as | Fields used |
|---|---|---|
db | Siemens S7 | db, byteOffset, bit |
messageId or startBit | CAN bus | messageId, startBit, length, byteOrder, factor, offset |
topic or jsonPath | MQTT | topic, jsonPath |
characteristicUuid | Bluetooth LE | characteristicUuid |
simulationBehavior or updateRateMs | Simulated | simulationBehavior, updateRateMs |
byteOffset without db | UDP | byteOffset, bit |
In practice a file describes one protocol. Mixing db and messageId in one entry produces
both blocks, and the loading plugin ignores one of them.
Field meanings
Section titled “Field meanings”| Field | Protocol | Meaning |
|---|---|---|
byteOffset | UDP, S7 | Byte position of the value: within the datagram for UDP, within the data block for S7 |
bit | UDP, S7 | Bit position 0–7 within that byte. bool signals only |
db | S7 | Data block number to read from. Its presence also selects the S7 type dialect |
messageId | CAN | Identifier of the frame carrying the signal |
startBit, length | CAN | Bit position and width of the signal within the frame |
byteOrder | CAN | Byte order of the raw value |
factor, offset | CAN | Linear scaling applied to the raw value |
topic | MQTT | The topic whose payload is this signal’s value |
jsonPath | MQTT | Path to the value inside a JSON payload. See MQTT |
characteristicUuid | BLE | GATT characteristic to read the value from |
simulationBehavior, updateRateMs | Simulated | Accepted by the parser, not used by the plugin. See Simulated |
Order matters
Section titled “Order matters”Signals keep their file order in the app and in recordings. On Serial, order pairs a line’s columns with signals. Reordering the file reorders the list.
What happens when a file is wrong
Section titled “What happens when a file is wrong”| Problem | Result |
|---|---|
| File missing, unreadable, or not valid JSON | Nothing is loaded. The interface reports the file error and keeps its previous signals, and is not put into a failed state |
Root is not an object, or has no dataSignals array | The same: nothing is loaded |
An entry is not an object, or has no usable name | That entry is skipped; the rest of the file loads |
An entry has no dataType, or one that is not recognized | That entry is skipped and named in the log; the rest of the file loads |
| An entry has no addressing for its protocol | Depends on the plugin: UDP gives it a placeholder slot that always reads 0.0, S7 refuses to start the poll and says why |
After loading, you can edit a signal’s name, description, unit, type and range in the app. Addressing is read-only; change it in the file.
A complete example
Section titled “A complete example”A UDP schema with a mix of types, including two booleans packed into one byte:
{ "dataSignals": [ { "name": "MotorTemp", "description": "Drive-end bearing temperature", "unit": "°C", "dataType": "float32", "minValue": 0, "maxValue": 150, "byteOffset": 0 }, { "name": "MotorRpm", "description": "Shaft speed", "unit": "rpm", "dataType": "uint16", "minValue": 0, "maxValue": 3000, "byteOffset": 4 }, { "name": "MotorRunning", "unit": "", "dataType": "bool", "byteOffset": 6, "bit": 0 }, { "name": "OverTempAlarm", "unit": "", "dataType": "bool", "byteOffset": 6, "bit": 1 } ]}That datagram is 7 bytes: float32 at 0–3, uint16 at 4–5, and two bits of byte 6.
Each plugin page has an example in its own addressing and explains how the bytes are read: Simulated · UDP · Serial · Siemens S7
MQTT finds its signals by browsing the broker instead of from a file. See MQTT.
The CAN bus and Bluetooth LE keys are listed because the parser accepts them, but those plugins have no page yet.