Instructions

Strona 277 z 659
Dystrybucja Conrad Electronic Sp. z o.o., ul. Kniaźnina 12, 31-637 Kraków, Polska
Copyright © Conrad Electronic 2012, Kopiowanie, rozpowszechnianie, zmiany bez zgody zabronione.
www.conrad.pl
www.conrad.pl
Możesz również użyć listy etykiet do wyzwalania na identyfikatorze lub adresie. Zamiast wpisywać
wartość, wybierasz nazwę, która jest zdefiniowana w liście etykiet.
Listy etykiet SENT stanowią użyteczny sposób przekładania zdekodowanych danych na format
użytkownika. Listy etykiet są w dużym stopniu konfigurowalne. Format dostarczania opisu listy etykiet
odbywa się poprzez plik .xml i jest objaśniony na przykładzie, patrz "Struktura listy etykiet dla protokołu
SENT".
Ogólne informacje na temat karty "Lista etykiet" znajdują się w Rozdziale 9.1.3, "Listy etykiet".
Struktura listy etykiet dla protokołu SENT
<sb:FRAME NAME="Diagnostic Error Codes" STATE="ON">
<!-- Start of a Frame Definition -->
<!-- This block defines the information of a Transmission Sequence
or Serial Message:
NAME => Symbolic Label of the Frame
STATE [ON/OFF] => When ON, this frame Translation is taken into consideration.
When OFF, this frame Translation is skipped.-->
<sb:DESCRIPTION> used to diagnose the current SENT System</sb:DESCRIPTION>
<!-- Doesn't affect the Translation -->
<sb:ID-VALUE>01</sb:ID-VALUE>
<!-- ID Value of the Serial Message (in decimal) -->
<!-- Absence of the ID-VALUE field implies that the current Frame Translation
is to be used for Transmission Sequences and not for a Serial Message -->
<sb:ID-LENGTH>8</sb:ID-LENGTH>
<!-- ID Length of the Serial Message (in bits) -->
<sb:DATA-SIZE>12</sb:DATA-SIZE>
<!-- Data Length of the Serial Message (in bits) -->
<sb:SIGNALS>
<!-- This block defines the information of the Signals embedded
in the Data Field of the Frame (Transmission Sequence or Serial Message) -->
<sb:SIGNAL ID="Diagnostic">
<!-- Unique ID of the Signal (no effect on Translation) -->
<sb:SHORT-NAME>Diagnostic Code</sb:SHORT-NAME>
<!-- Name of the Signal -->
<sb:DESCRIPTION></sb:DESCRIPTION>
<!-- Info Field (no effect on Translation) -->
<sb:BIT-POSITION>11</sb:BIT-POSITION>
<!-- Ending Bit position of the Signal
(The whole Data Field is represented as MSB -> LSB Sequence) -->
<sb:BIT-LENGTH>12</sb:BIT-LENGTH>
<!-- Number of Bits representing the Signal Value -->
<sb:BYTE-ORDER>MSB</sb:BYTE-ORDER>
<!-- Byte Order of the Signal Value [MSB or LSB], Default: MSB -->
<sb:VALUE-TYPE>ENUM</sb:VALUE-TYPE>
<!-- Representation of the Bits [ENUM, UNSIGNED_INT, INT, FLOAT, DOUBLE],
Default: UNSIGNED_INT
The Signal Value is calculated according to the following:
Translated_Value = Encoded_Value * FACTOR + OFFSET -->