Star Micronics NX-2410 user manual Return

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 08 OC OD OE OF

10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

20 21 22 23 24 25 26 27 28 29 2A 25 2C 2D 2E 2F

30 31 32 33 34 35 36 37 38 39 3A 38 3C 3D 3E 3F

40 41 42 43 44 45 46 47 48 49 4A 48 4C 40 4E 4F

50 51 52 53 54 55 56 57 58 59 5A 58 5C 5D 5E 5F

60 61 62 63 64 65 66 67 68 69 6A 66 6C 6D 6E 6F

70 71 72 73 74 75 76 77 78 79 7A 78 7C 7D 7E 7F

80 81 82 83 84 85 86 07 88 89 8A 88 8C 8D 8E 8F

90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F

A0 Al A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF

BO 81 B2 83 84 85 86 87 88 B9 BA BB BC BD BE BF

CO Cl C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF

DO Dl D2 D3 04 D5 06 07 08 D9 DA DB 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-3. Sample hexadecimal dump

‘;,;#i&&;

;j;;;;:;

 

01234567

89::<=>?

 

@ABCDEFG

HIJKLMNO

 

PQRSTLJVW

XYZ[\]--

 

‘abcdefg

hijklmno

 

pqrstuvw

xyz{;)-o

 

. .

.

. .

.

. .

 

. . . .

.

. . . . . . . .

 

 

. . . . . .

 

.

 

 

.

 

 

. .

 

. .

. . . .

.

 

 

. .

 

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 00 OA OE

. . . . . . . .

. . .

OF

10 11 12 13 14 15 16

17

18 19 1B 1C 1D 1E 1F

_

.

 

20

21

22

23

24

25

26

27

28

29

2A

28

2C

2D

2E

2F

!"#I$%&' 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 5C SD 5E 5F

PQRSTUVW

XYZ[\I--

60

61

62

63

64

65

66

67

68

69

6A

68

6C

6D

6E

6F

‘abcdefg

hi jklmno

70

71

72

73

74

75 76 77

78

79

7A

78

7C

70

7E

7F

pqrstuvw

xyz{l)-o

80

81

82

83

84

05

86

07

08

09

8A

88

8C

8D

8E

8F

___

. . .

 

90

91 92 93 94 95 96 97

96

99 9A 98 9C 9D 9E 9F

. . .

. .

 

A0

Al A2 A3 A4 A5

A6 A7

A8

A9

AA AB AC AD AE AF

I

. . .

 

BO

81

82

83

84

B5

86

87

88

B9

BA Ba BC BD BE BF

 

 

 

CO

Cl

C2 C3

C4 C5

C6

C7

C8

C9

CA CB CC CD CE CF

:::::::I

::::::::

DO

Dl D2 D3 D4 D5 D6 D7

DE

D9

DA DB DC DD DE DF

__

. . .

 

EO

El

EZ

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-a. 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 1A (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 MULTI-FONT Relocate the computerorprinterwithrespectto the mceiver HOW to USE this Manual Features of the Printer Quad-sized Tableofcontents Commercial Software Download Character Generator Check the carton contents ChapterPage Setting UP Remove the top cowerInstall the ribbon cartridge Replace the top cover Lnsfall the optional IC cardMount the paper guide Connect the printer’s power cordConnect the printer to the computer Semiautomatic loading Figure i-7. Mounting the paper guide for single sheetsManual loading Loading and Parking Fanfold Forms Opening the rear coverClamp Lever Paper parking Figure l-72. Mounting the paper guide for fanfold formsTest Printing Long self test Interface testAdjusting the Printing GAP IBM Page Selected Mode You OFF Switches and Indicators ChapterOn Line switch Paper feed switch Quiet Mode switch POWER-UP Functions Short test pattern On Line switchLprint CHR$I Next Return Switch Combination Functions Switch combination functions of control panelPage Page Memo Installing Your Software Printer menuWidth Printer command optionsType styles Setting the DIP Switches Using Your SoftwareInitialization sequence AlignmentOther printer commands Type style and pitch selectionCan help you to use ESC4italicESC5 print Memo With DOS and Basic HARD-COPYING the Screen MS-DOS and PC-DOSProgramming the Printer with DOS Commands Aprint README.DOCNew file Programming the Printer with Basic Acopy CON LQPRINT.BATLprint Lprint END How the program works Page Lprint ES= c~$oc~$6oc~$6o Cleaning the Printer RkPLACING the RibbonReplacing the Print Head Replacing the ribbon cartridgeScrews Replacing the print headReplacing the Battery in the RAM Card Replacing the batteryIf the printer doesn’t print If fanfold paper becomes stuckIf label paper becomes stuck If a// text is printed on the same lineIf you have problems with download characters If you have problems with horizontal tabulationIf you have problems with graphics Switches and indicators Interface and Emu/a tionDot Matrix Size Character SetsType Sty/es and Pitches Paper SpecificationsDimensions and Weight Electrical Specifications Fnterface SignalsEnvironmental Requirements OptionKCK OUT Memo Printer Control Commands FdNT Control Commands Select draft quality charactersSelect LQ characters Select LQ type styleSelect ornament character Select italic charactersCancel emphasized printing Cancel double-strike printingSelect Upright Characters Emphasized printingStop Underlining Start OverliningCharacter SET Commands Enable printing of all character codes Enable printing of a// character codes on next characterSelect Slash Zero Select Normal ZeroPica Pitch Elite pitchHigh-speed elite pitch High-density Elite PitchCancel condensed printing Cancel Expanded PrintingCondensed Expanded printingSelect Master Print mode Caocel one-line expanded printingSelect proportional spacing Select fixed spacingIncrease character Spacing Select double or quadruple sizePrint Double-height Characters Return To normalSelect character height, width, and line spacing Select CharacterWidth Vertical Position Commands Select character type and print pitchSet line spacing to 718 inch Set line spacing to 7160 or 7172 inchSet line spacing to 116 inch Set base unit for line spacingSet line spacing to n/180 or n/276 inch Set line spacing to n/360 inchSelect forward feed mode Define line spacing to n/72 inchExecute ESC a Line feedPerform one n/780-inch or n/276-inch line feed Cancel top and bottom margins Set page Iength to n inchesSet bottom margin Form feedDisable paper-out detector Enable paper-out detectorSet vertical tab stops Set vertical tab stops every n linesHorizontal Position Commands Set left marginSelect vertical tab channel TabCancel autoniatic line feed Set left and right marginsCarriage return SetBackspace Left justifyCenter text Right justifyReset 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 co/umnsPrint 8-bit Sing/e-density Graphics Print 8-bit double-density GraphicsPrint 8-bit double-density, double-speed graphics Print Bit quadruple-density GraphicsSelect graphics mode Print 24bit hex-density graphicsSelect Graphics Mode Download Character CommandsConvert graphics Density Copy character set from ROM into RAM cardDefine Download Select download character setOther Printer Control Commands Select ROM characterSet MS6 to Set MS8 toCancel last line Cancel Quiet printRepeat data Quiet printCancel immediate Print Set printer off-lineSet printer on-he Stop printingBidirectional Unidirectional printingOne-line unidirectional printing Manual feedSet print start position on ASF Reset PrinterEject paper From ASF Memo AppendixcDOWNLOAD Normal characterDraft characters Pica Super/subscript character 1220 Then QUA=2 Else QUA=0 CLS Locate PX,PY Print ISO$ Plot chara,-.ter ------------~-~----~-~-~~~~-~~~~~ Character Sets Standardcharacterset IuIX Ih Y I-G- I-G- l-7 Page I‘? IBM Character SET #lAdditional Character SET # $ h o 0 § International Character SetsIndex Irl 107 Command Summary 109 Select base unit for line spacing 111