beautypg.com

9] reading time, 10] setting time, 9] reading time -8 – Sharp JW-21MN User Manual

Page 47: 10] setting time -8

background image

10-8

[9] Reading time

Read out time (hour, minute, second) of clock. However, when JW-21CU or JW-31CUH/H1 is used as
PC, these PC do not have clock function and the read out data will be unsettled.
[Write mode assignment]: None
[Communication format]

Command

Response

[Example] Reading a time of 8 : 30 : 30 AM. (The data in cells are in hexadecimal notation)

Command

Response

[10] Setting time

Set time (hour, minute, second) of clock. However, when JW-21CU or JW-31CUH/H1 is used as PC,
these PC do not have clock function and date cannot be set.
[Write mode assignment]: 1 or 2
[Communication format]

Command

Response

[Example] When the time is 13 : 30 : 00. (The data in cells are in hexadecimal notation)

Command

Response

"+"

"C"

"L"

"A"

CMD SUB

ATTR

"+"

ACK

"C"

"L

"A"

CMD

SUB ATTR

H

M

S

2B

00

43

4C

41

45

A3

00

08

30

30

ACK

CMD

SUB

8:

30:

30AM

2B

43

4C

41

45

B3

00

13

30

00

00

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

13

30

00 At operation

2B

00

43

4C

41

45

B3

00

ACK

CMD

SUB

Symbol

Data

Details

CMD

45

(H)

Function code

SUB

B3

(H)

Sub code

H, M, S

Same as the "Reading out time" above.

CTRL

00

(H)

Start operation of the clock

01

(H)

Stop operation of the clock

02

(H)

Reset digits lower than the second

08

(H)

Correct 30 seconds (Round off 0 to
29 sec., and round up 30 to 59 sec.)

2B

43

4C

41

45

A3

00

"+"

"C"

"L"

"A"

CMD SUB ATTR

"+"

"C"

"L"

"A"

CMD SUB

ATTR

H

M

S

CTRL

"+"

ACK

"C"

"L"

"A"

CMD

SUB ATTR

(Symbols other than the
left: See page 10-3.)

Symbol

Data

Details

CMD

45

(H)

Function code

SUB

A3

(H)

Sub code

H

00 to 23

(H)

00 to 23 o'clock

M

00 to 59

(H)

00 to 59 minutes

S

00 to 59

(H)

00 to 59 seconds