Star Micronics NX-2400 user manual B8 B9

Page 32

If your system passes the codes directly to the printer without changing them, you will get a printout like Figure 2-3.

00

01

02

03

04

05

06

07

08

09

OA

06

 

OC

OD

OE

OF

__

 

 

 

10

11

12

13

14

15

16

17

18

19

1A

18

1C

1D

1E

1F

.i-#iXi:

 

ij*+,-.,

20

21

22

23

24

25

26

27

28

29

2A

28

ZC

2D

2E

ZF

 

 

 

 

 

30

31

32

33

34

35

36

37

38

39

3A

38

 

3C

3D

3E

3F

01234567

 

89:;<=>?

 

ii

41

42

43

44

45

46

47

48

49

4A

48

 

4C

40

4E

4F

@ABCDEFG

HIJKLMNO

50

51

52

53

54

55

56

57

58

59

5A

58

 

5C

50

5E

5F

PQRSTUVW

XYZ[\l--

 

60

61

62

63

64

65

66

67

68

69

6A

6R

6C

6D

6E

6F

‘abcdefg

 

hijklmno

 

70

71

72

73

74

75

76

77

78

79

7A

78

 

7C

7D

7E

7F

pqrstuvw

 

xyz{l)~0

 

80

81

82

83

84

85

86

87

88

89

8A

88

 

8C

8D

8E

8F

. .

 

. .

.

90

91

92

93

94

95

96

97

98

99

9A

98

 

9C

9D

9E

9F

. . .

. .

.

A0

Al

A2

A3

A4

A5

A6

A7

A8

A9

AA

AB

AC

AD

AE

AF

.

. .

 

 

80

81

62

83

84

R5

66

87

88

69

BA

RB

8C

BD

BE

BF

.

 

. .

 

CO

Cl

C2

C3

C4

C5

C6

C7

C8

C9

CA

CB

CC

CD

CE

CF

 

 

.

 

DO

01

02

D3

04

D5

D6

D7

08

D9

DA

DB

DC

DD

DE

DF

..,

 

.

. . .

ii

21

E2

E3

E4

E5

E6

E7

E8

E9

EA

EB

EC

ED

EE

EF

.

.

. .

.

FO

Fl

F2

F3

F4

F5

F6

F7

FB

F9

FA

FB

FC

FD

FE

FF

..,

 

 

 

00

OA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.

 

 

 

Most BASICS, however, are not quite that straightforward. For example, the IBM-PC prints the following.

00

01

02

03

04

05

06

07

08

09

OA

08

OC

OD

OA

OE

 

 

 

 

 

 

 

OF

10

11

12

13

14

15

16

17

18

19

18

1C

1D

1E

1F

:::::::I

 

::::::..

 

 

 

 

20

21

22

23

24

25

26

27

28

29

2A

28

2C

2D

2E

2F

!“#$%&’

ox+.-./

 

 

 

 

30

31

32

33

34

35

36

37

38

39

3A

38

3C

30

3E

3F

01234567

89:;<=>?

 

 

 

40

41

42

43

44

45

46

47

48

49

4A

48

4C

4D

4E

4F

@ABCDEFG

HIJKLMNO

 

 

50

51

52

53

54

55

56

57

58

59

5A

58

SC

5D

5E

5F

PQRSTUVW

XYZ

[\I

-_

 

 

60

61

62

63

64

65

66

67

68

69

6A

68

6C

6D

6E

6F

‘abcdefg

hijklmno

 

 

 

70

71

72

73

74

75

76

77

78

79

7A

78

7C

7D

7E

7F

pqrstuvw

xyz{l)-o

 

 

 

80

81

82

83

84

85

86

87

88

89

8A

88

8C

8D

8E

8F

____,.._

__._....

 

 

 

90

91

92

93

94

95

96

97

98

99

9A

98

9C

9D

9E

9F

_

 

. . . . . . . .

 

 

A0

Al

A2

A3

A4

A5

A6

A7

A8

A9

AA

AB

AC

AD

AE

AF

 

 

 

 

 

 

 

50

81

B2

83

84

55

86

87

B8 B9

BA

BB

BC

8D

BE

BF

::::::::

 

:::I::..

 

 

 

 

CO

Cl

C2

C3

C4

C5

C6

C7

C8

C9

CA

CB

CC

CD

CE

CF

.,

 

. . . . . . . .

 

 

DO

Dl

D2

D3

D4

D5

D6

D7

08

09

DA

08

DC

DD

DE

DF

::::::::

 

::::::::

 

 

 

 

EO

El

E2

E3

E4

E5

E6

E7

E8

E9

EA

EB

EC

ED

EE

EF

 

 

 

 

 

FO

Fl

F2

F3

F4

F5

F6

F7

F8

F9

FA

FB

FC

FD

FE

FF

 

 

.

 

.

 

 

OD

OA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 2-4. Sample hexadecimal dump with IBM-PC

 

 

 

 

 

 

 

 

 

 

 

When

the

IBM-PC BASIC

interpreter

sends hex code OD (carriage re-

 

 

turn)

it

adds

an

extra

hex OA (line

feed).

Hex

code

IA (end-of-file)

also

gets

-

--

special

treatment:

 

the

interpreter

does

not

send

it at all.

This

can

cause

 

-

problems

 

in

programs

that

generate

graphics

or

download

character

 

data,

 

 

 

 

 

but

there

is

a

solution.

Try

changing

line

20

in the

preceding

program

 

and

 

 

adding the coding shown below.

 

 

 

 

 

 

 

 

 

 

 

 

 

Coding for IBM-PC with monochrome display:

20 GOSUB 100

100 O=INP(&H3BD):IF 0<128 THEN 100

110 OUT &H3BC,I :OUT &H3BE,5 :OUT &H3BE,4

120 RETURN

24

Image 32
Contents NX-2400 Page HOW to USE this Manual Features of the Printer Quad-sized Tableofcontents With DOS and Basic Download Character Generator Chapter Platen Setting UP Remove the top coverInstall the ribbon cartridge Install the optional IC card Replace the top cowerConnect the printer to the computer Mount the paper guideSemiautomatic loading Figure l-7.Mounting the paper guide for single sheetsManual loading Loading and Parking Fanfold Forms 11. Closing the sprocket covers Paper parking Paper unparking Short se/f testLong se/f test Interface testAdjusting the Printing GAP International character set Print style and pitch selection Page Page OFF Control Panel OPERAllONS On Line switch Paper Feed switch Quiet Mode switch Sty/e/Pitch switchPOWER-UP Functions Sh0ff test paffern On Line switchLprint CHR$I Next B8 B9 Switch Combination Functions Switch combination functions of control panelTop Of fOff?L Style/Pitch Page Memo Using WE PR//vER Installing Your SoftwareCommand options PrinterSetting the DIP Switches Using Your SoftwareType sty/e and pitch selection Printercommands Memo Using the Printer with DOS and Basic HARD-COPYING the Screen MS-DOS and PC-DOSProgramming the Printer with DOS Commands Name of list device PRNNew file Programming the Printer with Basic Acopy LQELITE.DAT PRN Aprint README.DOC‘Cancel Lprint the Spacings are Changed Next H How the program works IBM Lprint ES= cHR$ocHR$6ocHR$6o Cleaning the Printer Replacing the RibbonReplacing the Print Head Replacing the ribbon cartrlctgeConnector cover Fligure 5-2. Replacing the print head Replacing the Battery in the RAM Card Troubleshooting If printing is faint, incomplete, or unclearIf a// text is printed on the same line If line spacing is twice as wide as expectedIf you have problems with horizontal tabulation If you have problems with graphicsIf you have problems with download characters Interface and Emulation Switches and fndicatorsPrinting Mechanism Character Sets Dot Matrix SizeType Sty/es and Pitches Paper SpecificationsDimensions and Weight Electrical Specifications Interface SignalsEnvironmental Requirements OptionSignal Pin No Name Memo Font Control Commands Select draft quality charactersSelect LQ characters Select LQ type StyleSelect ornament character Select Italic CharactersStart Underlining Select Upright CharactersDouble-strike Printing Cancel Superscript Or subscript Stop UnderliningStart Overlining Stop OverliningSelect Standard character Select IBM character setSelect character set #7 Select Character set #2Enable printing of all character codes Enable printing of a// character codes on next characterSelect s/ash zero Select normal zeroPica pitch Elite pitchHigh-speed elite pitch High-density elite pitchCancel condensed printing Cancel expanded printingCondensed printing Expanded printingSelect master print mode Caucel one-line expanded printingSe/ect proportional spacing Select fixed spacingIncrease character Spacing Select double or quadruple sizePrint double-height characters Return to normal HeightSelect Character Width Select character height, width, and line spacingVertical Position Commands Select character type and print pitchSet line spacing to 7160 or 7172 inch Set line spacing to 718 inchSet line spacing to 716 inch Set base unit for line spacingSet line spacing to n/780 or n/216 inch Set line spacing to n/360 inchSelect forward feed mode Select reverse feed modeDefine line spacing to n/72 inch Execute ESC aPerform one n/180-inch or n/2164nch line feed Perform one n/780-inch reverse line feedFeed paper n lines Set top of page at current positionCancel top and bottom margins Set page length to n inchesSet top margin Set bottom marginDisable paper-out detector Enable paper-out detectorSet vertical tab stops Set vertical tab stops every n linesSelect Vertical Tab channel Vertical tabSet left margin Set right marginCancel automatic line feed Set left and right marginsCarriage return Set automatic Line feedBackspace Leff justifyCenter text Right justifyReset all tab stops Set horizontal tab stopsSet horizontal tab stop every n columns Horizontal tabRelative horizontal Tab Relative horizontal tab in inchesAbsolute horizontal tab in inches Absolute horizontal tab in columnsGraphics Commands Print 8-bit single-density graphicsPrint 8-bit double-density graphics Print 8-bit double-density, double-speed graphicsSelect graphics mode Print M-bit hex-density graphicsDownload Character Convert graphics densityCopy standard characters from ROM into RAM Define Download Select download character setOther Printer Control Commands Delete Last character SentROM MSBCancel Quiet Print Repeat dataQuiet Print Last LineCancel Immediate Print Set printer off-lineSet printer on-line Stop printingPrinting Unidirectional printingOne-line unidirectional printing Manual feedSet print start position on ASF Reset printerEject Paper Memo AppendixCDOWNLOAD Norma/ characterSemi-condensed Proportional Super/subscript character Iiao 1600 2440 If ST=5 then CLS Goto 3480 Character Sets I7’ Standard Character SETPj-iii-j IBM Character SET #2 Page IBM CH Aracter SET #I Additional Character SET International Character Sets SfRIndex Lol 111107 Command Summary ESC ESC p ESC p0 ESC p.‘ 111