Adlink ND-6024 Bedienungsanleitung Seite 25

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 65
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 24
Command Set
19
2- character
< >
Identifies a control code character, such as <CR> for
carriage return, its value is 0x0D. 1- character
Format of NuDAM Commands
(Leading Code)(Addr)(Command)[Data][Checksum]<CR>
When checksum is enable then [Checksum] is needed, it is 2-character. Both
command and response must append the checksum characters.
How to calculate checksum value ?
[Checksum] =
((LeadingCode)+(Addr)+(Command)+[Data])
MOD 0x100
Example 1: checksum is disable
User Command : $012<CR>
Response : !01400600<CR>
$
: LeadingCode
01
: Address
2
: Command (Read Configuration)
<CR>
: Carriage return 0x0D
Example 2: checksum is enable
User Command :
$012B7<CR>
Response :
!01400600AC<CR>
$
: LeadingCode
01
: Address
2
: Command (Read Configuration)
B7
: Checksum value
<CR>
: Carriage return 0x0D
‘$’ = 0x24 ‘0’ = 0x30 ‘1’ = 0x31 ‘2’ = 0x32
Seitenansicht 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 64 65

Kommentare zu diesen Handbüchern

Keine Kommentare