Monitoring relay (com = 20 – Sharp Z-336J User Manual

Page 102

Advertising
background image

9-25

Chapter 9: Message transfers

9

Monitoring relay (COM = 20

(H)

)

[Format]

COM

= 20

(H)

DSED

= Segment (00 to 07, 10 to 2C

(H)

)

See page 9-20.

DADR

L, H

= Byte address (0000

(H)

to FFFF

(H)

)

See page 9-20.

BLOC

= Bit position (00

(H)

to 07

(H)

)

DATA

= Read data (00

(H)

: OFF, 01

(H)

: ON)

[Function]
- Read the bit data (relay) shown in DSEG, DADR, and BLOC.

[Execution condition]
- Write enable mode : Mode 0, mode 1 and mode 2
- PC operation status : Stopping, operating

[Example]
- Monitor the ON/OFF status of relay number 04033.

Ë

Command

Ë

Response

COM

DSEG DADR

L

DADR

H

BLOC

COM

RSLT

DSEG DADR

L

DADR

H

BLOC DATA

Bit 3

Bit 3

File 0

File 0

ON

Ë

Command

Ë

Response

20

00

03

01

03

20

00

00

03

01

03

01

File address

000403

(8)

= 0103

(H)

File address

000403

(8)

= 0103

(H)

Relay number 04033

Relay number 04033

Advertising
This manual is related to the following products: