Hexadecimaldump

This feature is useful for programmed who are debuggingprinting pro- grams and want to see the actual codes the printer is receiving. (Some computerschangethe codesthe programmerintended.)

Inthismode,alldatareceivedwillbeprintedin ahexadecimaldumpformat, ratherthan the controlcodesbeing actedon as commandcodes.

This modeis accessedwith the followingprocedu~:

1.While holding both the PAPERFEEDand PITCHbuttons down, turn power ON. A beep tone will be heard.

2.Start printing.In place of the usual printoutyou will get a formatted dumpshowingexactlywhatdatatheprinterreceives.Eachlinepresents sixteen charactem their hexadecimalcodes to the left and printable charactersprintedon the right.

3.At the end of the hexadecimaldump, set the printer off-line with the ONLINEbutton.This is necessaryto printthe last line.

The followingBASICprogramis a simpletest you can run in hexadecimal mode:

10 FOR 1=0 TO 255

20LPRINT CHR$( 1 ) ;

30NEXT I

40LPRINT

50END

If your system passes the codes directly to the printer withoutchanging them, you will get a printoutlike Figure2-4.

m

[:)1(:]203 04

05

06

07

0!3

09

[:IA

Oi3

OC

CID OE

OF

1[] 11 12 1.3 14 15 16 17

113

19

1A

113

IC

ID

IE

IF

’20

~~

~~

p~

24

25

26

27

~S

29

ZQ

~B

2C

2D

2E

2F

31>

31

32

33

34

35

3.5

37

38

39

30

7B

3C

.3D

3E

3F

40

41

42

4s

44

45

46

47

48

49

4A

4B

4C

4D

4E

4F

50

51

52

5.3

54

55

36

57

5S

59

3A

5i3

5C

!5D

5E

5F

60

01

62

63

64

.55

66

67

68

69

6A

6!3

6C

6D

6E

6F

70

71

72

73

74

75

76

77

78

7?

76

7B

7C

7D

7E

7F

80

.91

S2

S3

84

S5

86

87

8S

89

8.4

8B

8C

SD

SE

SF

90

9 I

72

93

94

95

96

97

98

99 9A 9S

9C

9D

9E

9F

M)01 42 As A4 65 A.5 Q7 AS 69 AA (WI AC 6D 9E 6F

EI[:I B 1

E12

B3

E14

B5

Et6

E17

E18

!39

13A

!3EI

BC

EID

BE

RF

CCI Cl

C2

C.3

C4

C5

C6

C.7

C@ C9

CO CB

CC

CD

CE

CF

D(I

DI

D2

D3

D4

D5

D6

D7

DE!

D9

DA

DEI

DC

DD

DE

DF

E()

E 1

E2

E3

E4

E’5

E6

E?

ES

E9

EA

EH EC ED EE EF

F[l

F 1

F2

F3

F4

F5

F6

F7

FB

F9

FA

FEI

FC

FD

FE

FF

(:]D

(:)(?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 2-4.Sample hexadecimal dump

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

!“#$”/.&’ ( ) *+, -. / (:11234 !36789 : ; <:=:$?

@9BCDEFGHI JKLMNO

PQRSTUVWXYZ [ \ lo- ‘abc de+ghi j k 1 mno

pqt. stuvwxyz { : 3 -’.

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . .

. .

23

Page 31
Image 31
Star Micronics LC-20 user manual Hexadecimaldump, Next Lprint