Chapter 8 Communication Functions

(5) Example

This example supposes that 2 byte H’AA15 is written in D000 of station No. 1 and BCC value is checked.

Computer request Format (PC MASTER-K120S main unit)

Format name

Header

Station

Command

Command

Device

Device

Number of

Data

Tail

Frame

No.

type

Length

data

check

 

 

 

 

 

 

Frame (Example)

ENQ

H01

w

SB

H06

%DW0000

H01

HAA15056F

EOT

BCC

ASCII value

H05

H3031

H77

H5342

H3036

H254457303030

H3031

H414131353

H04

 

0353646

 

 

 

 

 

 

 

 

 

 

 

For ACK response after execution of command (PC MASTER-K120S main unit)

Format name

Header

Station No.

Command

 

Command type

 

Tail

 

Frame check

Frame (Example)

ACK

H01

W

 

 

SB

 

ETX

 

 

BCC

ASCII value

H06

H3031

H77

 

 

H5342

 

H03

 

 

 

For NAK response after execution of command(PC MASTER-K120S main unit)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Format name

Header

 

Station No.

 

Command

 

Command type

Error code

 

Tail

 

Frame check

Frame (Example)

NAK

 

01

 

W

 

SB

Error code (2)

 

ETX

 

BCC

ASCII value

H15

 

H3031

 

H77

 

H5342

Error code (4)

 

H03

 

 

8-20

Page 210
Image 210
LG Electronics 120S user manual Format name Header Station