53
EXDUL-581E / EXDUL-581S
© 2019 by Messcomp Datentechnik GmbH
DV03
53
EXDUL-581E / EXDUL-581S
© 2019 by Messcomp Datentechnik GmbH
EV03
wasco
®
wasco
®
11.4.5 Structure of commands
Writing into the info registers
The EXDUL module provides several writable information registers.
UserA/B are two 16-byte areas for the user to store information into a
non-volatile memory (FLASH). The registers are writable only as a whole
16-byte block.
11.4.5 Befehlszusammensetzung
Byte
Senden
Empfangen
Beschreibung
0
0C
0C
Befehlscode 1. Byte
1
00
00
Befehlscode 2. Byte
2
00
00
Befehlscode 3. Byte
3
05
00
Längenbyte → 20 Byte
4
00 (UserA)
01 (UserB)
Info-Byte
5
00
reserviert
6
00
reserviert
7
00
Schreibfunktion Infobereich
8
45
Daten 1. Zeichen E
as
9
58
Daten 2. Zeichen X
asci
10
44
Daten 3. Zeichen D
asci
11
55
Daten 4. Zeichen U
asci
12
4C
Daten 5. Zeichen L
asci
13
2D
Daten 6. Zeichen -
asci
14
35
Daten 7. Zeichen 5
asci
15
38
Daten 8. Zeichen 8
asci
16
31
Daten 9. Zeichen 1
asci
17
20
Daten 10. Zeichen [Leer]
asci
18
20
Daten 11. Zeichen [Leer]
asci
19
20
Daten 12. Zeichen [Leer]
asci
20
20
Daten 13. Zeichen [Leer]
asci
21
20
Daten 14. Zeichen [Leer]
asci
22
20
Daten 15. Zeichen [Leer]
asci
23
20
Daten 16. Zeichen [Leer]
asci
Schreiben in Inforegister
Das EXDUL-Modul stellt mehrere beschreibbare Inforegister zur Verfügung.
UserA/B sind zwei 16-Byte-Bereiche für den Anwender, um Informationen
in einem nicht-flüchtigen Speicher (FLASH) zu sichern. Die Register sind
nur als ganzer 16-Byte-Block beschreibbar.
Beispiel: Schreiben der Zeichenfolge EXDUL-581 in Register UserA und UserB
Infobereich
Info-Byte
UserA
0
UserB
1
Info area
Info Byte
UserA
0
UserB
1
Byte
Transmit
Receive
Representing
0
0C
0C
Command code 1st Byte
1
00
00
Command code 2nd Byte
2
00
00
Command code 3rd Byte
3
05
00
Lenght prefix byte => 20 Byte
4
00 (UserA)
01 (UserB)
Info byte
5
00
reserved
6
00
reserved
7
00
Info area of write operation
8
45
Data 1st character E
asci
9
58
Data 2nd character X
asci
10
44
Data 3rd character D
asci
11
55
Data 4th character U
asci
12
4C
Data 5th character L
asci
13
2D
Data 6th character -
asci
14
35
Data 7th character 5
asci
15
38
Data 8th character 8
asci
16
31
Data 9th character 1
asci
17
20
Data 10th character [blank]
asci
18
20
Data 11th character [blank]
asci
19
20
Data 12th character [blank]
asci
20
20
Data 13th character [blank]
asci
21
20
Data 14th character [blank]
asci
22
20
Data 15th character [blank]
asci
23
20
Data 16th character [blank]
asci
Example: enter the character string EXDUL-581 into register UserA and UserB