beautypg.com

ADLINK ND-6021 User Manual

Page 25

background image

Command Set

19

2- character

< >

Identifies a control code character, such as for
carriage return, its value is 0x0D. 1- character

Format of NuDAM Commands

(Leading Code)(Addr)(Command)[Data][Checksum]

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
Response : !01400600

$

: LeadingCode

01

: Address

2

: Command (Read Configuration)

: Carriage return 0x0D

Example 2: checksum is enable

User Command : $012B7
Response : !01400600AC

$

: LeadingCode

01

: Address

2

: Command (Read Configuration)

B7

: Checksum value

: Carriage return 0x0D

‘$’ = 0x24

‘0’ = 0x30

‘1’ = 0x31

‘2’ = 0x32