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

Me-net module
Table of Contents

Advertisement

[7] Reading date

Read the year, month, date, and day of week. However, when JW-21CU or JW-31CUH/H1 is used as
PC, they do not have clock function and the reading will be meaningless.
[Write mode assignment]: None
[Communication format]
Command
"+"
Response
"+"
Symbol
Data
CMD
45
(H)
SUB
A2
(H)
Y
00 to 99
(H)
M
01 to 12
(H)
D
01 to 31
(H)
DW
00 to 06
(H)
[Ex.] Reading out April 25, 1996 (Thursday). (The data in cells are in hexadecimal notation)
Command
2B
43
"+"
"C"
Response
2B
00
ACK

[8] Setting date

Set year, month, day, and day of week. 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
Data
CMD
45
SUB
B2
Y, M, D, DW
Same as the "Reading out date" above.
[Ex.] Set May 1st (Wednesday), 1996 (Data in frame: Hexadecimal)
Command
2B
43
"+"
"C"
Response
2B
00
ACK
"C"
"L"
"A"
CMD SUB ATTR
ACK
"C
"L"
"A"
CMD SUB ATTR
Function code
Sub code
00 to 99 year (lower two digits of western year)
January to December
1st to 31st day of month
Day of week (Sunday: 00
Wednesday: 03
, Thursday: 04
(H)
06
)
(H)
4C
41
45
A2
"L"
"A"
CMD SUB ATTR
43
4C
41
45
CMD SUB
"C"
"L"
"A"
CMD SUB ATTR
ACK
"C"
"L"
"A"
CMD SUB ATTR
Details
Function code
(H)
Sub code
(H)
4C
41
45
B2
"L"
"A"
CMD SUB ATTR 1996
43
4C
41
45
B2
CMD SUB
10-7
Y
D
DW
Details
, Monday: 01
, Tuesday: 02
(H)
(H)
, Friday: 05
, Saturday:
(H)
(H)
00
A2
00
96
04
25
1996 April
25 Thursday
Y
M
D
DW
(Symbols other than the
left: See page 10-3.)
00
96
05
01
02
May
1
Wednesday
00
,
(H)
03
10

Advertisement

Table of Contents
loading

Table of Contents