Values

Equates to a rudamentary Key-Value (KV) map for Signal data. Allows DBC interpreters to output human-readable strings from raw Signal input values.

Syntax

VALUE SYNTAX
VAL_ <ID> <SignalName>  Key_1 "Val_1" ... Key_N "Val_N";
  • CAN_ID ยท decimal
  • Signal ยท signal - mnemonic name - see signals
  • LabelN ยท number - raw signal values
  • ValueN ยท string - text description

Note: multiple pairs of values are permitted. Minimum of 1 pair required.


Examples

GearSelector (enum)

ENUM
VAL_ 123 GearSelector  0 "P" 1 "R" 2 "N" 3 "D";
  • 0 -> P - park
  • 1 -> R - reverse
  • 2 -> N - neutral
  • 3 -> D - drive

HandbrakeStatus (boolean)

BOOLEAN
VAL_ 456 HandbrakeStatus  0 "Disengaged" 1 "Engaged";
  • 0 -> Disengaged
  • 1 -> Engaged

HeadlightStatus (boolean)

BOOLEAN
VAL_ 789 HeadlightStatus  0 "Off" 1 "On" ;
  • 0 -> Off
  • 1 -> On