example, the format section for the n/72-inch line spacing command is as follows:

ASCII code:

ESC

A

(n)

Decimal:

27

65

( n )

Hexadecimal:

1 B

41

(n)

In BASIC you can send the command to set the n/72-inch line spacing to 8 in three ways:

Decimal :LPRINT CHR$(27) CHR$(65) CHR$(8)Hex:LPRINT CHR$(&H1B) CHR$(&H41) CHR$(&H38)Decimal with quotes: LPRINT CHR$(27) "A" CHR$(8)

ESCape sequences that require a 0 or 1 with a letter, such as ESC "W1” to turn on double-width, can use either the ASCII code or the numeral in quotation marks for the 0 or 1. For example, in BASIC you can turn on double-width with either of the formats below:

LPRINT CHR$(27)"W1" or LPRINT CHR$(27)"W"CHR$(1)

Selecting the IBM Proprinter Mode

To set the FX-286in the IBM Proprinter mode, you need to reset three DIP switches (see Appendix A). Once the FX-286is set in the IBM mode, the printer responds to commands like a Proprinter, and prints in the selected character set.

Reset the following DIP switches to select the Proprinter mode:

DIP

Factory

Proprinter

Switch

Setting

Setting

1-4

ON

OFF

2-1

ON

OFF

2-3

OFF

ON

Printing the Alternate and All Print character sets

The IBM Proprinter has three character sets: Standard, Alternate, and All Print (see Appendix K for printouts of all three sets). Two of the sets, Standard and Alternate, can be selected with DIP switches. The third set, All Print, can only be selected with ESCape code "\" or "^". See this appendix for complete descriptions of these codes.

J-2