ADLINK ND-6067 User Manual
Page 127
125
(Leading
Code)
Leading Code is the first characteristic of the NuDAM
command. All NuDAM commands need a command leading
code, such as %,$,#,@,...etc.
1- character
(Addr)
Module’s address ID, the value is in the range of 00 - FF
(Hexadecimal) if no specified in the following.
2- character
(Command
Variable)
Items indicate command codes or value of variables.
Variable length
[Data] Some
output command need data.
Variable length
[Checksum]
Checksum in brackets indicate optional parameter,
only checksum is enable then this field is required.
2- character
< >
Identifies a control code character, such as
return, its value is 0x0D.
1- character
6.1.2 Format of NuDAM Commands
(Leading Code)(Addr)(Command)[Data][Checksum]
When checksum is enable then [Checksum] is needed, it is 2-character.
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