Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Communication protocol<br />
INTRODUCTION<br />
THE BASIC DMC 2 communication protocol follows the Intel HEX-protocol with<br />
some extensions. The register number field may also contain X-REGISTERS for<br />
the read and write register routines.<br />
The ACK/NAK characters are moved to some characters that are not part <strong>of</strong> the<br />
data character set.<br />
The RECORD-TYPE byte high nibble values 8 -- F may be used to force unit<br />
addressing to eliminate response from a miss-selected unit.<br />
PROTOCOL FORMAT<br />
The general format for the protocol<br />
: ... <br />
DESCRIPTION<br />
:<br />
<br />
<br />
<br />
<br />
<br />
<br />
The start <strong>of</strong> record character.<br />
A two-digit hexadecimal number, indicating the length <strong>of</strong> the data<br />
field (in bytes) in the record. The maximum supported value <strong>of</strong><br />
is 6F hex.<br />
A four-digit address, Register are addresses with their number (0-<br />
255). Extended registers are addresses with<br />
[32768+256 x group+member].<br />
Type <strong>of</strong> record and node address, if command or data record,<br />
and type <strong>of</strong> command/data. The first Hex-Digit is the node<br />
address (in daisy chain operation) and the second digit is the<br />
record type identifier.<br />
Is the data field.<br />
Is the 2’s complement <strong>of</strong> the modulo 256 sum <strong>of</strong> all bytes in the<br />
record (except ). (So that the modulo 256 sum <strong>of</strong>f all<br />
bytes, including is Zero.)<br />
Carriage return used to help identify the end <strong>of</strong> the record.<br />
A record with correct checksum is acknowledged with an “Y” followed by a ; a<br />
record with incorrect checksum is acknowledged with an “N” followed by a .<br />
These rules apply to both the host computer and the DMC 2 unit.<br />
COMPUTER MODE<br />
Record<br />
type<br />
0<br />
Description Example<br />
Ordinary data record<br />
Used to download/upload the internal program.<br />
is the byte-address in the internal<br />
program area. For the DMC 2 to accept this record<br />
type, a record <strong>of</strong> type 2 must have been sent to<br />
enable program downloading.<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001 199