Reading Time; Setting Time - Sharp JW-21MN User Manual

Me-net module
Table of Contents

Advertisement

[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
Symbol
CMD
SUB
H
00 to 23
M
00 to 59
S
00 to 59
[Example] Reading a time of 8 : 30 : 30 AM. (The data in cells are in hexadecimal notation)
Command
Response

[10] Setting time

10
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
Symbol
CMD
SUB
H, M, S
CTRL
[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"
Data
Details
45
Function code
(H)
A3
Sub code
(H)
00 to 23 o'clock
(H)
00 to 59 minutes
(H)
00 to 59 seconds
(H)
2B
43
4C
41
45
"+"
"C"
"L"
"A"
CMD SUB ATTR
2B
00
43
4C
41
ACK
"+"
"C"
"L"
"A"
CMD SUB ATTR
"+"
ACK
"C"
"L"
Data
45
Function code
(H)
B3
Sub code
(H)
Same as the "Reading out time" above.
00
Start operation of the clock
(H)
01
Stop operation of the clock
(H)
02
Reset digits lower than the second
(H)
Correct 30 seconds (Round off 0 to
08
(H)
29 sec., and round up 30 to 59 sec.)
2B
43
4C
41
45
"+"
"C"
"L"
"A"
CMD
2B
00
43
4C
41
ACK
CMD SUB ATTR
H
(Symbols other than the
left: See page 10-3.)
A3
00
45
A3
00
08
30
CMD SUB
8:
30:
H
M
"A"
CMD SUB ATTR
Details
B3
00
13
30
00
SUB ATTR
13
30
00 At operation
45
B3
00
CMD
SUB
10-8
M
S
30
30AM
S
CTRL
00

Advertisement

Table of Contents
loading

Table of Contents