Skip to content

Shared Definitions

Shared definitions provide reusable labels and value transformations that other parts of the PDC reference by key.

GlobalDictionary

The predefined keys, individual keys, predefined values and individual values are defined in the Global Dictionary. These definitions can be used by referencing the Global Dictionary in subsequent parts for displaying individual CAN messages. All lines within the markers <GlobalDictionary> and </GlobalDictionary> belong to this section. Each definition starts with <Message> and ends with </Message>.

GlobalDictionary XML example (click to view)
<GlobalDictionary>
  <Message key="label.value.common.cu.battery.cyclecount">
    <Label lang="en" value="Battery cyclecount modem"/>
    <Label lang="de" value="Batterie Zähler Modem"/>
  </Message>
  <Message key="label.value.common.cu.hours.operation">
    <Label lang="en" value="Operatinghours modem"/>
    <Label lang="de" value="Betriebsstunden Modem"/>
  </Message>
  <Message key="label.value.common.machine.distance.total">
    <Label lang="en" value="Total maschine distance"/>
    <Label lang="de" value="Gesamtkilometerzähler Maschine"/>
  </Message>
  <Message key="label.value.common.machine.hours.idle.total">
    <Label lang="en" value="Operatinghours in idle"/>
    <Label lang="de" value="Betriebsstunden im Leerlauf"/>
  </Message>
  <Message key="label.cond.on">
    <Label lang="en" value="On"/>
    <Label lang="de" value="An"/>
  </Message>
  <Message key="label.cond.off">
    <Label lang="en" value="Off"/>
    <Label lang="de" value="Aus"/>
  </Message>
  <Message key="label.custom.unit.microAmpere">
    <Label lang="en" value="uA"/>
  </Message>
</GlobalDictionary>
Element/ Attribute Description
<Message> Container for a single dictionary entry.
key A unique identifier. For better readability, use the predefined key schema (label.value.common.[…]) or the custom schema label.value.custom.[…]. For view definitions use label.view.[…].
lang Language code. Supported values: en, de, zh, cs, da, nl, fr, it, ja, ko, es, sv.
value Display string for the specified language. Shown in the DataPortal depending on the language settings.

Transformers

Transformers provide the possibility to calculate the correct machine data from the received raw data. A Transformer is defined between the tags <Transformer> and </Transformer>.

<Transformers>
  <Transformer key="transformer.1.0">
    <formula xsi:type="LinearFormula">
      <scale>1</scale>
      <offset>0</offset>
    </formula>
  </Transformer>
  <Transformer key="transformer.0_125.0">
    <formula xsi:type="LinearFormula">
      <scale>0.125</scale>
      <offset>0</offset>
    </formula>
  </Transformer>
  <Transformer key="transformer.0_5.0">
    <formula xsi:type="LinearFormula">
      <scale>0.5</scale>
      <offset>0</offset>
    </formula>
  </Transformer>
</Transformers>
Element/Attribute Description
<Transformer> Container for a single transformer.
key Unique identifier, referenced in <ParsingDefinition>.
<formula> Only linear scaling is supported.
<scale> Multiplication factor for the raw data.
<offset> The offset is added to the result of the multiplication (display value = (raw data × scaling) ± offset).

The presented value on the DataPortal in the Machine Overview is calculated with a specific Transformer.