Chapter 8 Communication Functions

(5) Example

This example supposes that "HFF" is written in M230 of station No. 1 and BCC value is checked.

Computer request format (PC MASTER-K120S main unit)

Format name

Header

Station No.

Command

Command

Number of

Device Length

Device Name

Data

Tail

Frame

type

blocks

check

 

 

 

 

 

 

 

 

Frame (Example)

ENQ

H01

w

SS

H01

H06

%MW230

H00FF

EOT

BCC

ASCII value

H05

H3031

H77

H5353

H3031

H3036

H254D5732

H30304646

H04

 

3330

 

 

 

 

 

 

 

 

 

 

 

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

SS

 

 

ETX

 

BCC

 

ASCII value

H06

H3031

H77

H5353

 

 

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

H01

w

 

SS

 

Error code (2)

 

ETX

BCC

 

ASCII value

H15

H3031

H77

 

H5353

 

Error code (4)

 

H03

 

8-17

Page 207
Image 207
LG Electronics 120S user manual H00FF EOT BCC