Skip to content

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.

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
}
]
}

Present for every protocol. name and dataType are required.

FieldTypeDefaultNotes
namestring—Required. Trimmed; an entry with a missing or empty name is skipped
dataTypestring—Required. See Types. A signal with no type, or an unrecognized one, is skipped
descriptionstringblankFree text, shown in the app
unitstringemptyDisplayed by widgets and carried into recordings
minValuenumber0Lower end of the expected range, which drives gauge scales and axis defaults
maxValuenumber100Upper end of the expected range

dataType states what a value is, at its real width. The vocabulary is the same for every protocol:

dataTypeBytesValue
bool1On/off. On bit-addressed protocols, one bit of that byte, selected by bit
int8 / uint81Signed / unsigned byte
int16 / uint162Signed / unsigned 16-bit integer
int32 / uint324Signed / unsigned 32-bit integer
float324IEEE-754 single
float648IEEE-754 double

Names are case-insensitive and trimmed. These spellings are also accepted everywhere:

You writeYou get
booleanbool
int, integerint32
floatfloat32
double, numberfloat64

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”
ProtocolWidth isBecause
UDP, Siemens S7, CAN busEnforced. It decides which bytes are readThe value arrives as raw bytes at a fixed position
Serial, MQTT, SimulatedAdvisory. It records intent and precisionThe 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.

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 PortalResolves toBytes
Boolbool1
Byteuint81
SIntint81
USIntuint81
Intint162
UIntuint162
Worduint162
DIntint324
UDIntuint324
DWorduint324
Realfloat324
LRealfloat648

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, float64

A guessed width would give plausible but wrong numbers. If a signal is missing from the list, check this first.

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.

There is no protocol key. The parser picks the protocol from the addressing fields an entry has:

If the entry containsIt is read asFields used
dbSiemens S7db, byteOffset, bit
messageId or startBitCAN busmessageId, startBit, length, byteOrder, factor, offset
topic or jsonPathMQTTtopic, jsonPath
characteristicUuidBluetooth LEcharacteristicUuid
simulationBehavior or updateRateMsSimulatedsimulationBehavior, updateRateMs
byteOffset without dbUDPbyteOffset, 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.

FieldProtocolMeaning
byteOffsetUDP, S7Byte position of the value: within the datagram for UDP, within the data block for S7
bitUDP, S7Bit position 0–7 within that byte. bool signals only
dbS7Data block number to read from. Its presence also selects the S7 type dialect
messageIdCANIdentifier of the frame carrying the signal
startBit, lengthCANBit position and width of the signal within the frame
byteOrderCANByte order of the raw value
factor, offsetCANLinear scaling applied to the raw value
topicMQTTThe topic whose payload is this signal’s value
jsonPathMQTTPath to the value inside a JSON payload. See MQTT
characteristicUuidBLEGATT characteristic to read the value from
simulationBehavior, updateRateMsSimulatedAccepted by the parser, not used by the plugin. See Simulated

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.

ProblemResult
File missing, unreadable, or not valid JSONNothing 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 arrayThe same: nothing is loaded
An entry is not an object, or has no usable nameThat entry is skipped; the rest of the file loads
An entry has no dataType, or one that is not recognizedThat entry is skipped and named in the log; the rest of the file loads
An entry has no addressing for its protocolDepends 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 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.