Chapter 9 – RS485 Communication
9-5
Ex) Command Message (Request) for reading one address from address “9000”
ENQ
Inverter
No.
CMD Address
Number of
address to read
SUM EOT
05h “01” “R” “9000” “1” “AD” 04h
1 byte 2 bytes 1 byte 4 bytes 1 byte 2 bytes 1 byte
SUM = ‘0’ + ‘1’ + ’R’ + ‘9’ + ‘0’ + ‘0’ + ‘0’ + ‘1’
= 30h + 31h + 52h + 39h + 30h + 30h + 30h + 31h
= 1ADh
9.4.2 Detail communication protocol
1) Request for Read: Request for read successive ‘N’ numbers of WORD from address “XXXX”
ENQ Inv No CMD Address
Number of
Address
SUM EOT
05h
“01” ~
“FA”
“R” “XXXX” “1” ~ “8” = n “XX” 04h
1 byte 2 byte 1 byte 4 byte 1 byte 2 byte 1 byte
Total byte = 12
The quotation marks (“ ”) mean character.
1.1) Acknowledge Response:
ACK Inv No CMD Data SUM EOT
06h “01” ~ “FA” “R” “XXXX” “XX” 04h
1 byte 2 byte 1 byte N * 4 byte 2 byte 1 byte
Total byte = 7 * n * 4 = Max. 39
1.2) Negative Acknowledge Response:
NAK Inv No CMD Error code SUM EOT
15h “01” ~ “FA” “R” “**” “XX” 04h
1 byte 2 byte 1 byte 2 byte 2 byte 1 byte
Total byte = 9
2) Request for Write:
ENQ Inverter No CMD Address
Number of
Address
SUM EOT EOT
05h
“01” ~
“FA”
“W” “XXXX” “1” ~ “8” = n
“XXXX…
”
“XX” 04h
1 byte 2 byte 1 byte 4 byte 1 byte n * 4 byte 2 byte
1
byte
Total byte = 12 + n * 4 = Max. 44
2.1) Acknowledge response:
ACK Inverter No. CMD Data SUM EOT
06h “01” ~ “FA” “W” “XXXX…” “XX” 04h
1 byte 2 byte 1 byte n * 4 byte 2 byte 1 byte
Total byte = 7 + n * 4 = Max. 39
Note) When Request for Write and Acknowledge Response is exchanged between PC and Inverter for the first
time, previous data is returned. From the second time of transmission, the current data will be received.