Chapter 8 Communication Functions

(3) Response Format (ACK response)

Format name

Header

Station No.

Command

Command type

Tail

Frame check

Frame (Example)

ACK

H10

W(w)

SB

ETX

BCC

ASCII value

H06

H3130

H57(77)

H5342

H03

 

 

 

Item

 

 

 

 

 

 

 

 

 

 

 

Explanation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte

 

 

 

BCC

 

 

each to ASCII values from ACK to ETX is converted into ASCII and added to BCC, and

 

 

 

 

 

 

 

 

sent.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(4) Response Format (NAK response)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Format name

 

 

 

Header

 

 

Station No.

 

 

Command

 

 

Command type

 

 

Error code

 

 

Tail

 

 

Frame

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Hex 2 Byte)

 

 

 

 

check

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Frame (Example)

 

 

ENQ

 

 

H10

 

 

W(w)

 

 

SB

 

H1132

 

 

EOT

 

 

BCC

 

 

 

ASCII value

 

 

 

H05

 

 

H3130

 

 

H57(77)

 

 

H5342

 

H31313332

 

 

H03

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Item

 

 

 

 

 

 

 

 

 

 

 

Explanation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte

 

 

 

BCC

 

 

each to ASCII values from NAK to ETX is converted into ASCII and added to BCC, and

 

 

 

 

 

 

 

 

sent.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error code

 

 

Hex and 2 bytes(ASCII code, 4 bytes) indicate error type. For the details, see 8.1.8 Error

 

 

 

 

 

codes.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8-19

Page 209
Image 209
LG Electronics 120S user manual H10