Delta Electronics DTC1000R User Manual Page 12

  • Download
  • Add to my manuals
  • Print
  • Page
    / 12
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 11
12
To Read Instruction To Read Response
Message
To Write Instruction To Write Response
Message
Machine
address
01H 01H
Machine
address
01H 01H
Machine
address
01H 01H
Machine
address
01H 01H
Instruction
03H 02H
Instruction
03H 02H
Instruction
06H 05H
Instruction
06H 05H
10H 08H 10H 08H 10H 08HStarting
address of
reading
data
00H 10H
Response
data length
(byte)
04H 02H
To write
data
address
01H 10H
To write
data
address
01H 10H
00H 00H 01H 17H 03H FFH 03H FFHTo read
data length
(word/bit)
02H 09H
Data content
1
F4H 01H
To write
data
content
20H 00H
To write
data
content
20H 00H
CRC low
byte
C0H BBH 03H CRC low
byte
DDH 8FH CRC low
byte
DDH 8FH
CRC high
byte
CBH A9H
Data content
2
20H CRC high
byte
E2H 9FH CRC high
byte
E2H 9FH
CRC low
byte
BBH 77H
CRC high
byte
15H 88H
Following is a CRC (Cyclical Redundancy Check) program example:
unsigned int reg_crc = 0xffff; i = 0;
while (length--)
{
reg_crc ^= RTUData[i];
i ++;
for (j = 0; j < 8; j++)
{
if (reg_crc & 0x01) reg_crc = (reg_crc >> 1) ^ 0xA001;
else reg_crc = reg_crc >> 1;
}
}
return(reg_crc);
11 INSTALLATION
DTC modules can be expanded up to 8, and installed with DIN rail mounting
Delta Electronics, Inc. 31-1 Shien Pan Road, Kuei San Industrial Park, Taoyuan Shien 33341, Taiwan, R.O.C.
TEL: 886-3-362-6301 FAX: 886-3-362-7267
Page view 11
1 2 ... 7 8 9 10 11 12

Comments to this Manuals

No comments