[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

 

"+"

 

"C"

"L"

 

"A"

CMD

SUB

ATTR

 

 

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

 

ACK

"C"

 

"L

"A"

CMD

SUB

ATTR

H

M

S

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

 

Data

 

Details

 

 

 

 

 

 

 

 

CMD

 

45(H)

Function code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB

 

A3(H)

Sub code

 

 

(Symbols other than the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

00 to 23(H)

00 to 23 o'clock

 

 

left: See page 10-3.)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M

00 to 59(H)

00 to 59 minutes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

00 to 59(H)

00 to 59 seconds

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Command

 

2B

 

43

4C

41

 

45

A3

00

 

 

 

 

 

"+"

 

"C"

"L"

"A"

 

CMD

SUB

ATTR

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2B

00

43

4C

41

45

A3

00

08

30

30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

 

CMD

SUB

 

8:

30:

30AM

[10] Setting time

10Set 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

 

"+"

"C"

 

"L"

"A"

CMD

 

SUB

ATTR

H

M

S

CTRL

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

ACK

 

"C"

"L"

"A"

 

CMD

SUB

ATTR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

Data

 

 

 

 

Details

 

 

 

 

 

CMD

45(H)

Function code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB

B3(H)

 

Sub code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H, M, S

 

Same as the "Reading out time" above.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00(H)

 

Start operation of the clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

01(H)

 

Stop operation of the clock

 

 

 

 

 

CTRL

 

 

 

 

 

 

 

 

 

 

 

 

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.)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Command

2B

43

4C

41

45

B3

00

13

30

00

 

00

 

 

 

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

13

30

00

At operation

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2B

00

43

4C

41

45

B3

00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

CMD

SUB

 

 

 

 

 

 

10-8