Chapter 8 Communication Functions

(5) Example

This example supposes that device M000 of station NO. 1 is monitor registered.

Computer request Format (PC MASTER-K120S main unit)

Format name

Header

Station No.

Command

Registration

 

Registration Format

 

Tail

Frame check

 

Number of

 

 

No.

R##

Device length

Device name

 

 

 

 

blocks

 

 

 

 

 

 

 

 

 

 

 

 

Frame (Example)

ENQ

H01

x

H01

RSS

H01

H06

%MW000

EOT

BCC

ASCII value

H05

H3031

H78

H3031

H525353

H3031

H3036

H255457

 

 

303030

H04

 

 

 

 

 

 

 

 

 

 

 

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

Format name

Header

Station No.

Command

Registration No.

Tail

Frame check

Frame (Example)

ACK

H01

x

H01

ETX

BCC

ASCII value

H06

H3031

H78

H3031

H03

 

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

Format name

Header

Station No.

Command

Registration No.

Error code

Tail

Frame check

Frame (Example)

NAK

H01

x

H01

Error code (2)

ETX

BCC

ASCII value

H15

H3031

H78

H3031

Error code (4)

H03

 

8-23

Page 213
Image 213
LG Electronics 120S user manual Rss