- 12 -
ASCII Mode
Read Command
Read Response Message
Write Command
Write Response Message
Start word
’:’
Start word
’:’
Start word
’:’
Start word
’:’
Machine address 1
‘0’
Machine address 1
‘0’
Machine address 1
‘0’
Machine address 1
‘0’
Machine address 0
‘1’
Machine address 0
‘1’
Machine address 0
‘1’
Machine address 0
‘1’
Command 1
‘0’
Command 1
‘0’
Command 1
‘0’
Command 1
‘0’
Command 0
‘3’
Command 0
‘3’
Command 0
‘6’
Command 0
‘6’
‘1’ ‘0’
‘1’
‘1’
‘0’
Length of response data
(byte)
‘4’
‘0’
‘0’
‘0’ ‘0’
‘0’
‘0’
Read start address of
data/bit
‘0’ ‘1’
Data address
‘1’
Data address
‘1’
‘0’ ‘F’
‘0’
‘0’
‘0’
Data content in H1000
‘4’
‘3’
‘3’
‘0’ ‘0’
‘E’
‘E’
Read length of data/bit
(word/bit)
‘2’ ‘0’
Write data content
‘8’
Write data content
‘8’
LRC1 check
‘E’
‘0’
LRC1 check
‘F’
LRC1 check
‘F’
LRC0 check
‘A’
Data content in H1001
‘0’
LRC0 check
‘D’
LRC0 check
‘D’
End word 1
CR
LRC1 check
‘0’
End word 1
CR
End word 1
CR
End word 0
LF
LRC0 check
‘3’
End word 0
LF
End word 0
LF
End
word
1
CR
End
word
0
LF
LRC Check
Sum up the contents from “machine address” to “data content”, e.g. H01 + H03 + H10 + H00 + H00 + H02 = H16. Obtain 2’scomplement H
EA.
RTU Mode
Read Command
Read Response Message
Write Command
Write Response Message
Machine address
H01
Machine address
H01
Machine address
H01
Machine address
H01
Command H03 Command H03
Command H06
Command H06
H10 H10
H10
Read start address of data
H00
Length of response data
(byte)
H04
Write data address
H01
Write data address
H01
H00 H01
H03
H03
Read length of data
(bit/word)
H02
Data content 1
HF4
Write data content
H20
Write data content
H20
CRC low byte
HC0
H03
CRC low byte
HDD
CRC low byte
HDD
CRC high byte
HCB
Data content 2
H20
CRC high byte
HE2
CRC high byte
HE2
CRC low byte
HBB
CRC high byte
H15
CRC (Cyclical Redundancy Check) is obtained by the following steps:
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);
Software for Setting up Communication on PC:
Download the free software on Delta’s website.
Call 1(800)985-6929 for Sales
deltaacdrives.com
Call 1(800)985-6929 for Sales
deltaacdrives.com