beautypg.com

1] read free memory size, 2] monitor tmr, cnt, and md, 1] read free memory size -4 – Sharp JW-21MN User Manual

Page 43: 2] monitor tmr, cnt, and md -4, Symbol data details, Symbol data details cmd 43, Function code sub 4d, Sub code m 03

background image

10-4

[1] Read free memory size

Read free memory size.
[Write mode assignment]: None
[Communication format]

Command

Response

Ex. When reading the amount of free program memory (up to 7.5 k words). The data in the cells are

hexadecimal numbers.

Command

Response

[2] Monitor TMR, CNT, and MD

Read out the current value and attributed data from TMR, CNT, and MD in the specified area.
[Write mode assignment]: None
[Communication format]

Command

Response

(See page 10-3 for other symbols not described above)
[Ex.] Read the current value of TMR, CNT, and MD at addresses 000 to 002

(8)

(The data in cells are in hexadecimal notation)

Command

Response

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

"+"

ACK

"C"

"L"

"A"

CMD

SUB

ATTR

MODE

2B

43

4C

41

43

4D

00

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

2B

00

43

4D

41

43

4D

00

07

ACK

CMD

SUB

7.5k word

Symbol

Data

Details

TA1

to

TAN

00

(H)

Not used as TMR,

CNT, or MD

Data 1 bytes

x

Number of reading

data

01

(H)

ZW/JW MD

02

(H)

ZW CNT

04

(H)

ZW TMR

08

(H)

DTMR (BCD)

09

(H)

DTMR (BIN)

0A

(H)

UTMR (BCD)

0B

(H)

UTMR (BIN)

0C

(H)

DCNT (BCD)

0D

(H)

DCNT (BIN)

0E

(H)

UCNT (BCD)

0F

(H)

UCNT (BIN)

Symbol

Data

Details

CMD

43

(H)

Function code

SUB

4D

(H)

Sub code

M

03

(H)

Program memory capacity: 3.5 k words

07

(H)

Program memory capacity: 7.5 k words

07

(H)

Program memory capacity: 15.5 k words

07

(H)

Program memory capacity: 31.5 k words

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

2B

43

4C

41

42

23

00

00

00

03

00

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

000

(8)

3 pieces

2B

00

43

4C

41

42

23

00

00

00

03

00

ACK

CMD

SUB

ATTR

000

(8)

3 pieces

65

38

32

60

14

73

08

0C

0E

No. 000

Current value:

3865

No. 001

Current value:

6032

No. 002

Current value:

7314

DTMR

000

(BCD)

DCNT

001

(BCD)

UCNT

002

(BCD)

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

TMR.NO.

N

"+"

ACK

"C"

"L"

"A"

CMD

SUB

ATTR

TMR.NO.

N

D1

DN

TA1

TAN

Symbol

Data

Details

CMD

42

(H)

Function code

SUB

23

(H)

Sub code

TMR NO

When JW20/JW20H is

used: 000 to 777

(8)

TMR, CNT, MD number

(in order of 2 bytes data,
L and H.)

When JW30H is used:

0000 to 7777

(8)

(TMR, CNT, MD)

1000 to 1777

(8)

(TMR, CNT)

N

0000 to 0100

(8)

Number of reading data
(in order of 2 bytes data,
L and H.)

D1 to DN

See the example

Reading current value

data

(Data 2 bytes x number
of reading data)