Escape Sequences. Genicom P600, 5000 Series, GEK 00031B, GEK 00031B

Add to My manuals
314 Pages

advertisement

Escape Sequences. Genicom P600, 5000 Series, GEK 00031B, GEK  00031B | Manualzz

ESCAPE SEQUENCES

ESC - n

ESC _ n

ESC \ n1 n2

ESC ^

ESC :

Underscore: When underscoring is enabled, all printable characters and all space characters. including leading space characters. are underlined. Leading white space preceding a horizontal tab stop is not underlined. Not recommended for use with line draw characters.

n = 1, underscoring is enabled n = 0, underscoring is disabled

Decimal:

Hex:

BASIC:

27 45 <n>

1B 2D <n>

CHR$(27);CHR$(45);CHR$(<n>);

Overscore: When overscoring is enabled. all printable characters and all space characters, including leading space characters, are overscored. Leading white space preceding a horizontal tab stop is not overscored. Not recommended for use with line draw characters.

n – 1 enabled n – 0 disabled

Decimal:

Hex:

BASIC:

27 95 <n>

1B 5F <n>

CHR$(27);"_<n>";

Print Continuously from All Character Chart.

Allows printing all the 256 characters and symbols (even those normally used as control codes) in the all character chart. The total number of characters to be printed from the all character chart is specified by n1 and n2 according to the formula: n1 + (256 * n2).

Example: To print 400 characters from the chart send

CHR$(27);"\";CHR$(144);CHR$(1);

Decimal:

Hex:

BASIC:

27 92 <n1> <n2>

1B 5C <n1> <n2>

CHR$(27);"\<n1><n2>";

Print Single Character from All Character Chart: The next character received is printed from the all character chart.

Decimal:

Hex:

BASIC:

27 94

1B 5E

CHR$(27);"^";

Set 12 cpi Printing: Sets the printer to 12 cpi (6 cpi if double-wide is enabled). DC2 resets to 10 cpi.

Decimal:

Hex:

BASIC:

27 58

1B 3A

CHR$(27);":";

Chapter 5. Proprinter Emulation

112

GEK-00029B

ESC [T n1 n2 ml

m2 m3 m4 m5

ESC 0

ESC 1

ESC 2

Select Code Page: Selects international character sets. The default is IBM PC Multilingual Set 2.

n1: Always 5 (The number of m parameters used.) n2: Always 0 ml, m2, and m5 are always zero.

m3 - See chart below.

m4 - See chart below.

m3 m4 International Character Set

7E 21 DEC Multinational

7F 21 Roman 8

8F 21 ISO 8859-1 Latin Alphabet #1

93 21 ISO 8859-5 Latin/Cyrillic

B5 01 IBM PC Set 2 USA (Microsoft Code Page 437)

52 03 IBM PC Multilingual Set 2 (MS Code Page 850)

54 03 Microsoft Code Page 852 (Slavic)

57 03 Microsoft Code Page 855 (Cyrillic)

5F 03 Microsoft Code Page 863 (French Canadian)

(The examples below show the m3 and m4 values for selecting Roman

8.)

Decimal:

Hex:

BASIC:

27 91 84 5 0 0 0 127 33 0

1B 5B 54 05 00 00 00 7F 21 00

CHR$(27);"rr;CHR$(5);CHR$(O);CHRS(O);CHR$(O);

CHR$(127);CHR$(33);CHR$(0);

Set 8 Lines per Inch: Sets the line spacing to 1/8 of an inch (8 lpi).

Decimal:

Hex:

BASIC:

27 48

1B 30

CHR$(27);"0";

Set 7/72 Lines per Inch Spacing: Sets the line spacing to 7/72 of an inch (10. 3 lpi)

Decimal:

Hex:

BASIC:

27 49

1B 31

CHR$(27);"l";

Start Text Line Spacing: Activates the line spacing stored by the last ESC A, or sets 6 lpi if no ESC A command has been received.

Decimal:

Hex:

BASIC:

27 50

1B 32

CHR$(27):"2";

GEK-00029B

113

5000 Series Programmer’s Manual

ESC 3 n

ESC 4

ESC 5 n

ESC 6

ESC 7

ESC A n

Set Graphics Line Spacing: Sets the line spacing to n units of 1/216 inch. This allows for line spacing in .0046 inch increments to 1.18

inches (255/216). The value of n/216 is rounded up to the next

1/144 inch.

n = 1 through 255

Example: ESC 3 27 Sets the line spacing to 1/8 inch, or

27/216.

Decimal:

Hex:

BASIC:

27 51 <n>

1B 33 <n>

CHR$(27);"3<n>";

Set Top of Form: Sets current paper position as top of form.

Decimal:

Hex:

BASIC:

27 52

1B 34

CHR$(27);"4";

Automatic Line Feed: Printer automatically does a line feed after receiving a carriage return.

n = 0, disabled n = 1, enabled

Decimal:

Hex:

BASIC:

27 53 <n>

1B 35 <n>

CHR$(27);"5<n>";

Select Character Set 2: All characters (printable and control codes) received after this command are selected from character set 2. A reset, initialization, or ESC 7 resets to character set 1.

Decimal:

Hex:

BASIC:

27 54

1B 36

CHR$(27);"6";

Select Character Set 1: All characters (printable and control codes) received after this command are selected from character set 1. Also, see ESC 6 above.

Decimal:

Hex:

BASIC:

27 55

1B 37

CHR$(27):"7";

Stores n/72-inch Line Spacing: The text line spacing is stored, although not set for use, to the value n in units of 1/72 inch. An ESC

2 must be sent to start this line spacing. Valid parameter values are

1 through 85.

Decimal:

Hex:

BASIC:

27 65 <n>

1B 41 <n>

CHR$(27);"A<n>";

Chapter 5. Proprinter Emulation

114

GEK-00029B

ESC B n1 ... n64 0 Set Vertical Tab Stops: This sequence sets up to 64 vertical tabs by line number. The tabs must be in ascending order and the sequence must end with a NUL. ESC B NUL clears all tab stops. These tabs are stored as absolute values, so they are not affected by changes in lpi settings. This command resets any previously set tab stops.

Variable n represents values 1 through 254.

ESC C n

ESC C 0 n

Decimal:

Hex:

BASIC:

27 66 <nl>...<n64> 0

1B 42 <n1>...<n64> 00

CHR$(27);"B<nl>...<n64>";CHR$(0);

Set Form Length in Lines: The value of n sets the form length in lines using the current line spacing setting. The maximum length is

22 inches (176 lines for 8 lpi, etc.). Top of form is set to the current form position. Once set, changing the line spacing has no effect on form length.

Decimal:

Hex:

BASIC:

27 67 <n>

1B 43 <n>

CHR$(27);"C<n>";

Set Form Length in Inches: The value of n sets the form length from

1 to 22 inches. Top of form is set at the current vertical position.

Once set, changing the line spacing has no effect on form length.

ESC D n1...n28 0

ESC E

ESC F

Decimal:

Hex:

BASIC:

27 67 0 <n>

1B 43 00 <n>

CHR$(27);"C";CHR$(0);"<n>";

Set Horizontal Tab Stops: Sets horizontal tab stops at the positions specified "n" expressed in columns at the current cpi. Once set, changing the cpi has no effect on the tab positions. ESC D NUL clears all tab stops. Tab stops must be specified in ascending order. If more than 28 parameters are specified, the command is terminated.

Decimal:

Hex:

BASIC:

27 68 <n1>...<n28> 0

1B 44 <n1>...<n28> 0

CHR$(27);"D<n1>…<n28>";CHR$(0);

Start Emphasized Print

Decimal:

Hex:

BASIC:

27 69

1B 45

CHR$(27):"E";

Stop Emphasized Print

ESC G

Decimal:

Hex:

BASIC:

27 70

1B 46

CHR$(27);"F"';

Start Double-Strike Print

Decimal:

Hex:

BASIC:

27 71

1B 47

CHR$(27);"G";

GEK-00029B

115

5000 Series Programmer’s Manual

ESC H

ESC I n

ESC J n

ESC N n

ESC 0

Stop Double-Strike Print

Decimal:

Hex:

BASIC:

27 72

1B 48

CHR$(27);"H";

Select Print Mode n = 0 selects Draft Resident, USA n = 1 selects Draft 12 CPI (Fast) Resident, USA n = 2 selects NLQ Resident, USA n = 3 selects NLQ H (Courier) Resident, USA n = 4 selects Draft Download. Multi/USA n = 5 selects Draft 12 CPI (Fast) Download, Multi/USA n = 6 selects NLQ Download, Multi/USA n = 7 selects NLQ H (Courier) Download, USA n = 8 selects Draft Download. USA n = 9 selects Draft 12 CPI (Fast) Download, USA n = 10 selects NLQ Download, USA n = 11 selects Alternate NLQ II Resident (Italic). USA n = 12 selects Draft Download, Multi/USA n = 13 selects 12 CPI Fast) Download, Multi/USA n = 14 selects NLQ Download, Multi/USA n = 15 selects Alternate NLQ 11 (Italic), Download, USA

Decimal:

Hex:

BASIC:

27 73 <n>

1B 49 <n>

CHR$(27);"I<n>";

Variable Line Feed: This command advances the paper a distance specified by the value of n in units of 1/216 inch. The value "n" can be a value from 0 to 255. The variable line feed is not stored, so there is no effect on line spacing values.

Decimal:

Hex:

BASIC:

27 74 <n>

1B 4A <n>

CHR$(27);"J<n>";

Set Skip Perforation: Sets the perforation skip distance to n lines.

ESC N is reset when the form length is changed. Valid parameter values are 1 - 255. The printer converts the number of lines (n) to inches using the current line spacing and saves the skip distance in inches. The skip perforation distance does not change when the line spacing is changed. Also, in this chapter, see ESC 0.

Decimal:

Hex:

BASIC:

27 78 <n>

1B 4E <n>

CHR$(27);"N<n>";

Cancel Skip Perforation: Resets the skip perforation value to zero lines.

Decimal:

Hex:

BASIC:

27 79

1B 4F

CHR$(27);"O";

Chapter 5. Proprinter Emulation

116

GEK-00029B

ESC P n

ESC Q n

ESC R

ESC S n

ESC T

ESC U n

Select Proportional Spacing

If n = odd number, proportional print enabled.

If n = even number, proportional print disabled.

Decimal:

Hex:

BASIC:

27 80 <n>

1B 50

CHR$(27);"P<n>";

Deselects IBM Proprinter (parallel interface only): Stops printer from accepting data from the host. The host must reset the printer or select it using DC1. This sequence is intended for diagnostic purposes only. The variable (n) is 22.

Decimal:

Hex:

BASIC:

27 81 22

1B 51 16

CHR$(27);"Q";CHR$(22);

Set All Tabs to Power On Settings: Sets horizontal tabs every eight positions starting at column 9 and clears all vertical tabs.

Decimal:

Hex:

BASIC:

27 82

1B 52

CHR$(27);"R";

Set Superscript/Subscript On: If n is 1, then subscript (1/2 inch below the line) is selected; if it is 0, then superscript (1/2 inch above the line) is selected. Since these two attributes are mutually exclusive, an ESC S command overrides any previous ESC S setting.

Also, see ESC T below.

n = 1 subscript n = 0 superscript

Decimal:

Hex:

BASIC:

27 83 <n>

1B 53 <n>

CHR$(27);"S<n>";

Cancel Superscript/Subscript: Returns to previous baseline position. Also. in this chapter see ESC S.

Decimal:

Hex:

BASIC:

27 89

1B 54

CHR$(27);"T";

Set Unidirectional Printing n = 0 unidirectional printing is turned off n = 1 unidirectional printing is turned on

Decimal:

Hex:

BASIC:

27 85 <n>

1B 55 <n>

CHR$(27);"U<n>";

GEK-00029B

117

5000 Series Programmer’s Manual

ESC W n

ESC X n m

Set Double-Wide Print On/Off: When enabled, printable characters are printed twice their current width. This sequence has precedence over the SO control code.

n = 1: doublewide is enabled n = 0: doublewide is disabled

Decimal:

Hex:

BASIC:

27 87 <n>

1B 57 <n>

CHR$(27);"W<n>";

Set Horizontal Margins: This sequence sets the left (n) and right (m) margins. The interval is based on the current cpi setting. Variable (m) must be greater than W. and the sequence must include both variables.

Decimal:

Hex:

BASIC:

27 88 <n> <m>

1B 5B <n> <m>

CHR$(27);"X<n><m>";

Chapter 5. Proprinter Emulation

118

GEK-00029B

advertisement

Related manuals

Download PDF

advertisement

Table of contents