Sharp JW-20FL5 All in One Printer User Manual


 
9-34
Chapter 9: Message transfers
9
Reading program (COM = 04(H))
[Format]
COM = 04(H)
PSEG = Program segment (08(H), 09(H)) See page 9-20.
PADRL,H = Program address (0000(H) to 7DFF(H)) See page 9-20.
LL,H = Data length (number of words)
DATA1 to N = Read data (2 bytes = one step)
[Function]
- Read a program with a length (number of words) shown by L, from address PSEG, PADR.
- Up to 512 words can be read at a time.
[Execution condition]
- Write enable mode : Mode 0, mode 1 and mode 2
- PC operation status : Stopping, operating
[Example]
- Read the contents of the program address 000000 to 000002 (file number 8).
Note: Inquiries concerning the bit configuration of programs cannot be accepted.
Ë Command
Ë Response
COM LL
......
DATANDATA1COM RSLT
PSEG
PSEG
PADRL
PADRL
PADRH
PADRH
LH
LL LH
Top program
address
Top program
address
Address
000000 contents
Address
000001 contents
Address
000002 contents
Ë Command
Ë Response
04 08 00 00 03 00
04 00 08 00 00 03 00 00 80 00 91
08 B8
Data length
Data length